cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_SALESORDER_CREATEFROMDAT2 - enter sold to party and sales doc not changed.

mfarrikjamal
Participant
0 Likes
1,748

Hai all,

I m new to BAPI, I was given an assignment to create sales order using BAPI_SALESORDER_CREATEFROMDAT2 and BAPI_TRANSACTION_COMMIT.

I tried my level best, but got 2 returns couldn't able to create sales order.

i m attaching the screenshots of the returns.

Pls do guide me how to overcome this issue and let me know the proper procedure step wise in how to create sales order with respective to BAPI.

Thanks & Regards,

SAP SD Functional.

sales-order-bapi-returns.jpgsales-order-returns-1.jpg

Accepted Solutions (1)

Accepted Solutions (1)

VeselinaPeykova
Active Contributor
0 Likes

1. You can use transaction BAPI to locate the documentation for the fields in

BAPI_SALESORDER_CREATEFROMDAT2.

2. The error is self-explanatory: it seems that you have not entered the information about order partners, to be more precise - this is in ORDER_PARTNERS. ORDER_PARTNERS is mandatory as you can see in SE37 or read in the documentation. This is logical because you need to specify at least the sold-to party when you create sales orders.

3. Again, please read the documentation from transaction BAPI, it is a valuable source of information.

mfarrikjamal
Participant
0 Likes

partner2.jpg

but i have already gave sold to party with no. but i m getting the same error

VeselinaPeykova
Active Contributor

mfarrikjamal you really need to read carefully the BAPI documentation.

You need to have a line with item 000000 for sold-to party, check how VBPA looks for manually created sales orders.

mfarrikjamal
Participant
0 Likes

Ur awesome Veselina Peykova it worked, i dint gave anything in item no. in partners, my sale order is created. capture-10.jpg

Thanks a lot.

oukennsou6
Explorer
0 Likes

VeselinaPeykova
I had the same problem.
I tried change the sold to party and line with item.
But I still got the same error.
スクリーンショット 2024-02-04 194918.pngスクリーンショット 2024-02-04 195213.png

The Japanese message means "Please enter a ship-to or sold-to party. The sales order was not changed."

Answers (0)