转发理由:终于出新的了,呵呵,扫盲帖,很适合我
- Characteristic:用于限制Char。
- Text:用于在报表动态显示文本。
- Hierarchy:用于限制Hierarchy。
- Hieararchy Node:用于限制Hierarchy Node。
- Formula: 可以在公式中使用变量,让用户输入一个数,读取某个Char.的属性(例如Prduct的price属性)等来用于计算。
Field | Description |
VNAM | Variable name |
IOBJNM | InfoObject name |
SIGN | (I)ncluding [ ] or (E)xcluding [ ] |
OPT | Operators: EQ =, BT [ ], LE <=, LT <, GE >=, GT >, CP, and so on |
LOW | Characteristic value |
HIGH | Characteristic value of upper limit for intervals or node InfoObject for hierarchy nodes |
3-2:每次调用时,系统会传递参数值给Function Module。其中,比较重要的参数如下:
I_STEP 标识了该调用发生的时机:
-
I_STEP = 1: Call is made directly before variable entry.
-
I_STEP = 2: Call is made directly after variable entry. This step is only _executed if the same variable is not input-ready and could not be filled for I_STEP = 1.
-
I_STEP = 3: In this call, you can check the values of the variables. When an exception (RAISE) is triggered, the variable screen appears again. I_STEP = 2 is then also called again.
-
I_STEP = 0: The enhancement is not called from the variable screen. The call can originate from the authorization check or from the monitor.
I_VNAM标识了当前要处理的变量。
3-3:完成变量的处理之后,应将变量的值写入E_T_RANGE。
L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(4)."low value, for example, 200601
L_S_RANGE-LOW+4(2) = '01'.
L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW. "high value = input
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'BT'.
APPEND L_S_RANGE TO E_T_RANGE.
ENDIF.
ENDIF.
ENDCASE.
查看SAP Exit变量