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

about changing the material no using BAPI_MATERIAL_SAVEDATA

Former Member
0 Likes
445

Hi,

Anyone knows how to update() the material number using bapi_material_savedata when user enters the new matnr in the field.

let me know.

thanks & regards

vishnukvv

Hi,

Anyone knows how to update() the material number using bapi_material_savedata when user enters the new matnr in the field.

let me know.

thanks & regards

vishnukvv

2 REPLIES 2
Read only

Former Member
0 Likes
427

Hi Vishnu,

At first I was surprised to see this question. We cannot change material number. Hence there are 2 options available:

1) Create a copy of the material and change the material number to what you want at the time of creation of the new material by inserting code in the fm that generates a material number.

2) use the field material_external to store the material number required. This field is available in the import parameter 'HEADDATA' of BAPI_MATERIAL_SAVEDATA.

The second option should be better.

Regards,

Nimish

Read only

former_member404244
Active Contributor
0 Likes
427

Hi,

U cannot change the material number , but u can change the data for that material using the FM'BAPI_MATERIAL_SAVEDATA'.

Regards,

Nagaraj