cancel
Showing results for 
Search instead for 
Did you mean: 

Sales Order Create -BAPI-Partner function Error

Former Member
0 Kudos

Hi,

I tried to create a Sales Order through BAPI - BAPI_SALESORDER_CREATEFROMDAT2

I am getting the error message "Please enter sold-to party or ship-to party"

But i have entered both sold to party and ship to party.

SP-500004,SH-500004

What i noted down is in the Customer master it is in German.So i tried to enter partner function as AG,WE it is getting converted directly.I think only because of it I am getting this error.Please find the screen shot.

There are also similar threads like this,but that did not add value to my error,that is why i posted this.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Now i could create Sales Order .The only change i did is i removed the line item number in partner function.

Let us take the case ,if we have different partner function at line item level,how it can be handled.

former_member200027
Active Participant
0 Kudos

Hi,

When creating sales order, it is mandatory to input ship-to party and sold-to party on header level.

So, in the first case, when inputting SH/SP = 50004 and ITM_NU=10, this means you have specified for item 10, ship-to party and sold-to party is 50004. But since you have not specified ship-to and sold-to on header level, error "please enter sold-to party or ship-to party" is issued.

When you removed line item number in partner function(ITM_NU=0), this means the entered ship-to and sold-to are used for header level(ITM_NU=0 means header level), so the error is not issued.

If you want to create sales order with multiple items, and ship-to party of items are different from the one on header level, you could input following value:

SH/SP= 500004 ITM_NU = 0         =>  This means  500004 is used for header level

SH= 500005(for example) ITM_NU = 10     =>  This means 500005 is used for item 10

Hope I was able to help with above information.

Best regards,

Crystal Lin

Answers (0)