Fonction SAP BAPI_BCONTACT_GETLIST - Contacts for a Business Partner

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CONTACT_OBJECT BAPIBCONTACT_OBJECT u 80 X Selection: Linked Object
DATE_FROM BAPIBCONTACT-CONTACT_DATE D 8 X Selection: Contacts as of Date
DATE_TO BAPIBCONTACT-CONTACT_DATE D 8 X Selection: Contacts up to Date
MAX_NUMBER BAPI_MAX_HITS-MAX_HITS I 4 X Selection: Read Maximum Number of Contacts
PARTNER BAPIBCONTACT-PARTNER C 10 Business Partner Number

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548 Structure for Return Parameter

Paramètre Reférence Long. Facultatif Description
CONTACTDATA BAPIBCONTACT 220 Contact Data

Functionality
Returns the list of contacts for a business partner
You can delimit the contacts by date and linked object.
Table CONTACTDATA contains the header data for the found contacts. Itis sorted by date in descending order. The latest contact is displayedfirst.

Example

Notes
If an error occurs during processing, it is returned in the RETURNparameter.

Further information

Description
If an error occurs, this structure contains the following information:

  • Message cateogry (field TYPE)

  • Message code (field CODE)

  • Message text (field MESSAGE)

  • If no errors occur then this structure remains empty.
    If you specify a BOR object here, the system only selects the contactsbelonging the business partner that are linked to that object.
    The structure contains the following fields
    • OBJECTTYPE

    • BOR object type.
      • OBJECTKEY

      • BOR object key. The structure of the key must correspond with the BOR.
        The system only selects contacts created as of this date.
        The system only selects contacts created on or before this date.
        Here, you can specify the maximum number of contacts you want thesystem to determine.
        If you enter nothing here, or the value 0, the system determines allthe contacts that meet the other selection criteria.
        The contacts are sorted by date, ensuring that the system always givesyou the most recent contacts.
        Number of the business partner whose contacts you want the system todetermine.

        Description
        This parameter contains the data of the contact determined.
        The structure contains the following fields:

        • PARTNER: business partner number

        • CONTACT_PERSON: contact person

        • CLASS: contact class

        • ACTIVITY: contact activity

        • DIRECTION: direction of contact

        • PARTNER_INFO: information on the contact partner

        • PRIORITY: priority

        • CONTACT_INFO: information on the contact

        • CONTACT_DATE: date of the contact

        • CONTACT_TIME: time of the contact

        • CREATED_ON: date of contact generation

        • CREATED_BY: user who created the contact

        • AUTH_GROUP: authorization group

        • TEXT_LINE: remains empty

        • The structure is sorted by contact date. The most recent contact isdisplayed first.