‎2007 Oct 17 12:28 PM
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.
‎2007 Oct 17 12:33 PM
‎2007 Oct 17 12:34 PM
Hi,
you can use the 'BAPI_MATERIAL_SAVEDATA' in order to change material data.
Kostas
‎2007 Oct 17 12:36 PM
‎2007 Oct 17 12:40 PM
Thanks for the reply..i want to know what all parameters that needs to be supplied to the bapi BAPI_STANDARDMATERIAL_CREATE ?
‎2007 Oct 17 12:48 PM
But there is no field to update MARA-MSTAE(Plant-material status)
‎2007 Oct 17 12:50 PM
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
‎2007 Oct 17 12:52 PM
Hi,
if you use: BAPI_MATERIAL_SAVEDATA
you cat set the field PUR_STATUS
Regards, Dieter
‎2007 Oct 17 12:53 PM
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?
‎2007 Oct 17 1:03 PM
Check the import parameter CLIENTDATA. There you should find the material status
Kostas
‎2007 Oct 17 1:07 PM
Hi,
look at my last answer.
MARA-MSTAE is in the FM CLIENTDATA-PUR_STATUS.
Regards, Dieter
‎2007 Oct 18 10:53 AM
what are all the parameters that i need to pass in order to update the material status?