[Reference]: soaring clouds
142 views
Here I list the usage of the following two functions, they are about the conversion for date <=> factory date
Function Name: date_convert_to_factorydate
Factorydate_convert_to_date
parameters:
date_convert_to_factorydate
Import:
correct_option
+: if the specified date is not a working day, the first working day after the date is returned.
-: if the specified date is not a working day, the first working day before the date is returned.
date to be converted into factory calendar date
factory_calendar_id
factory calendar id
Export:
Date
Date to be converted into factory calendar date
Factorydate
Number of the workday in the specified calendar
Workingday_indicator
Factorydate_convert_to_date: The same parameter but conversed.
How to Get factory calender ID:
Maintained in plant table t001w
The field is: fabkl
Reference: http://www.abaptech.com /? P = 484