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

Material Master Update

Former Member
0 Likes
1,152

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
Read only

Former Member
0 Likes
1,117

BAPI_STANDARDMATERIAL_CREATE

Read only

kostas_tsioubris
Contributor
0 Likes
1,117

Hi,

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

Kostas

Read only

Former Member
0 Likes
1,117

Hi,

try BAPI: BAPI_MATERIAL_SAVEDATA.

Regards, Dieter

Read only

0 Likes
1,117

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

Read only

0 Likes
1,117

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

Read only

0 Likes
1,117

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

Read only

0 Likes
1,117

Hi,

if you use: BAPI_MATERIAL_SAVEDATA

you cat set the field PUR_STATUS

Regards, Dieter

Read only

0 Likes
1,117

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?

Read only

0 Likes
1,117

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

Kostas

Read only

0 Likes
1,117

Hi,

look at my last answer.

MARA-MSTAE is in the FM CLIENTDATA-PUR_STATUS.

Regards, Dieter

Read only

0 Likes
1,117

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