Dear Experts,
I would like to overwrite a variable value user enters. I created an exit variable (variable is ready for input), created and activated project in CMOD->EXIT_SAPLRRS0_001->ZXRSRU01.
Here is my sameple code
DATA: zdate like sy-datum,
zl_date like sy-datum,
zmonth(6) type c.
DATA: L_S_RANGE TYPE RSR_S_RANGESID.
DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
CASE I_VNAM.
WHEN 'ZACTDTVAR01'.
IF I_STEP = 2.
READ TABLE I_T_VAR_RANGE INTO LOC_VAR_RANGE WITH KEY VNAM = 'ZACTDTVAR01'.
If sy-subrc =0,
zdate = LOC_VAR_RANGE-LOW - 30.
clear: L_S_RANGE.
L_S_RANGE-LOW = zdate.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
endif.
endcase.
Nothing happens when I_step=2. How ever if I assign a system date when i_step = 1, the exit program is called and variable is populated with correct value.
Please advice, how to overwirte a variable value at I_step = 2. Is this a bug in BI 7.0?
Thanks,
Gnana