5 Replies Latest reply: Oct 26, 2006 3:34 PM by Diego Lombardini RSS

Customer Exit for 0P_KEYD2

Currently Being Moderated

Hi All,

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:

 

DATA:

      LS_RA_SID  TYPE   RSR_S_RANGESID,

      L_THX_VAR  TYPE   RRO01_SX_VAR.

 

  REFRESH E_T_RANGE.

 

  IF I_STEP EQ 0.                      " without popup set to sy-datum

     CLEAR: LS_RA_SID.

     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

                                       " appeared

 

  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[].

    ENDIF.

 

  ENDIF.

 

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.

 

 

Thanks.

Actions