cancel
Showing results for 
Search instead for 
Did you mean: 

Badi MD_ADD_ELEMENTS

Former Member
0 Kudos

Good evening

Badi MD_ADD_ELEMENTS is used to include a new user-defined MRP element. I have the requirement of adding an element to Long Term Planning MRP in order to capture the Safety Stock when this is automatically updated by my MRP in a Long-Term Planning scenario. I have not seen/find any example showing the steps of such implementation. Does anyone have any instructions on hoe to do this?


Best personal regards,

Nikos

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Anybody? Any thoughts, opinions, inputs to this?

It is a really urgent requirement.

Many thanks and best regards,

Nikos

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello

I have never implemented this BAdI on my own and, as far as I can see, there is no sample code.

Nevertheless, I checked the BAdI documentation and it does not seems to be difficul. All you have to do is to add this element to the internal table CH_COPY_MDPSX with the proper value of DELKZ and then set the flag CH_CHANGED.

BR
Caetano

Former Member
0 Kudos

Thank you very much Caetano on your reply.

Will this action/customisation confine this element only in LTP scenario without uploading this value to the normal, operative MRP?

I was recently given another way of approaching this: to do it through BADI MD_CHANGE_MRP_DATA, where i could instruct the system to calculate safety stock but not to uploaded in the operative MRP. However, i do not know how to do this, neither have i found any "close" documentation...

Finally, i woule welcome your comments on my other query, "Different approaches for PIRs in materials planning" ().

Thank you very much,

Nikos

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Nikos

You can restrict the logic to LTP with a check for IM_PLSC.

BR
Caetano

Former Member
0 Kudos

Thank you Caetano.

I will try it and if i run into any problem, i will let you know and ask for your advise.

Best regards and many thanks,

Nikos

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

You can also use MD_CHANGE_MRP_DATA, but the difference is that you have to add the safety stock in the material master and hide it during the MRP run.

As far as I can see, both approaches are valid.

BR
Caetano

Former Member
0 Kudos

No, sorry, i might not have explained my requirement correctly. My materials do already have safety stock, which is static (entered by the purchasing department). Now, in LTP, i have set a scenario up where i run a different kind of MRP type, which MRP type allows for automatic calculation of safety stock, which is then uploaded to material master.

What i have found out, is that safety stock value which is calculated in LTP overrides the value that already exists in material master (the static one, set by purchasing). If it keeps on going like this, i will have to reset the safety stock every time after my LTP scenario is executed.

Therefore, i am looking for a solution where safety stock will be computed automaticaly, it will be displayed, it will take part on the MRP calculation, but it will not be uploaded in the material master; it will only be confided withing LTP scenario.

Best personal regards and many thanks,

Nikos

Answers (0)