Application Development 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: 

Reg : sales order in BAPI

former_member585865
Contributor
0 Kudos

Hi All,

Am using BAPI_SALESORDER_CREATEFROMDAT2 to create sales order i have given all the mandatory fields but still its saying

'Please enter sold-to party or ship-to party'

Which field i have to fill the sold to party and ship to party in bapi.

kindly say where am wrong?

6 REPLIES 6

Former Member
0 Kudos

Hi

Go through the link given below :

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abap-Simpleprogramtocreatesalesorderusing+BAPI

With Regards

Nikunj Shah

Former Member
0 Kudos

Hi Suresh,

You need to append sold-to-party and ship-to-party in table 'order_partners' of BAPI.

Regards,

Aparna Gaikwad

former_member188685
Active Contributor
0 Kudos

You need to mention the

SALES_ORG
DISTR_CHAN
DIVISION

and also give the valid Sold to or Shipto partners in the Table parameter

ORDER_PARTNERS

Then check .

Pramanan
Active Participant
0 Kudos

hi suresh,

In the FM "BAPI_SALESORDER_CREATEFROMDAT2"

ORDER_HEADER_IN in import and ORDER_PARTNERS are not optional. So check whether you have given all required inputs in these two.

And then check ORDER_HEADER_INX whether the corresponding fields of order_header is filled with 'X' in order_header_inx.

For example

if doctype in ORDER_HEADER_IN is 'LF'

means you have to mark the correspoding doctype in ORDER_HEADER_INX as 'X'.

Check other than these if you give input in some other tables put corresponding 'X' to the other fields.

Check it and let me know

Regards,

Ramanan

Pramanan
Active Participant
0 Kudos

hi,

Sorry, i submit the same answer here..so i edited.

Please see my reply above.

Regards,

Ramanan

Edited by: Ramanan Panchabakesan on Jul 16, 2008 10:20 AM

Former Member
0 Kudos

Suresh,

Have you bothered to read the documentation for that BAPI?

It clearly shows the mandatory fields you have to populate to make it work - please try to help yourself before posting on here and failing that please search the forums as most questions have been asked and answered countless times before.