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

function module for item category update in so

aditya_rayalu
Explorer
0 Likes
1,007

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

1 REPLY 1
Read only

Former Member
0 Likes
543

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