‎2009 Feb 19 11:00 AM
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?
‎2009 Feb 19 11:05 AM
hi
try BAPI_SALESORDER_CHANGE and call BAPI_TRANSACTION_COMMIT after this.
hope this helps
regards
Aakash Banga
‎2009 Feb 19 11:08 AM
BAPI_SALESORDER_CHANGE worked for me for the very same purpose.
Rahul
‎2009 Feb 19 11:24 AM
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.
‎2009 Feb 19 11:09 AM
‎2009 Feb 19 12:02 PM
Hi,
You can use schedule lines table and req qty field in BAPI to update quantity in an item.