Example: Use of Parameter Views
The following example shows how to use parameter views in your own function modules. This example shows how a parameter view is used, which has been defined at function level.
If you want to use a parameter view, you need to take into account various criteria. For more information, see:
Prerequisite
You have created a commission case with a valuation. The
ZZJABEIT field contains the annual contribution.The tool from the example
Create Your Own Tool is enhanced. You can use the parameter view to manually enter a percentage that is used in the function module.Activities
Field Name |
Field |
.INCLUDE |
CACS_S_LOS_ST_OD_K |
PERCENTAGE |
APROZENT |
.INCLUDE |
CACS_S_VERS1 |
The
APROZENT field type is an integer field that contains the percentage.The CACS_S_VERS1 include contains fields for versioning.
The CACS_S_LOS_ST_OD_K include contains the following keys for the table:
Field Name |
Field Type |
Description |
MANDT |
MANDT |
Client |
APPL |
CACSAPPL |
ID of commission application |
OBJ_TYPE |
CACS_LOS_OTC |
Object type class (OTC) for the logical service |
OBJ_METHOD |
CACS_LOS_METH |
Assigned method for the object type class of the logical service. |
TOOL |
CACS_LOS_TOOL |
Tools for the logical service |
TOOLFUNCTION |
CACS_LOS_TOOLFUNCTION |
Assigned function for the tool for the logical service |
OBJ_ID |
CACS_LOS_OBJID |
Identification of the calculating object |
VERSION |
CACSVERSION |
Master data or Customizing object version |
View Field |
Table |
Field |
Maintenance Attribute |
Key |
MANDT |
ZTEST_LOS_OD |
MANDT |
X |
|
APPL |
ZTEST_LOS_OD |
APPL |
S |
X |
OBJ_TYPE |
ZTEST_LOS_OD |
OBJ_TYPE |
S |
X |
OBJ_METHOD |
ZTEST_LOS_OD |
OBJ_METHOD |
S |
X |
TOOL |
ZTEST_LOS_OD |
TOOL |
S |
X |
TOOLFUNCTION |
ZTEST_LOS_OD |
TOOLFUNCTION |
S |
X |
OBJ_ID |
ZTEST_LOS_OD |
OBJ_ID |
S |
X |
VERSION |
ZTEST_LOS_OD |
VERSION |
G |
X |
PERCENTAGE |
ZTEST_LOS_OD |
PERCENTAGE |
||
BUSI_BEGIN |
ZTEST_LOS_OD |
BUSI_BEGIN |
||
BUSI_END |
ZTEST_LOS_OD |
BUSI_END |
||
TECH_BEGIN |
ZTEST_LOS_OD |
TECH_BEGIN |
H |
|
TECH_END |
ZTEST_LOS_OD |
TECH_END |
H |
|
FLG_CANCEL_OBJ |
ZTEST_LOS_OD |
FLG_CANCEL_OBJ |
H |
|
FLG_CANCEL_VERS |
ZTEST_LOS_OD |
FLG_CANCEL_VERS |
H |
|
CHG_TCODE |
ZTEST_LOS_OD |
CHG_TCODE |
H |
|
CHG_USR |
ZTEST_LOS_OD |
CHG_USR |
H |
|
TRI_METH_TYP |
ZTEST_LOS_OD |
TRI_METH_TYP |
H |
|
TRI_METH_TARGET |
ZTEST_LOS_OD |
TRI_METH_TARGET |
H |
|
STATUS_VERSION |
ZTEST_LOS_OD |
STATUS_VERSION |
H |
|
STATUS_WORK |
ZTEST_LOS_OD |
STATUS_WORK |
H |
Table |
Field Name |
Operator |
Comparison Value |
AND/OR |
ZTOOL_VAL_PR |
FLG_CANCEL_VERS |
EQ |
' ' |
AND |
ZTOOL_VAL_PR |
FLG_CANCEL_OBJ |
EQ |
' ' |
Event |
Form Routine |
03 |
ZVZTEST_LOS_OD_PR_AVOID_DELETE |
05 |
ZVZTEST_LOS_OD_PR_INIT |
21 |
ZVZTEST_LOS_OD_PR_VERSION |