Fonction SAP BAPI_BCONTACT_GETDETAIL - Business Partner Contact Data

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CONTACT BAPIBCONTACT_KEY-CONTACT C 12 Contact Number
TEXT_LANGUAGE BAPITEXTLI-LANGU C 1 X Notes Language

Paramètre Reférence Type Long. Description
CONTACTDATA BAPIBCONTACT u 220 Contact Data
RETURN BAPIRET2 u 548 Structure for Return Parameter

Paramètre Reférence Long. Facultatif Description
CONTACTOBJECTS BAPIBCONTACT_OBJROLE 92 X Contact Objects
NOTICETEXT BAPIBCONTACT_TEXTLINE 134 X Note for Contact

Functionality
Returns the complete data for a business partner contact.
Parameters CONTACTDATA and CONTACTOBJECTS are used to return the datafor the contact and the linked objects.
At the present time, this BAPI does not support reading the memo textfor the contact.

Example

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

Further information

Description
This parameter contains the data of the specified contact. Thestructurecontains the following fields:

  • PARTNER: business partner number

  • CONTACT_PERSON: contact person

  • CLASS: contact class

  • ACTIVITY: contact activity

  • DIRECTION: direction of the contact

  • PARTNER_INFO: information on the business partner

  • PRIORITY: priority

  • CONTACT_INFO: information on the contact

  • CONTACT_DATE: date of the contact

  • CONTACT_TIME: time of the contact

  • CREATED_ON: date the contact was generated

  • CREATED_BY: user who created the contact

  • AUTH_GROUP: authorization group

  • TEXT_LINE: remains empty
  • Description
    If an error occurs then this structure contains the followinginformation:

    • Message type (field TYPE)

    • Message code (field CODE)

    • Message text (field MESSAGE)

    • IF no errors occur then this structure remains empty

      Value range
      Type ID Number Explanation

      • E R2 012 Contact not found

      • The system could not find a contact with the number
        number you specified.

        Description
        Number of the contact whose data you want to read.
        Enter the language in which you want to read the note text here. If youdo not specify a language then the system reads the note text in thelogon langauage.

        Description
        This table contains the business objects to which the contact links.
        The table contains the following fields:

        • OBJECTROLE (object role):

        • Role of the object in the contact. The roles are defined in tableBCONTOR.
          • OBJECTTYPE (object tape):

          • The BOR object type of the object.
            • OBJECTKEY (object key)

            • The BOR key of the object. The structure of the key is described in theobject category, which is in turn in the BOR.
              This text features any notes on the contact.
              Each text line contains two fields:
              • FORMAT

              • Contains the two-character format indicator from SAPscript.
                • TEXT_LINE

                • Contains the text.