Application Development 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: 

Change Material in Sales Order Line Item Using BAPI_SALESORDER_CHANGE

Yogeshwaran
Explorer
7 REPLIES 7

raymond_giuseppi
Active Contributor
0 Kudos

0 Kudos

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

0 Kudos

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.

0 Kudos

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...

0 Kudos

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)

kunal25kolhe
Explorer
0 Kudos

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.