Issue with BAPI_SALESORDER_CREATEFROMDAT2: "Ship-to Party is not assigned to Sold-to Party

3 months ago 35

Hi SAP Community,

In my codification , I americium facing an contented portion creating a income bid utilizing the BAPI BAPI_SALESORDER_CREATEFROMDAT2 with minimal required data. Despite utilizing the aforesaid spouse fig (17100002) for some Bill-to Party (BP) and Ship-to Party (SH), which I construe to WE and SH respectively aft applying the explicit conversion exit, the BAPI returns the error: "Ship-to Party is not assigned to Sold-to Party".

Here's a summary of my observations and the steps I've taken:

  1. Direct BAPI Execution successful SE37:

    • When I execute the BAPI straight successful SE37 with the aforesaid parameters (without spouse relation conversion), the income bid is created successfully and gets committed without immoderate errors.
  2. VA01 Transaction:

    • I replicated the aforesaid bid utilizing VA01, keeping the Sold-to and Ship-to parties the aforesaid arsenic mentioned above. The bid goes done successfully without immoderate issues.

My Questions:

  1. SD Configuration:

    • Is determination a circumstantial SD configuration that allows specifying that the Bill-to/Ship-to spouse indispensable beryllium the aforesaid spouse for a circumstantial customer? If so, however tin I verify oregon modify this configuration?
  2. BAPI Parameters and Program Handling:

    • Given that the bid is created successfully successful SE37 and VA01, why does it not enactment erstwhile the BAPI is utilized wrong ABAP code?

Your insights volition beryllium highly appreciated.

Read Entire Article