Skip to Content
avatar image
Former Member

Sales Order Create -BAPI-Partner function Error

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Nov 03, 2015 at 12:34 PM

    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.


    11.jpg (40.4 kB)
    Add comment
    10|10000 characters needed characters exceeded

    • 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