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.

 

posted @   jefflu99  阅读(659)  评论(0编辑  收藏  举报
编辑推荐:
· 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搭建本
点击右上角即可分享
微信分享提示