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 to update Order Quantity

Former Member
0 Likes
2,065

Hi,

I need to update the Order Quantity(KWMENG) at item level of the Sales Order. For this I am using 'BAPI_SALESDOCUMENT_CHANGE'.

I am passing the quantity to 'Target Quantity' in 'ITEM_IN' tables parameter. But, it is not getting updated in VA02.

Please let me know, where should I pass the Order quantity?

5 REPLIES 5
Read only

Former Member
0 Likes
995

hi

try BAPI_SALESORDER_CHANGE and call BAPI_TRANSACTION_COMMIT after this.

hope this helps

regards

Aakash Banga

Read only

rahul2000
Contributor
0 Likes
995

BAPI_SALESORDER_CHANGE worked for me for the very same purpose.

Rahul

Read only

Former Member
0 Likes
995

Actually, I need to create a new item using the details from the preceding item number. I am using SD_SALESDOCUMENT_CHANGE and passing all the details.

All the fields except order quantity are getting updated. I am doing Commit work after calling this function module.

Read only

Former Member
0 Likes
995

Hi Priyanka,

Use BAPI_SALESORDER_CHANGE to update order quantity and dont forget to COMMIT after execution of BAPI.

Have a look on the folliwing thread:

Regards,

Nitin.

Read only

Former Member
0 Likes
995

Hi,

You can use schedule lines table and req qty field in BAPI to update quantity in an item.