Fonction SAP BAPI_BUS_EVENT_SCHEDULE - Read time schedule of a business event

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
EVENTTYPEID BAPIETDAT-ETYID N 8 X Business event type ID
OBJID BAPIEVDAT-EVEID N 8 Business event key
PLVAR BAPIEVDAT-PLVAR C 2 Plan version

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN u 452 Structure for Return Parameters (Code, Text)

Paramètre Reférence Long. Facultatif Description
EVENT_SCHEDULE BAPISCHED 45 Time schedule

Exception Description
CALID_ERROR Error when determining factory calendar
NO_ACTIVE_PLVAR There is no active plan version
NO_SCHEDULE There is no time schedule available
UNKNOWN_EXCEPTION Other error

Functionality
You can use this method to display the time schedule (in days andhours) of a given business event.

Value range
In the event of error, this structure can contain the followinginformation:

  • Message type (field TYPE), Dictionary data type: CHAR (field length 1)

  • Message code (field CODE), Dictionary data type: CHAR (field length 5)

  • Message text (field MESSAGE), Dictionary data type: CHAR (field length

  • 220)
    If there are no errors, the message type is 'S', and the structure isotherwise empty.

    Description
    This parameter contains the object ID of the business event type.

    Value range
    Dictionary data type: NUMC (field length 8)

    Description
    You can access information on the business event key in thecorresponding data element documentation:
    business event key

    Value range
    Dictionary data type: NUMC (field length 8)

    Description
    You can access information on the plan version in the correspondingdata element documentation:
    plan version

    Value range
    Dictionary data type: CHAR (field length 2)

    Description
    This table contains the following data on a business event schedule:
    Date of event days
    Start time
    End time
    Day name
    Indicator for days off
    Effective duration in days
    Effective duration in hours
    Indicator for a schedule without a pattern