Fonction SAP BAPI_GET_EVENTTYPE_FOR_ROLE - Determine Business Event Types Using Standard Role

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
ROLE_ID BAPISTANDARDROLE-ROLID N 8 Standard role 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 search for business event types on the basisof the target group defined for them.

Example
You enter as the target group "Personnel officer". The search finds allbusiness event types that are related with the standard role(representing the target group).

Notes
Target groups are related with business event types as object type 'AC'(standard roles) via 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 selection period forwhich data should be read.

    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 selection period for whichdata should be read.

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

    Description
    You can find information on what is meant by a plan version in the dataelement documentation:
    Plan version

    Value range
    Dictionary data type CHAR (field length 2)

    Description
    This parameter contains the ID of a standard role.

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

    • Plan version

    • Business event type ID

    • Business event type short name (abbreviation)

    • Business event type long name

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

    • Existency of a business event catalog (with information on the event
    • dates scheduled for the event type)