Skip to Content
0
Former Member
Aug 02, 2006 at 01:44 AM

user exit Date Range variable code

164 Views

Hi

What I need.

Based upon end user optional entry for a date, I want to be able to derive all the dates greater than that date.

What I did..

1.

Created a user entry variable (ZDTFROM1) : optional> single value >ready for input of characteristic date

2.

Created a customer exit variable (ZDTFROM3) : optional> single value (also tried for multiple value and date range) > not ready for input of characteristic date

3. Wrote the folowing code in the user exit..

WHEN 'ZDTFROM3'.

CASE i_step.

WHEN 2.

LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE

WHERE VNAM = 'ZDTFROM1'.

CLEAR L_S_RANGE.

l_s_range-sign = 'I'.

l_s_range-opt = 'BT'.

l_s_range-low = LOC_VAR_RANGE-LOW.

l_s_range-high = '12/12/9999'.

APPEND l_s_range TO e_t_range.

ENDLOOP.

ENDCASE.

4. For the above I am getting run-time error( that code is wrong)

PS: I also tried ZDTFROM3 to be multiple value and put GT in the code but no use.

Any help will be appreciated.