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 successfully work but *quantity field* not update in databae table

Former Member
0 Likes
572

Hello All,

When we change item-quantity in any sales order by using bapi BAPI_SALESORDER_CHANGE, then return table successfully run but quantiy not change in database table.

I also commit BAPI using BAPI_TRANSACTION_COMMIT.

I change field shorttext (ARKTX) in same bapi.

So pls help me to solve my problem.

Thanks and Regards.

Swatantra Pathak

Hello All,

When we change item-quantity in any sales order by using bapi BAPI_SALESORDER_CHANGE, then return table successfully run but quantiy not change in database table.

I also commit BAPI using BAPI_TRANSACTION_COMMIT.

I change field shorttext (ARKTX) in same bapi.

So pls help me to solve my problem.

Thanks and Regards.

Swatantra Pathak

3 REPLIES 3
Read only

naimesh_patel
Active Contributor
0 Likes
550

Alongwith the quantity in the ORDER_ITEM_IN, you need to set the indicator which will tell the system that quantity is changed.

Like:

If you are changing the target quantity by ORDER_ITEM_IN-TARGET_QTY = '200'

than you need to set the ORDER_ITEM_INX-TARGET_QTY = 'X'.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
550

hi,

try also fillin table "order_schedules_in"

order_schedules_in-itm_number = order_items_in-itm_number.

order_schedules_in-req_qty = order_items_in-target_qty.

APPEND order_schedules_in.

greetings,darek

Read only

Former Member
0 Likes
550

Thanks.