cancel
Showing results for 
Search instead for 
Did you mean: 

MRP Exit for PR creation

Former Member
0 Kudos

Hi Experts,

We have a requirement for MRP, whereas when MRP creates a PR (or update if existing already) we can define special logic for source and its splitting.

Ex.  Requirement is 100KG.  The logic is to source the replenishment from 2 vendors with 70% and 30% splitting.  Therefore, MRP will generate two PRs, one with 70KG and another with 30KG (splitting).

I know that this is possible via Quota Arrangement, but we have a special logic in selecting available contracts that is too complex to maintain via master data alone.  Thus, we would like to manage this via Exit/Enhancements. 

What exit or bapi can i use to define a special logic for PRs during MRP run?  Thank you very much.

Accepted Solutions (1)

Accepted Solutions (1)

marianoc
Active Contributor
0 Kudos

Hi Manoj,

You can use BAdI: MD_CHANGE_MRP_DATA. The Method to be used should be: CHANGE_MDPSX_EBAN. Take a look of Structure: IM_EBAN.

Kind Regards,

Mariano

Answers (1)

Answers (1)

former_member208398
Active Contributor
0 Kudos

Manoj,

Please go through the documentation of BAdI MD_MODIFY_SOURCE method MODIFY_SOURCE_OF_SUPPLY.

Best Regards.

Rajen

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello

You can find an overview of the BAdIs available for MRP on the following document:

For your issue, I think you may consider BAdIs MD_MODIFY_SOURCE and MD_PURREQ_CHANGE.

BR

Caetano

Former Member
0 Kudos

Hi Folks,

Thank you for your comments. 

We already tried MD_MODIFY_SOURCE but it doesnt allow us to do splitting.  It only allows assignments of sources (outline agreements, etc).  We need something that we can manipulate the PR like changing the qty or being able to create a separate PR.

Thank you!

Former Member
0 Kudos

Hello,

as alternative solution you can develop enhancement which automatically updates the Quota while creating/changing the contract.

Thank you

Peter

marianoc
Active Contributor
0 Kudos

Hi Manoj,

Maybe you can use this BAdI to identify when the MRP is creating a PR and then trigger another custom program. In this other custom program you can do what you want: create a separate PR, re assign the vendor, etc.

Thanks and Regards,

Mariano

Former Member
0 Kudos

Please also check documentation on MRP BAdIs here: SPRO ->  Production -> Material Requirements Planning -> Business Add-Ins for Requirements Planning