Automatic scheduling MRP run for specific MRP controller
Question :
I have a plant in which for many materials, I have assigned MRP Controller.
Now I want to know that for only this MRP controller, can I set MRP run automatically in backend, daily at time 23.59 ? Is this possible?
If yes then please tell me how to do this? and what are prereuisites for this?
Answer :
This question has been as below :
1.First create the variant for the MRP run,using T.Code MDBT --->mention the plant,MRP control parameters--->User Exit key(First the user Exit M61X0001- MRP run based on MRP controller should be activated).
2.MRP job can be scheduled either from T.Code SM36(for the Program name RMMRP000 and selecting the proper variant) or else from MDBT by clicking the schedule and mention it for daily option,the time details etc.
3.The results can be checked in SP01 or else SM37.
Go to OMIX and create user keys with same as MRP controller code and give some (any) description in user parameter.
Now go to SE37 and enter the following exits names and get an idea of the ABAP code
EXIT_SAPMM61X_001
EXIT_SAPLM61C_001
You will see ZX includes, go to SE38 and create them with same name you saw in SE37.
Now in the includes add the code similar to the following code:
*&---------------------------------------------------------*
*& Include ZXM61U01
*&---------------------------------------------------------*
CLEAR: no_planning, stop_planning.
IF user_key = 'B01'.
IF mt61d-dispo = 'B01'. "Plan only MRP Controller B01
*Continue
ELSE.
no_planning = 'X'. " Exclude all others
ENDIF.
ENDIF.
IF user_key = 'B02'.
IF mt61d-dispo = 'B02'. "Plan only MRP Controller B02
*Continue
ELSE.
no_planning = 'X'. " Exclude all others
ENDIF.
ENDIF.
As far as I know you need to have the same code in both the user exits else the user exit doesn't work.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本