if ( i_vnam eq 'ZWRKDDAYS' ).
data: end_date type d,
prev_wrk_day type sy-datum,
start_date type d,
bgn_of_month type sy-datum,
num_of_days type d.
concatenate sy-datum+0(6) '01' into b
prev_wrk_day = sy-datum - 1.
CALL FUNCTION 'DATE_CONVERT_TO_FACTORY
EXPORTING
CORRECT_OPTION
DATE
FACTORY_CALENDAR_ID
IMPORTING
FACTORYDATE
.
CALL FUNCTION 'DATE_CONVERT_TO_FACTORY
EXPORTING
CORRECT_OPTION
DATE
FACTORY_CALENDAR_ID
IMPORTING
FACTORYDATE
.
num_of_days = end_date - start_dat
e_t_data-sign = 'I'.
e_t_data-opt = 'EQ'.
e_t_data-low = num_of_days.
append e_t_data to e_t_range.
endif.
https://www.sdn.sap.com/irj/scn/weblogs?b
No comments:
Post a Comment