Dear BW/ABAP Experts,
I am trying to populate a text variable that I need to display in the report via a Customer Exit.
The Query Execution is generating a message saying that the value for the variable could not be determined.
Please help me with the same.
I have a User Entry Variable for obtaining YEAR.
Now I need to populate a text variable with this year.
I believe, the table I_T_VAR_RANGE contains the values of all the variables used in the report ( does this rule have any exceptions ).
Please review the code and let me know if there are any mistakes.
********************Populate the Text Variable 'ZACCYR01' from 'Z_TACYR1'.
WHEN 'ZACCYR01'.
*
IF I_STEP = 3.
*
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'Z_TACYR1'.
*
IF SY-SUBRC = 0.
CLEAR L_S_RANGE.
L_S_RANGE-LOW = LOC_VAR_RANGE-LOW.
APPEND L_S_RANGE TO E_T_RANGE.
*
ENDIF.
ENDLOOP.
ENDIF.
Thanks And Regards,
Anoop P