Parameter | Reference | Type | Length | Default | Optional | Text |
---|---|---|---|---|---|---|
FACTORYDATE | SCAL-FACDATE | P | 3 | serial number of the workday | ||
FACTORY_CALENDAR_ID | SCAL-FCALID | C | 2 | Factory calendar ID |
Parameter | Reference | Type | Length | Text |
---|---|---|---|---|
DATE | SCAL-DATE | D | 8 | Date of factory calendar date |
Exception | Text |
---|---|
CALENDAR_BUFFER_NOT_LOADABLE | Factory calendar could not be buffered |
FACTORYDATE_AFTER_RANGE | Factory date is larger than factory calendar defined |
FACTORYDATE_BEFORE_RANGE | Factory date is smaller than factory calendar defined |
FACTORYDATE_INVALID | Factory date has invalid format |
FACTORY_CALENDAR_ID_MISSING | Factory calendar ID was transferred with SPACE |
FACTORY_CALENDAR_NOT_FOUND | Factory calendar is not in buffer |
INCLUDE 'DOCU_HAS_TO_BE_ELABORATED' OBJECT DOKU ID TX In the factory calendar the working days are numbered sequentially fromthe first working day. The numbers of the working days are calledfactory dates. This function module calculates the date for a factorydate. Example call: DATA: DATUM LIKE SCAL-DATE, KALENDER LIKE SCAL-FCALID, FABRIKDATUM LIKE SCAL-FACDATE. CALL FUNCTION 'FACTORYDATE_CONVERT_TO_DATE' EXPORTING FACTORYDATE = FABRIKDATUM FACTORY_CALENDAR_ID = KALENDER IMPORTING DATE = DATUM EXCEPTIONS FACOTRY_CALENDAR_ID_MISSING = 1 FACTORYDATE_AFTER_RANGE = 2 FACTORYDATE_BEFORE_RANGE = 3 FACTORYDATE_INVALID = 4 FACTORY_CALENDAR_NOT_FOUND = 5. All exceptions are raised with RAISE. Serial number of working day in specified factory calendar. |