Showing results for 
Search instead for 
Did you mean: 

User exit variable problem...

Former Member
0 Kudos

Hi Guys,

I have an ISTEP 2 requirement. I am not good in abap. Please tell me exact code for below logic.

My requirement:

One variable V1 (0P_KEYDT) is populating todays date or user can enter any dates. I need to catch that and pass it to another dummy variable V2 (date). I am going to create formula variable on V2 and use it for some other boolean logic in a formula.

Can anybody tell me exact code for reading one variable date and assigning it to other as per above logic.

Appreciate your help.



Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

create a variable named zdate.

write below code in exit ZXRSRU01.

DATA: l_s_range TYPE rsr_s_rangesid,
      loc_var_range LIKE rrrangeexit.

WHEN 'zdate'.
    IF i_step = 2. 
       read table i_t_var_range INTO loc_var_range
      		with key vnam = '0P_KEYDT'.
        CLEAR l_s_range.
	l_s_range-low = loc_var_range-low.
        l_s_range-sign = 'I'.
        l_s_range-opt = 'EQ'.
        APPEND l_s_range TO e_t_range.

Former Member
0 Kudos

Thanks all. Solved.

Answers (1)

Answers (1)

Active Contributor
0 Kudos


You can check the Exits with example in the below URL.