Register Login

BAPI_SALESORDER_CREATEFROMDAT2 extension and Email address issues for Partners

Updated May 19, 2018

Hello SAP Experts,

Bapi BAPI_SALESORDER_CREATEFROMDAT2 is giving following issues:

  1. Problems while adding email address for partner using BAPI_SALESORDER_CREATEFROMDAT2.
  2. Problems while trying to update addresses via BAPI.
  3. Problems with the PARTNERADDRESSES-ADDR_NO field in BAPI_SALESORDER_CREATEFROMDAT2.
  4. Problems with the ORDER_PARTNERRS-ADDR_LINK field in BAPI_SALESORDER_CREATEFROMDAT2.

Please follow the steps given below in order to re-generate the issue:

  • First, enter BAPI_SALESORDER_CREATEFROMDAT2 in Transaction SE37.
  • Now click Test/Execute (F8)
  • And then fill in required fields as follows:

           ORDER_HEADER_IN
           ORDER_HEADER_INX
           ORDER_ITEMS_IN
           ORDER_ITEMS_INX
           ORDER_PARTNERS
           PARTNERADDRESSES

  •  At last Execute

Note: The test data can be saved so that you can call it up again using the "Test data directory" button, see  550431 - FAQ: BAPIs in sales - general questions, part 4.


Comments

  • 21 Feb 2017 10:45 am Sugandh Helpful Answer

    Please follow the following in order to resolve the above-mentioned error:

    1. The fields PARTNERADDRESSES-ADDR_NO and ORDER_PARTNERS-ADDR_LINK are CHAR fields, therefore, they should be only filled with leading zeroes.
    2. ORDER_PARTNERRS-ADDR_LINK must contain a temporary number, such as 0000000001 and not a real number of an existing address.
    3. Also, enter the address data only in PARTNERADDRESSES.
    4. In ORDER_PARTNERS enter only PARTN_ROLE, PARTN_NUMB and ADDR_LINK (the link to the address data in table PARTNERADDRESSES).
       
  • 21 Feb 2017 10:46 am Nitesh Singh Helpful Answer

    The issue you are facing is caused because the Fields in ORDER_PARTNERS and PARTNERADDRESSES must not have been filled correctly.
     


×