2024 Mar 08 5:42 AM
Hello All , I want to change sales order line item material through BAPI_SALESORDER_CHANGE , I have written all those required ABAP codes , but still am getting an error : "Field 'MATNR' cannot be changed, VBAPKOM 000010 ready for input"
Kindly guide me the steps to achieve this .
Screenshot :
#SAPABAP #ABAP #BAPI
2024 Mar 08 9:33 AM
2024 Mar 10 4:32 AM
So , if i make MATNR Field editable in va02 through user exit enhancement , will i be able to change through bapi a well ? Please reply
2024 Mar 11 9:32 AM
The first question to resolve before making a mess of the database is why this field is protected.
Also you should post relevant part of your code, how did you fill the BAPI parameers.
2024 Mar 12 4:29 AM
The field MATNR is protected in standard only , also i have filled all bapi parameters correctly according to bapi_salesorder_change example , like updateflag etc...
2024 Mar 12 10:49 AM - edited 2024 Mar 12 12:53 PM
So SAP prevents you to change this value, so don't change it?
(Ask functionnal on actual requirempent, you could cancel current item and create a new item in the order)
2024 Mar 12 10:51 AM
Well that's the custom development that clients wants it 😥
2024 Mar 12 11:16 AM
Hi Instead of changing the MATNR in VA02 which you can not do as STANDARD practice.
Delete the line item and add the new material in new line item.