Hi,
My requirement is to get the data in the report for first 15 days of the month. The user selects Month/Year and the report should give detail of the first 15 days of that particular month.I have written the below code in the exit but does not work.
*First 15 days of the month.'Z_DAYS_MONTH2' is the variable created which should hold 15 days and 0PCALMON is the user *input variable for month and year.
Data: L_S_RANGE TYPE RSR_S_RANGESID,
LOC_VAR_RANGE LIKE RRRANGEEXIT,
Date1 TYPE Sy-datum,
Date2 TYPE Sy-datum,
Zcalmon Type Sy-datum .
IF i_step = 2.
CASE i_vnam.
when 'Z_DAYS_MONTH2'.
LOOP at i_t_var_range INTO loc_var_range where vnam = '0PCALMON'.
CLEAR: l_s_range.
Zcalmon = loc_var_range+0(6).
Concatenate Zcalmon '01' into Date1.
Concatenate Zcalmon '15' into Date2.
l_s_range-low = 'Date1'.
l_s_range-high = 'Date2'.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
APPEND l_s_range TO e_t_range.
ENDLOOP.
endcase.
endif.
Please advice for the scenerio.
Thanks.
Edited by: Avinash Kumar Gautam on Nov 24, 2011 1:33 PM