How-to: Date and Factory Date


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
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


About The Author

从事SAP行业有些年头,对SAP技术稍有了解; 如无特别声明,本博客文章为原创,转载请注明; 博主MSN:xuchunbo0901@hotmail.com; 博主邮箱:bob.xu@abaptech.com。

No Comments

Leave A Reply


注意: 评论者允许使用'@user空格'的方式将自己的评论通知另外评论者。例如, ABC是本文的评论者之一,则使用'@ABC '(不包括单引号)将会自动将您的评论发送给ABC。使用'@all ',将会将评论发送给之前所有其它评论者。请务必注意user必须和评论者名相匹配(大小写一致)。

无觅相关文章插件,快速提升流量