Fonction SAP BAPI_COMPANY_PREBOOK_LIST - Read prebookings of a group attendee

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BEGIN_DATE BAPIDATE-BEGDA D 8 X Start date of selection period
END_DATE BAPIDATE-ENDDA D 8 X End date of selection period
LANGUAGE BAPICOPREB-LANGU C 1 X Business event language
OBJID BAPICONAME-PARID C 45 Attendee key
OTYPE BAPICONAME-PATYP C 2 Participant Type
PLVAR BAPICONAME-PLVAR C 2 Plan version

Paramètre Reférence Type Long. Description
COMPANY_NAME BAPICONAME u 101 Name of group attendee
RETURN BAPIRETURN u 452 Structure for Return Parameters (Code, Text)

Paramètre Reférence Long. Facultatif Description
COMPANY_PREBOOK_LIST BAPICOPREB 253 List of group attendee's prebookings

Exception Description
NO_ACTIVE_PLVAR There is no active plan version
NO_PREBOOK No prebookings
NO_ROOT No valid group attendee specified
UNKNOWN_EXCEPTION Other error

Functionality
You can use this method to display a group attendee's prebookings onbusiness event types for a specificselection period.
A group attendee is, for example, a customer who can make prebookingsfor either unnamed attendees (N.N. prebookings) or named attendees(individual prebookings).

Example
Customer number 0000004711 made 3 N.N. prebookings and one individualprebooking for Ms Smith in January of the current year. All theseprebookings are displayed (if the selection period includes the monthof January of the current year).

Notes
By specifying a language, you can restrict your selection toprebookings that were made for the business event language in question.

Description
The structure contains the following data on a group attendee:
Attendee type
Attendee ID
Attendee (abbreviation)
Attendee (name)

Value range
In the event of an error, this structure contains 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 set to S and thestructure is otherwise empty.

    Description
    The selection period specifies the period for which data should beread.

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

    Description
    The selection period specifies the period for which data should beread.

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

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

    Value range
    Dictionary data type: LANG (field length 1)

    Description
    You can access information on the attendee ID in the corresponding dataelement documentation:
    attendee ID

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

    Description
    You can access information on the attendee type in the correspondingdata element documentation:
    attendee type

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

    Description
    You can access information on what is meant by a plan version in thecorresponding data element documentation:
    plan version

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

    Description
    This table contains the following data on the prebookings of a groupattendee:
    Attendee type
    ID of related object
    Attendee abbreviation
    Attendee name