BEx Query Designer中的变量及其增强
生活随笔
收集整理的這篇文章主要介紹了
BEx Query Designer中的变量及其增强
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
About Variable: 1.Variable 是和InfoObject綁定的,可用于任何含有該IO的query中。 2.Variable有以下幾種類型:
??????????????????? 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.
- 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。
Sample Code:?
DATA: L_S_RANGE TYPE RSR_S_RANGESID. DATA: L_S_VAR_RANGE TYPE RRRANGEEXIT.? CASE I_VNAM.?? WHEN 'CUMMONTH'. IF I_STEP = 2. "after the popup READ TABLE?I_T_VAR_RANGE?INTO?L_S_VAR_RANGE WITH KEY?VNAM = 'MONTH'. IF SY-SUBRC = 0. CLEAR L_S_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變量
SAP Exit變量為我們編寫customer exit變量提供了很好的參考。 1. SE16 查看表 RSZGLOBV 可以得到系統全部變量的列表,選擇process type=SAP Exit,即可獲得所有的SAP Exit變量列表 2. SE37 查看 RREX_VARIABLE_EXIT 或RSVAREXIT_ * 可以找到SAP Exit變量的代碼轉載于:https://www.cnblogs.com/hanmos/archive/2012/07/10/2584911.html
總結
以上是生活随笔為你收集整理的BEx Query Designer中的变量及其增强的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: wcf——WSDL
- 下一篇: Delete Master Data时的