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

TARGET_QTY not getting saved while using BAPI_SALESORDER_CREATEFROMDAT2

Former Member
0 Likes
655

Hi,

I am using 'BAPI_SALESORDER_CREATEFROMDAT2' for sales order upload.

The sales order gets created but the quantity field value does not get saved.

I have also marked the corresponding field 'TARGET_QTY' in ORDER_HEADER_INX.

The sales order is created but quantity field does not get populated.

Kindly help.

Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
547

-

Read only

0 Likes
547

I´m getting the same error. Any help?

Read only

0 Likes
547

Hello ,

First of all ..is TARGET_QTY at header level or item level ? I dont have a system right now to check and confirm it but I believe its at the item level.In that case you should be filling it at the item level tables :

ORDER_ITEMS_IN

ORDER_ITEMS_INX

Also there should be another field similar to TARGET_QTY ...one is sales units and another one in UoM.

Try filling both the fields and marking the checkbox table fields to X.

Mathews