Project Recording: Date and Factory Date[转载]

[引用]:翱翔云天

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

引用 :http://www.abaptech.com/?p=484

原文地址:https://www.cnblogs.com/wequst/p/1510902.html