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: 

Material Master Update

Former Member
0 Kudos

Hi All,

We have a requirement wherein the user needs to update the Plant Material Status Field present in Basic Data view of MM02.Please let me know the BAPI that is used to do so.

Thanks,

Rakesh.

11 REPLIES 11

Former Member
0 Kudos

BAPI_STANDARDMATERIAL_CREATE

kostas_tsioubris
Contributor
0 Kudos

Hi,

you can use the 'BAPI_MATERIAL_SAVEDATA' in order to change material data.

Kostas

Former Member
0 Kudos

Hi,

try BAPI: BAPI_MATERIAL_SAVEDATA.

Regards, Dieter

0 Kudos

Thanks for the reply..i want to know what all parameters that needs to be supplied to the bapi BAPI_STANDARDMATERIAL_CREATE ?

0 Kudos

But there is no field to update MARA-MSTAE(Plant-material status)

0 Kudos

this is how u need to use this bapi

DATA: RETURN LIKE BAPIRET1,

MATERIAL LIKE BAPIMATALL-MATERIAL.

CALL FUNCTION 'BAPI_STANDARDMATERIAL_CREATE'

EXPORTING

NEWMATERIAL = 'raju'

IMPORTING

MATERIAL = MATERIAL

  • NEWMATERIAL = NEWMATERIAL

RETURN = RETURN

.

WRITE:/ MATERIAL.

reward points if helpful

0 Kudos

Hi,

if you use: BAPI_MATERIAL_SAVEDATA

you cat set the field PUR_STATUS

Regards, Dieter

0 Kudos

BAPI_MATERIAL_SAVEDATA. is the relevant BAPI to update.But i dont find the field MARA-MSTAE(Plant Material status) in thie BAPI.Is there any other BAPI to update MSTAE?

0 Kudos

Check the import parameter CLIENTDATA. There you should find the material status

Kostas

0 Kudos

Hi,

look at my last answer.

MARA-MSTAE is in the FM CLIENTDATA-PUR_STATUS.

Regards, Dieter

0 Kudos

what are all the parameters that i need to pass in order to update the material status?