cancel
Showing results for 
Search instead for 
Did you mean: 

How to change ATP logic by MRP replishment automatically?

Former Member
0 Kudos

Hi experts,

Now we have one special case. We have two plants, A is normal logistic center , B is one repair center. Currently we use Special procurment key, which get replenishment from each SPK plant.

But we need one speical logic. We Hope sap to check if this part has stock in B repair center first, then if there is not enough stock, it need create STO to plant A- normal logisic center.

I heard in APO it may has such function. BUt currently we don't have APO. When PR convert to PO, Could we have some place to insert such logic? Ignore the current ATP check for bunch of parts or one PO document type ?

Really hope to get your advice.

Thanks

ALice

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

We have 3 plants which means For plant A, it could tranfer requirement to Plant B or Plant C.

We don;t have APO now ,But we hope if we could do some customization to meet this target?

If when PR convert to Po , we could change the PO vendor?

Thanks

Alice

Former Member
0 Kudos

Well your reqmts suits APO just about perfectly....

Well anyways just a thought, hope it works for you. (Try it in your sandbox)

Create a Z progrm using the following FM's - MD_STOCK_REQUIREMENTS_LIST_API, MD_PEGGING_NODIALOG & BAPI_REQUISITION_CHANGE

In Mtl master of A, specify spl proc as Plant B. Now after MRP run, if stock is not there in Plant A, it will generate a Stock trnsfr rqn in Plant B. Now run your Z prog & do a check, if stock exists in Plant B, if it does, then dont modify the Stk trnsfr rqn, but if there is no stock in Plant B, then use the FM & modify the requisition & change it to Plant C.

Run this prog just after your MRP run.

Work with your abaper & check if this can meet your need.

Regards,

Vivek

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Vivek

Yes, it's correct. If B plant has stock, we we transfer order from B to plant A.

Any advice for such situation?

Thanks

ALice

Former Member
0 Kudos

You've said yes for both, well please state clearly are you having only 2 plants or 3 plants. If it is 2 plants then it can be mapped, but if it is a 3 plant scenario as mentioned in my previous posting, then it is better to go for APO if the investment can be justified in terms of business.

If its a 2 plant scenario, i.e. Plant - A has a need & if there is no stock then procure from plant B. In mtl master record in Plant - A maintain special procurement key which allows for Procurement from Plant B or you can use withdrawal from Plant B or STO from plant B.

Now, when MRP runs in plant - A it checks for the needs & sees if it can be met via the existing stock, if it can, then no procurement proposal will be generated, but if it cannot meet the need then it raises a request for procurement from Plant - B.

Hope to have provided you with the requisite details. Test the above scenario in your sandbox & revert if you face any issues.

Regards,

Vivek

Former Member
0 Kudos

Hi

THanks, Yes, it's correct. If Plant B has enough stock ,it will procure from Plant B first. THen it will not create STO for plant A.

For current Special procurement key, It only could transfer requirement to one plant. So for our logic, it need check plant B first, then if there is no enough stock, it will transfer requirement to plant A.

Hope to get your advice.

Thanks

ALice

Former Member
0 Kudos

Hi

Thanks a lot for your help. Since we don't have APO, recently we dont' have plan to implement this .

But we need check Stock in B plant first, if there is no enough stock, it will go to Plant A as vendor in STO.

So is there any possible interface or user exit which we could enhance such logic when PR convert to PO?

Thanks

Alice

Former Member
0 Kudos

It would be helpful if you clarify the below for me.

You want to procure a part for Plant C, so for this you want to first check if there is stock in Plant - B & if there is no stock then it should raise a STO to Plant - A. If this is the scenario, then how do you want to procure the stock from Plant - B, if there is stock in Plant B ?

Former Member
0 Kudos

Hi Alice,

Not sure if i have understood your query correctly. But based on my understanding, you have a few plants & if there is a need in a particular plant for the material, it has to check the stocks in Plant - B & if it does not exist, then raise STO for Plant - A.

If this is what you're looking for, then the only solution is to go for APO, as MRP is run at plant level or MRP areas, but not across plants / mrp areas, there is no possibility to do a cross plant check.

Regards,

Vivek