on 01-05-2018 6:18 PM
Hi,
I have calweek Customer exit variable which provides range of current week-7 to current week. The code uses SAP FM Date_Get_Week which is returning 201794 for the date 1/5/2018 .I guess it is assuming 100 weeks in a year with current week being 00/2018.
this is the code
Data: input1 type RRRANGEEXIT,
output1 type RRRANGESID,
week_start type /BI0/OICALWEEK,
week_end type /BI0/OICALWEEK,
week_value type /BI0/OICALWEEK.
when: 'ZCALWEEK'.
CALL FUNCTION 'DATE_GET_WEEK'
EXPORTING date = sy-datum
IMPORTING week = week_value.
week_start = week_value - 7.
week_end = week_value.
if i_step = 1.
output-sign = 'I'.
output-opt = 'EQ'.
output-low = week_start.
output-high = week_end.
append output to e_t_range.
endif.
Please advise.
User | Count |
---|---|
96 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.