‎2010 Feb 22 12:33 PM
Hi,
i have written a report to update the item category thru bapi_salesorder_change, but bapi giving error 'cannot change the field PSTYV'.
I want to update the item category in existing sales order, so is there any function module to update the item category.
Thanks
Edited by: Aditya rayalu on Feb 22, 2010 1:34 PM
‎2010 Feb 23 5:34 AM
Hi,
I think if you use FM BAPI_SALESORDER_CHANGE, you have to explicitly specify the field and its value you want to change. So put the value you want in the field ORDER_ITEM_IN-ITEM_CATEG and also "X" to ORDER_ITEM_INX-ITEM_CATEG and see what happen.
Also use BAPI_TRANSACTION_COMMIT after BAPI_SALESORDER_CHANGE.
Regards
Hiren k.Chitalia