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: 

Quantity is always zero when a sales order is created for a BAPI

0 Kudos
751

Hi All,

I used the BAPI "BAPI_SALESORDER_CREATEFROMDAT2" to create a Sales Order. Even though I put in the target quantity as 10 or 20. After the Commit work when I go back and see the sales order the order quantity is 0. Does anybody know the solution for this?

Best Regards,

Sudhi

1 ACCEPTED SOLUTION

jayanthi_jayaraman
Active Contributor
4 REPLIES 4

jayanthi_jayaraman
Active Contributor

0 Kudos
211

Hi Jayanthi,

That link was very helpful. Thanks a lot. But I surprised that this stuff is missing from the Documentation. Will have to raise this ticket to update the documentation.

Have a nice day,

Sudhi

Former Member
0 Kudos
211

Hi,

You have to pass 'X' to fields in structure ORDER_ITEMS_INX for the corresponding fields that u want to be updated in ORDER_ITEMS_IN.

So check whether u have passed 'X' to ORDER_ITEMS_INX-TARGET_QTY.

With regards,

Sharath.

Former Member
0 Kudos
211

hi ,

Try this out ..

In Order_schedules table put entry for

itm_number .

REQ_date .

req_qty .

this is work ..

regards ,

Sumeet Kaul