Ansicht
Dokumentation

FACTORYDATE_CONVERT_TO_DATE - Calendar function: Returns date for a factory calendar date

FACTORYDATE_CONVERT_TO_DATE - Calendar function: Returns date for a factory calendar date

rdisp/max_wprun_time - Maximum work process run time   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book
Preliminary comment

This function module has been released.

The documentation is being revised so that it conforms to the requirements for released function modules.

In the factory calendar the working days are numbered sequentially from the first working day. The numbers of the working days are called factory dates. This function module calculates the date for a factory date.

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.





Parameters

DATE
FACTORYDATE
FACTORY_CALENDAR_ID

Exceptions

CALENDAR_BUFFER_NOT_LOADABLE
FACTORYDATE_AFTER_RANGE
FACTORYDATE_BEFORE_RANGE
FACTORYDATE_INVALID
FACTORY_CALENDAR_ID_MISSING
FACTORY_CALENDAR_NOT_FOUND

Function Group

SCAL

rdisp/max_wprun_time - Maximum work process run time   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 3106 Date: 20240523 Time: 062920     sap01-206 ( 28 ms )