Hi,
I will try again to check your code above, I will just do something..
For the meantime, you can use my suggested code:
DATA: l_s_range1 TYPE rrrangesid,
loc_var_range1 LIKE rrrangeexit,
temp_start like sy-datum,
temp_end like sy-datum.
WHEN 'ZEXIT_DATE'.
if i_step = 2.
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE1 WHERE vnam = 'ZDATE_ENTRY'.
concatenate LOC_VAR_RANGE1-LOW(6) '01' into temp_start.
temp_start = temp_start - 1.
concatenate temp_start(6) '01' into temp_start.
temp_start = temp_start - 1.
concatenate temp_start(6) '01' into temp_start.
temp_start = temp_start - 1.
concatenate temp_start(6) '01' into temp_start.
temp_start = temp_start - 1.
concatenate temp_start(6) '01' into temp_start.
temp_start = temp_start - 1.
concatenate temp_start(6) '01' into temp_start.
temp_start = temp_start - 1.
concatenate temp_start(6) LOC_VAR_RANGE1-LOW+6(2) into temp_start.
temp_end = LOC_VAR_RANGE1-LOW.
L_S_RANGE-LOW = temp_start.
L_S_RANGE-HIGH = temp_end.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'BT'.
APPEND L_S_RANGE TO E_T_RANGE.
exit.
endloop.
endif.
Regards,
Loed