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: 

Problem in BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Kudos

Hai,

Now only i solved the customer number problem. Now i am facing problem in quantity field.

the following code for the line item (one).

ORDER_ITEMS_IN-MATERIAL = '000000000000100039'.

ORDER_ITEMS_IN-TARGET_QTY = 2.

ORDER_ITEMS_IN-PLANT = 'V700'.

ORDER_ITEMS_IN-PROFIT_CTR = 'E02902'.

append ORDER_ITEMS_IN.

the sales order created and viewble but there no value in the quantity field and that is empty.

plz tell me any solution,

thanks,

Elamaran

3 REPLIES 3

former_member181962
Active Contributor
0 Kudos

Hi Elam,

CHeck if you have populated ORDER_ITEMS_INX-TARGET_QTY = 'X" or not.

Former Member
0 Kudos

Hey Elam,

To populate the quantity in the Sales Order , You need to populate the schedule line structure with Quantity ( not in item structure). Then you would see the quantity in the Sales Order.

Hope this helps.

Regards,

Siva

0 Kudos

You must populate the ordered qty into the schedule line table. The items_in table is not the correct location for this qty.