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

bapi BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
343

Hi All,

pls can you help me

i am using bapi BAPI_SALESORDER_CREATEFROMDAT2 to create sales order.

i add 2 items for that sales order, 2 items was created.

but after that i add one more item for that sales order but it was not creating.why?

what is the problem?

how can i do it?

pls can you tell.

thanks

mars

2 REPLIES 2
Read only

Former Member
0 Likes
321

Use the FM 'BAPI_SALESORDER_CHANGE' for that purpose.

Read only

gabriel_braun
Explorer
0 Likes
321

Hi,

When two items work and the third does not work, the item number could be the reason.

If you fill the field PO_ITM_NO in the item table, make sure that you pass a different item number each time.

You can also leave the item number space, then the system will create an item number.

Regards

Gabriel