cancel
Showing results for 
Search instead for 
Did you mean: 

User Exit issue for the MRP controller wise MRP run

Former Member
0 Kudos

Hi all,

There is an issue with the user exit key used for the MRP controller wise MRP run. We run MRP for the plant with the user exit for MRP controller wise selection of materials. I have given the required MRP controller values in the selection screen of the variant. But after the MRP run, I noticed that even the materials which was not included in the variant was also planned and generated the procurement proposals. We expect only those materials with the assigned MRP controllers in the variant will be planned. Please advice.

Regards

Brijesh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Brijesh,

You will need the help of ABAP consultant to do this activity.

Ask him to write a small code.

You need to go for enhancement M61X0001 with function al modules EXIT_SAPLM61C_001.

Coding infomation Jeevan had provided.

In Transaction, MD01 running MRP on plant like - there user exit below.

There you need give your MRP contoller name like 001, all materials under MRP controller 001 will be only planned.

This exit works parameters like MRP controller or MRP Type or Material group.

I had used this exit in one of my project for MRP type and MRP contoller.

Hope it is useful.

Regards,

Srinivas

Former Member
0 Kudos

Thanks all for the response. The user exit is already there for MRP controller wise run. Actually the problem is, even though certain MRP controllers are not assigned in the variant , it is getting planned

Please advice.

Regards,

Brijesh

sjeevan
Active Contributor
0 Kudos

I'm not sure if you can give user exit parameters as L01, L06, L1P, etc. I suggest you to give only one MRP controller code and run MRP and see if it works.

You may be able to give multiple MRP controllers separated by commas only if the ABAP code in the enhancements must be written to support that feature, which is why I asked your look at the code logic.

former_member184655
Active Contributor
0 Kudos

Dear Brijesh,

If my understanding is correct,then setting the user exit key and mentioning the MRP controller's by

using a "comma" will not work .I faced this issue in one of project and I would suggest you to

check by creating a MRP controller specific variant and re run MRP and check the impact.

Regards

Mangalraj.S

Former Member
0 Kudos

Hi Mangal,

We found the problem with our developer. Actually there was a bug in the program.In the logic, the user exit key was not considering the MRP run via background. Only in foreground (MD01), it was working fine. We corrected the bug now. It is working fine now for the MRP background job as well. Thanks all for your suggestions.

Regards

Brijesh

sjeevan
Active Contributor
0 Kudos

Mark your answer as correct and close the thread.

Answers (3)

Answers (3)

sjeevan
Active Contributor
0 Kudos

Go to the function modules mentioned by Alok, EXIT_SAPLM61C_001 and EXIT_SAPMM61X_001 (through SE37) and in them you'll find ZX series includes double click on it and look at the ABAP code.

It should be similar to what I mentioned in the thread below:

http://scn.sap.com/message/10785144#10785144

former_member186193
Active Contributor
0 Kudos

Hi,

You need to go for enhancement M61X0001 with function al modules EXIT_SAPLM61C_001 and EXIT_SAPMM61X_001 and you can define parameters like MRP controller, MRP Type,Material group etc.

Regards,

Alok Tiwari

0 Kudos

Hello,

probably you have a job with programm RMMRP000 without user exits running.

BG