2013 May 30 3:30 AM
I am using BAPI_MATERIAL_SAVEDATA to update some fields(safety stock,re-order point,safety time) in material master for MRP view.
I could able to update these successfully for few materials but for few other materials i am getting the below error.
M3 072 - Enter the MRP type.
when i compare these two materials, the first one(which successfully updated) has the MRP type (MARC-DISMM)value ,where as for the second material MARC-DISMM value is blank.
should a material have MRP value to update it through this BAPI?
2013 May 30 7:40 AM
Hi Ramso,
Generally when we update in foreground there are some values that SAP populates automatically but in BAPI case we need to give them manually.
There are also some mandate checks that are performed in BAPI before updating the data,
That is why you are getting this error. As for one of this fields there will be a config based on MRP Type.
Pass the DISMM [MRP_TYPE] in the BAPI structure so it will update it.
I hope it helps.
Regards
I am using BAPI_MATERIAL_SAVEDATA to update some fields(safety stock,re-order point,safety time) in material master for MRP view.
I could able to update these successfully for few materials but for few other materials i am getting the below error.
M3 072 - Enter the MRP type.
when i compare these two materials, the first one(which successfully updated) has the MRP type (MARC-DISMM)value ,where as for the second material MARC-DISMM value is blank.
should a material have MRP value to update it through this BAPI?
2013 May 30 7:33 AM
Yes, in order to create or update the MRP data of the material that material MRP view should be created...
2013 May 30 7:40 AM
Hi Ramso,
Generally when we update in foreground there are some values that SAP populates automatically but in BAPI case we need to give them manually.
There are also some mandate checks that are performed in BAPI before updating the data,
That is why you are getting this error. As for one of this fields there will be a config based on MRP Type.
Pass the DISMM [MRP_TYPE] in the BAPI structure so it will update it.
I hope it helps.
Regards
2013 May 31 3:46 AM
I tried passing the MRP_TYP and it skipped that error but want to pass MRP controller now..
i passed that too.. and its asking for other field.
Do you know how many other fields i need to pass?
2013 May 31 10:24 AM
2013 May 31 12:22 PM
Hi Ramso ,
Depend on MRP type the Field information sequence is Change .
Example :
Case # 1 MRP Type : PD then
MRP Controller ,Lot size Required field in MRP1 View
Case# 2 MRP Type : M4 then
Planning time fence , MRP Controller , Lot size is Required Field in MRP1 View
So, you consult your MM Consultant Regarding this issue or Manually you can create a material and test different type MRP type give and look which field's are required or ask your end user generally which type of MRP they used for uploading this data , then you can easily identified which field is required depend on each MRP type without taking any help from MM Consultant .
Regard's
Smruti
2013 May 30 7:44 AM
Hi,
In MRP View If you want to update safety stock,re-order point, MRP Type MARC-DISMM will be mandatory. if you don't want to maintain MRP Type, leave safety stock,re-order point blank.
Regards,
Mordhwaj
2013 May 30 8:45 AM
Hi Ramso,
If you want to update the MRP View, we need to pass the MRP View(PLANTDATA) as 'X' and pass the MRP_TYPE and REORDER_PT and the other values which we want to update.
And also pass the respective PLANTDATAX, and the other X values.
For whatever the material and the material type which has to maintain the MRP data, we need to pass the MRP type and the other mandatory fields into the BAPI and pass the other required values and execute through the BAPI.
Thanks
Vignesh
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |