Fonction SAP BAPI_GET_EVENTTYPE_FOR_TARGET - Determine Business Event Types via Target Group

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BEGIN_DATE BAPIDATE-BEGDA D 8 X Start date of selection period
CHECK_EVENT_OFFERS BAPIETDAT-CHILD C 1 X Check whether event catalog exists for business event type
END_DATE BAPIDATE-ENDDA D 8 X End date of selection period
PLVAR BAPIETDAT-PLVAR C 2 Plan version
TARGET_ID BAPITARGET-TARID N 8 Target group number

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN u 452 Message return structure

Paramètre Reférence Long. Facultatif Description
EVENTTYPE_LIST BAPIETDAT 79 Business event types

Functionality
You can use this method to find business event types on the basis ofthe target group that has been defined for them.

Example
You enter the target group 'Middle Management'. The system finds allbusiness event types linked with the relevant job (representing thetarget group).

Notes
Target groups are related as object type 'C' (job) with business eventtypes via the relationship A033 "is planned for".

Value range
If errors occur, this structure can contain the following information:

  • 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 no errors occur, the message type is S, and the structure isotherwise empty.

    Description
    This parameter specifies the start date of the data selection period.

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

    Description
    You can find information on what is meant by the business event catalogin the relevant data element documentation:
    business event catalog

    Description
    This parameter specifies the end date of the data selection period.

    Value range
    Dictionary data type: DATS (foeld length 8)

    Description
    For information on the significance of plan versions, please refer tothe relevant data element documentation:
    plan version

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

    Description
    This parameter contains the ID number of the target group(job).

    Description
    This table contains the following data on business event types:

    • Plan version

    • Business event type ID

    • Business event type name (abbreviation)

    • Business event type name (long text)

    • Validity period of business event type (start and end dates)

    • Existence of a business event catalog (information as to whether dates
    • have already been scheduled for the event type).