Skip to Content
0
Former Member
Dec 11, 2007 at 02:48 PM

customer exit variable

8 Views

Hi gurus,

In my query selection conditions, i have date interval, if i give start date in my query i want to calculate end date for (start date + 112 days) and this will populate to end date while executing the query.

my code is below,

WHEN 'ZPRDTDT'.

IF i_step = 2.

READ TABLE I_T_VAR_RANGE INTO LOC_VAR_RANGE

WITH KEY VNAM = 'ZPRDTDT'.

v_date1 = LOC_VAR_RANGE-LOW.

v_date2 = v_date1 + 112.

l_s_range-sign = 'I'.

l_s_range-opt = 'BT'.

l_s_range-low = v_date1.

l_s_range-high = v_date2.

Append l_s_range to E_T_RANGE.

ENDIF.

but it is not exeuting.

please correct my code.

thanks in advance