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 run

Former Member
0 Likes
663

Hi all,

Bapi has run and created the sales order.

However order quantity is set to zero, 0.

I have used;

order_items-TARGET_QTY = itab-KWMENG.

and it seems that order_items table is ok, quantities are seen just before calling the bapi fm.

But in order quantities are 0.

What could be the reason?

Thanks.

deniz.

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
640

Which bapi are u using?

a®

5 REPLIES 5
Read only

former_member194669
Active Contributor
0 Likes
641

Which bapi are u using?

a®

Read only

0 Likes
640

Hi,

BAPI_SALESORDER_CREATEFROMDAT2

Thanks.

deniz.

Read only

0 Likes
640

Have you filled ORDER_ITEMS_INX ?

a®

Read only

0 Likes
640

Hi,

No I did not fill, and did not use ORDER_ITEMS_INX.

Which fields should I use?

Thanks.

Read only

0 Likes
640

Hi,

You need to fill the INX


wa_order_items_inx-ITM_NUMBER = WA_SORDER-ITM_NUMBER.
wa_order_items_inx-target_qty = c_x.
wa_order_items_inx-updateflag = c_x.
APPEND wa_order_items_inx TO order_items_inx.

Please search in this forum you can find lot of threads related to this

a®