Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

error in using bapi_salesorder_simulate

Former Member
0 Likes
684

Hi guys,

Im having this error is BAPI_SALESORDER_SIMULATE:

"please enter ship-to party or sold-to party"

What causes this error?

Please show some sample also on how to populate this bapi to retrieve pricing condition given the delivery number for PO(STO)...

thanks a lot!

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
530

Hello Mark

You need to provide both, ship-to-party and sold-to-party, in order to create a sales order. Use the TABLES parameter ORDER_PARTNERS for adding the partners, e.g.:


PARTN_ROLE  = 'SP'        " sold-to-party, 'SH' = ship-to-party
PARTN_NUMB = <debitor number with leading zeros>
ITM_NUMBER  = '000000'  " I assume this is for the header

Regards

Uwe

3 REPLIES 3
Read only

Former Member
0 Likes
530

u need to enter SOLD-TO party and SHIP-TO party, as well as special processing indicator, po no, shipping condition, and line item data .

Read only

0 Likes
530

how?

Thanks!

Read only

uwe_schieferstein
Active Contributor
0 Likes
531

Hello Mark

You need to provide both, ship-to-party and sold-to-party, in order to create a sales order. Use the TABLES parameter ORDER_PARTNERS for adding the partners, e.g.:


PARTN_ROLE  = 'SP'        " sold-to-party, 'SH' = ship-to-party
PARTN_NUMB = <debitor number with leading zeros>
ITM_NUMBER  = '000000'  " I assume this is for the header

Regards

Uwe