Fonction SAP BAPI_BUPR_CONTP_CREATE - SAP BP, BAPI: Create Contact Person Relationship Address

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ADDRESSDATA BAPIBUS1006002_ADDRESS u 134 X Address Data for Contact Person in Organization
ADDRESSGUID BAPIBUS1006002_ADDRESSES-ADDRESSGUID C 32 X Address
BUSINESSPARTNER BAPIBUS1006_HEAD-BPARTNER C 10 Business Partner
CENTRALDATA BAPIBUS1006002_CENTRAL u 451 X Central Data for Contact Person in Organization
CONTACTPERSON BAPIBUS1006_HEAD-BPARTNER C 10 Contact Person
DEFAULTRELATIONSHIP BAPIBUS1006002_HEADER-DEFAULTRELATIONSHIP C 1 X Standard Relationship
DUPLICATE_MESSAGE_TYPE BAPIBUS1006_HEAD-CONTROLDUPLICATEMESSAGE C 1 X Message Type Control
VALIDFROMDATE BAPIBUS1006002_HEADER-VALIDFROMDATE D 8 '00010101' X Validity Date (Valid From)
VALIDUNTILDATE BAPIBUS1006002_HEADER-VALIDUNTILDATE D 8 '99991231' X Validity Date (Valid Through)

Paramètre Reférence Long. Facultatif Description
ADDRESSDUPLICATES BAPIBUS1006002_ADDR_DUPLICATES 70 X Relationship Address Duplicates
BAPIADFAX BAPIADFAX 143 X Telefax Numbers
BAPIADPAG BAPIADPAG 136 X Pager Numbers
BAPIADPRT BAPIADPRT 40 X PRT Addresses
BAPIADRFC BAPIADRFC 69 X RFC Addresses
BAPIADRML BAPIADRML 63 X RML Addresses
BAPIADSMTP BAPIADSMTP 300 X E-Mail Addresses
BAPIADSSF BAPIADSSF 2391 X SSF Addresses
BAPIADTEL BAPIADTEL 142 X Telephone Numbers
BAPIADTLX BAPIADTLX 72 X Telex Numbers
BAPIADTTX BAPIADTTX 72 X Teletex Numbers
BAPIADURI BAPIADURI 2219 X URI Addresses
BAPIADX400 BAPIADX400 948 X X400 Addresses
BAPIAD_REM BAPIAD_REM 55 X Address Notes
BAPICOMREM BAPICOMREM 60 X Notes on Communication Types
RETURN BAPIRET2 548 X Messages

Functionality
You can use BAPI_BUPR_CONTP_CREATE to create a contact personrelationship between two business partners. The system checks that thespecified business partners exist. The business partner that you enterin the "contact person" parameter must be in the "person" category.
Any errors that occur during checks are logged and output in the Returntable parameter. If errors occur, the relationship is not created.
You can enter an address for the contact person relationship in theADDRESSGUID parameter. If you do not make any entry here, the systemdetermines the standard address for the business partner in theBUSINESSPARTNER parameter, and creates this as the address for thecontact person relationship.

Description
This structure contains information on the address data of the contactperson relationship.
For information on the significance of the individual parameter fields,consult the corresponding data element documentation in the ABAPdictionary.

Description
The address GUID uniquely identifies an address over all systems.
It is purely a technical object identifier that is not intended for usein the interface, or in interaction between system users.
INCLUDE BAPI_BUSINESSPARTNER OBJECT DOKU ID TX

Description
This structure contains central information on the contact personrelationship.
The fields

  • TEL1_NUMBR

  • TEL1_EXT

  • FAX_NUMBER

  • FAX_EXTENS

  • E_MAIL

  • with details on communication addresses are for information purposesonly. You must not liken them to the functions of the communicationaddress parameters in Central Address Management (CAM).
    You should only use the above fields if no addresses and communicationaddresses are managed in CAM.
    For information on the significance of the other parameter fields,consult the corresponding data element documentation in the ABAPdictionary.
    INCLUDE BAPI_CONTACTPERSON OBJECT DOKU ID TX

    Description
    With this indicator, you identify a contact person relationship as thestandard contact person relationship.

    Description
    INCLUDE BAPI_PAR_DUPLICATE_MESS_TYPE OBJECT DOKU ID TX LANGUAGE EN

    Description
    The validity (valid from) date determines the beginning of the validityperiod of an object (of the contact person relationship, in this case)on the time axis.

    • You only need to maintain a date if a time constraint has been defined
    • for the contact person relationship category.
      • If you do not enter a date, the default value is set at 01/01/0001.

      • If no time constraint has been defined in the settings menu for the
      • relationship category, any date entries that differ from the defaultvalue are ignored, and the default date is set.

        Description
        The validity (valid to) date determines the end of the validity periodof an object (of the contact person relationship, in this case) on thetime axis.

        • You only need to maintain a date if a time constraint has been defined
        • for the contact person relationship category.
          • If you do not enter a date, the default value is set at 12/31/9999.

          • If no time constraint has been defined in the settings menu for the
          • relationship category, any date entries that differ from the defaultvalue are ignored, and the default date is set.

            Description
            INCLUDE BAPI_PAR_ADDRESSDUPLICATES OBJECT DOKU ID TX

            Description
            This table contains information on the fax data of the contact personrelationship.
            For information on the significance of the individual parameter fields,consult the corresponding data element documentation in the ABAPdictionary.

            Description
            This table contains information on the pager numbers of the contactperson relationship.
            For information on the significance of the individual parameter fields,consult the corresponding data element documentation in the ABAPdictionary.

            Description
            This table contains information on the printer addresses of the contactperson relationship.
            For information on the significance of the individual parameter fields,consult the corresponding data element documentation in the ABAPdictionary.

            Description
            This table contains information on the RFC addresses of the contactperson relationship.
            For information on the significance of the individual parameter fields,consult the corresponding data element documentation in the ABAPdictionary.

            Description
            This table contains information on the remote mail addresses of thecontact person relationship.
            For information on the significance of the individual parameter fields,consult the corresponding data element documentation in the ABAPdictionary.

            Description
            This table contains information on the internet addresses of thecontact person relationship.
            For information on the significance of the individual parameter fields,consult the corresponding data element documentation in the ABAPdictionary.

            Description
            This table contains information on the SSF addresses of the contactperson relationship.
            For information on the significance of the individual parameter fields,consult the corresponding data element documentation in the ABAPdictionary.

            Description
            This table contains information on the telephone addresses of thecontact person relationship.
            For information on the significance of the individual parameter fields,consult the corresponding data element documentation in the ABAPdictionary.

            Description
            This table contains information on the telex data of the contact personrelationship.
            For information on the significance of the individual parameter fields,consult the corresponding data element documentation in the ABAPdictionary.

            Description
            This table contains information on the teletex data of the contactperson relationship.
            For information on the significance of the individual parameter fields,consult the corresponding data element documentation in the ABAPdictionary.

            Description
            This table contains information on the URI addresses of the contactperson relationship.
            For information on the significance of the individual parameter fields,consult the corresponding data element documentation in the ABAPdictionary.

            Description
            This table contains information on X400 addresses of the contact personrelationship.
            For information on the significance of the individual parameter fields,consult the corresponding data element documentation in the ABAPdictionary.

            Description
            This table contains comments on the addresses of the contact personrelationship.
            For information on the significance of the individual parameter fields,consult the corresponding data element documentation in the ABAPdictionary.

            Description
            This table contains comments on the communication data of the contactperson relationship.
            For information on the significance of the individual parameter fields,consult the corresponding data element documentation in the ABAPdictionary.

            Description
            This table contains the return messages from the method call.