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

PR Split during MRP run in MD02

ranjankumar
Explorer
0 Kudos
1,035

Hi,

I have a requirement to split the PR during MRP run based on entries maintained in one Ztable - Customer wise quantity allocation.

Scenario is as below:

Forecast planning happening in APO and monthwise requirement is getting updated in MD61 for a particular material. Based on that during MRP run system is creating the PR form net requirement and we are converting that PR to PO for external procurement. What ever quantity we will procure, that need to be drop ship to different customers directly from supplier. As of now we are handling this manually by splitting the PO line item for each customer requirement.

Now client come with requirement, Splitting should happen automatically during MRP itself and there will not be any manual intervention in PO. For that they will maintain the customer allocation in a ztable, Based on that while creating the PR for net requirement during MRP run system should split the PR for each customer quantity.

We tried with below User exit and BADI in MD02 but unable split the PR.

MD_MRP_LIST

MD_PURREQ_CHANGE

MD_PURREQ_POST

MD_PURREQ_REL_STRAT

EXIT_SAPMM61X_001

If any one has done such enhancement in MRP please let me know Or suggest the way to get this.

Thanks in advance..

Regards,

Ranjan

Accepted Solutions (1)

Accepted Solutions (1)

Caetano
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Ranjan

As far as I know, this is not possible on MRP.

The standard BAdI to change purchase requisitions is MD_PURREQ_CHANGE and you can even change the quantity (it is not recommended, but it's possible), however, you cannot create a new purchase requisition with the remaining quantity. Calling a BAPI to create purchase requisitions from the BAdI may be possible, however, I would not recommend it, as the context and the internal variables may be changed.

Maybe it's easier to create a custom program to split the purchase requisitions created by MRP according to your logic, to be executed just after MRP. You could use BAPI_REQUISITION_CREATE  and BAPI_REQUISITION_CHANGE to change the purchase requisitions created by MRP.

BR

Caetano

Answers (0)