Customer Exit for 0P_KEYD2
I am trying to write copy the logic from the customer exit variable 0P_KEYD2-Posting Key Date, following is the code for 0P_KEYD2:
LS_RA_SID TYPE RSR_S_RANGESID,
L_THX_VAR TYPE RRO01_SX_VAR.
IF I_STEP EQ 0. " without popup set to sy-datum
LS_RA_SID-SIGN = 'I'.
LS_RA_SID-OPT = 'EQ'.
LS_RA_SID-LOW = SY-DATUM.
APPEND LS_RA_SID TO E_T_RANGE.
ELSEIF I_STEP EQ 1. " before popup appears
" set to nothing so we get called
" a second time after popup has
ELSE. " after popup has appeared
" same as variable 0P_KEYDT
READ TABLE I_THX_VAR WITH TABLE KEY VNAM = '0P_KEYDT' INTO L_THX_VAR
IF SY-SUBRC EQ 0.
E_T_RANGE = L_THX_VAR-RANGE.
I know that For LS_RA_SID we can use l_s_range, but for L_THX_VAR what do i use in EXIT_SAPLRRS0_001 do i use the the same L_THX_VAR.