You are on page 1of 1

METHOD get_fc_date.

"Calculate n workdays from today based on factory calendar


CALL FUNCTION 'END_TIME_DETERMINE'
EXPORTING
duration = i_offset
unit = 'TAG'
factory_calendar = '99' "International
IMPORTING
end_date = r_date
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
"Return default date without calendar calculation
r_date = sy-datum + i_offset.
ENDIF.
ENDMETHOD.
Listing 16.2 Method to Calculate Date Based on Factory Calendar

You might also like