EXIT_SAPLRRS0_001 - ooxxvv/MySAPnotes GitHub Wiki

PageOutline

EXIT_SAPLRRS0_001

  • BW Variable 用的 User Exist,包含在 RSR00001 這個 Enhancement 中。

I_T_VAR_RANGE

  • 所有變數的數值

E_T_RANGE

  • 單一變數的數值

I_S_RKB1D

  • 呼叫變數的 Report 相關參數

i_step

  • 代表報表執行時的各個階段

i_step=0

  • is called for variables that are used in authorizations objects
  • 是 Authorization 這種型態的變數專用的

i_step=1

  • is called before the processing of the variable pop-up and gets called for every variable of the processing type
  • 主要的功能是用來指定 Default 值

i_step=2

  • is called after porcessing of the variable pop-up. This step is called only for those variables that are not marked as "ready for input" and are set to "mandatory variable entry"
  • 觸發點是在使用者輸入後,主要是用來指定 Not ready for input 的變數值
  • 也可以用在需要根據另一個變數來決定此變數值的時候

i_step=3

  • is called after all variable processing and gets called only once and not per variable
  • 以上階段都執行完後,才會執行這個 Step
  • 主要是用來驗證使用者輸入的值,可以在進入報表前就出錯誤訊息
  • Step3 不是一個一個變數分別呼叫,一個報表只會呼叫一次,而且一次會帶入所有的變數到 i_t_var_range 這個 Internal Table 中
  • 檢查完後,如果要出訊息,可呼叫 RRMS_MESSAGE_HANDLING 這個 Function 來出訊息

{{{#!comment -------------------- 以下的部份是固定的,不要變動 ----- }}}