cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

S/4 HANA - filter requirements in MRP with MD_ADD_ELEMENTS

Tporczio
Discoverer
0 Kudos
542

Dear Gurus,

In ECC we have used BADI: CHANGE_MDPSX_VBBE to be able to filter the requirements based on customer number where planning data should not be created by the MRP and should not be shown in the stock/requirement list.

We have learned that this BADI is not called in S/4 HANA and is to be replaced with MD_ADD_ELEMENTS. We are using the HANA optimized classic MRP.

Our problem is that ch_copy_mdpsx is not having any fields with sales order related information, therefore we can not implement the same logic we had in the past in CHANGE_MDPSX_VBBE, where we were able to do the filtering based on the VBBE entries.

Can you please help us how this can be done with MD_ADD_ELEMENTS?

Thanks in advance.

Tporczio

Accepted Solutions (0)

Answers (1)

Answers (1)

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello

Yes, MD_ADD_ELEMENTS is the direct replacement for MD_CHANGE_MRP_DATA, and it is called in MD04 and Classic MRP.

As of SAP S/4HANA 2022 there is a new AMDP BAdI, which is called in Classic MRP, MRP Live, MRP Fiori Apps and MD04. Check this blog for details:

https://community.sap.com/t5/enterprise-resource-planning-blogs-by-sap/sap-s-4hana-2022-new-badi-to-...

Regards,
Caetano 

Tporczio
Discoverer
0 Kudos

Hi Caetano,

I forgot to mention that we are on version 2021. In that version the mentioned new AMDP BAdI is not available. Is there another BAdI what we can use instead of MD_ADD_ELEMENTS?

Thanks for your answer,

Tamas

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos
For classic MRP and MD04, it would be the only option
Tporczio_
Newcomer
0 Kudos

Dear Caetano,

We were not able to solve this issue as we are still on version 2021.

What we have realized is that when we run MD02 with the option -> display results before save, CH_COPY_MDPSX - DELNR is populated with the sales order number.

In case we run MD02 without displaying the results, CH_COPY_MDPSX - DELNR is not populated with the sales order number. This is the field what we would like to use in the logic of the filtering.

Can you please tell us how the logic can be different?

Thanks in advance and best regards,

Tamas Porczio