Fonction SAP BAPI_BPCONTACT_CREATEFROMDATA - BAPI Partner Sales Activity Create from Data

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
RTF_ITF BAPI_FLAG C 1 SPACE X Text Form.
SENDER BAPI_SENDER u 10 Logical System - Sender
TESTRUN BAPI_VBKA_MISC-TESTRUN C 1 SPACE X Simulate Posting

Paramètre Reférence Long. Facultatif Description
BUSINESSPARTNER BAPI_VBKA_VBPA2KOM 184 Document Partner
BUSINESSPARTNERX BAPI_VBKA_VBPA2KOMX 113 X Document Partner Initial Value
GENERALDATA BAPI_BUS1037_VBKAKOM_CR 267 General Data
GENERALDATAX BAPI_BUS1037_VBKAKOM_CRX 127 X General Data Initial Value
OBJECT_REFERENCE_LIST BAPI_VBKA_OBJREF_CR 185 X Object References
PARTNERADDRESS BAPIADDR1 1574 X Changed Address of Business Partner
RETURN BAPIRET2 548 X Return Code
TEXT BAPI_VBKA_TLINEKOM 234 X Document Text

Functionality
You can use this BAPI function module to create partner salesactivities. In order to change the database, the following methods haveto be called:
BusPartnerContact.Save
BapiService.TransactionCommit
The relevant method has been implemented as a class method. TheReturn parameter contains the processing log. The log includesall messages (error, warning, information) from the consistency check.
Assignment of key fields:

  • Create with reference to an external reference object

  • REFOBJECTTYPE Object type of reference object, here "PROXY0001"or subtype
    REFOBJECTKY Key of reference object type
    DOC_NUMBER not relevant
    REFDOCTYPE not relevant
    REFRELTYPE Binary relationship type, here 'VORL'
    The generated object reference can be displayed in the sales activity.
    • Create with reference to an internal reference object

    • REFOBJECTTYPE Object type of reference object
      REFOBJECTKY Key of reference object
      DOC_NUMBER not relevant
      REFDOCTYPE Sales activity type of reference object (only ifreference = sales activity)
      REFRELTYPE Binary relationship type
      The generated object reference can be displayed in the sales activity.
      • Create without reference to a reference object

      • REFOBJECTTYPE blank
        REFOBJECTKY blank
        DOC_NUMBER Handle
        REFDOCTYPE not relevant
        REFRELTYPE blank
        The fields REFOBJECTTYPE, REFOBJECTKY and DOC_NUMBER are internallyidentifying for an instance!

        Further information
        SFA Interface (Specification and Design)

        Description
        Text format RTF or ITF

        Value range
        SPACE: Text conversion with function module CONVERT_TEXT
        R: Text conversion with function module CONVERT_RTF_TO_ITF andCONVERT_ITF_TO_RTF
        I: No text conversion (text in ITF format)

        Default
        The default value is SPACE.

        Description
        Identifies the sender using the logical system.

        Description
        Activating the test mode.
        The system carries out the following steps:

        • Consistency checks

        • Issuing the processing log

        • The system does not assign any object numbers and does not save anydata. If you want the object to remain in the system, it has to betransmitted again.

          Default
          The test mode is not activated.

          Description
          Partner in partner sales activity.
          You have to enter a customer when you create a partner sales activity.The system copies the remaining partner functions from Customizing.
          Partners can have have different functions in a partner salesactivity.
          The following list includes some partner functions:

          • Sold-to party

          • Contact person at customer's location

          • Sales employee
          • Default
            This parameter is mandatory.

            Description
            Indicating initial value Document Partner.
            All attributes of the parameter Document Partner containing avalid value are flagged in the parameter Document Partner InitialValue. Especially initial values can be transferred in this way. Anattribute with an initial value will not be written over inCustomizing.

            Description
            General data in partner sales activity.

            Default
            This parameter is mandatory.

            Description
            Indicating initial value General Data.
            All attributes of the parameter General Data containing a validvalue are flagged in the parameter General Data Initial Value.Especially initial values can be transferred in this way. An attributewith an initial value cannot be written over in Customizing.

            Description
            The system transmits the processing log in this parameter. The logcontains all messages (error, warning, information) from theconsistency check. The system carries out this check completely forevery object. You can identify this object by using a temporarydocument number. The system cannot carry out all checks before thenumbers are assigned.

            Description
            Long texts in partner sales activity.
            The system stores the transmitted long texts in the document. Inaddition, it determines texts in Customizing.
            Long texts should have RTF format.