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

Updating MRP view using BAPI_MATERIAL_SAVEDATA

Former Member
0 Likes
7,331

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
4,354

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

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

7 REPLIES 7
Read only

surajarafath
Contributor
0 Likes
4,354

Yes, in order to create or update the MRP data of the material that material MRP view should be created...

Read only

Former Member
0 Likes
4,355

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

Read only

0 Likes
4,354

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?

Read only

0 Likes
4,354

For me it is working with the following fields

Read only

0 Likes
4,354

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

Read only

Former Member
0 Likes
4,354

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

Read only

Former Member
0 Likes
4,354

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