Skip to Content
0
Former Member
May 11, 2010 at 09:34 AM

customer exit

44 Views

Hi experts,

I have the following code to count the number of days from the user selection variable.

DATA: L_S_RANGE TYPE RSR_S_RANGESID,

LOC_VAR_RANGE LIKE RRRANGEEXIT,

d1 type sy-datum,

d2 type sy-datum,

d3 type i.

Read table i_t_var_range INTO loc_var_range with key vnam = 'user input variable'.

d1 = loc_var_range-low.

d2 = loc_var_range-high.

d3 = d2 - d1.

l_s_range-low = d3 .

l_s_range-sign = 'I'.

l_s_range-opt = 'EQ'.

APPEND l_s_range TO e_t_range.

If the ABAP'er debug's the code, it is returning the number of days correctly. But when i display it in the query, it is returning '0' value. Could you please suggest me wht went wrong in this?

Thank you.