MD01 - USER EXIT

Hi Abapers,
         inthe MD01 window (Transaction Code),
<b>User exit select materials for planning</b> selection part,
I want to find out where saved user exit keys and where the user exit parameters against the user exit key.

Hi Nelson,
Please check this user exits.
EXIT_SAPMM61X_001: MRP run normal (enhancementM61X0001)
EXIT_SAPLM61C_001: MRP run parallel (enhancement M61X0001)
Hope this will help.
Regards,
Ferry Lianto
Please reward points if helpful.

Similar Messages

  • User exit for MRP run - MD01

    Hi All,
    Can i know the use of "User exit parameter" field in MD01. as i know it means if we only want to plan the materials of a certain MRP controller, for example, we can enter the key of the appropriate MRP controller as the parameter.
    in my scenario, we have already incorporated a user exit for MD01 - MRP Run.
    i have 3 MRP controllers, but want to plan for only 2 MRP controllers, then how to enter in that field?
    Regards,
    Ram

    HI,
    User exit are available for Md01 transaction. You can plan material by MRP Type, MRP Controller,MRP Type, Procurement type & so on....
    Once you activate user exit, you can select the same by drill down option in user exit Key field.
    Regards,
    Milind.

  • Problem with User Exit parameter in MD01

    I have done the coding for user exit in MD01. But the exit is not being triggered even when the exit key is specified in the selection screen of the transaction.
    I need to control the material being planned and restrict it to type ROH only.
    Please help me... I need to do this fast

    Hi Sultana,
    The user exit key is stored in table T450U. But the user exit parameter is not stored. Instead, it is entered in the selection screen of MD01.
    Also, You can check the following Transaction codes if they help you to solve yor problem:
    MD20 - Create planning file entry
    MD21 - Display planning file entry
    MDAB - Set up planning file entry in background
    MDRE - Check planning file entry
    Hope it helps.

  • User exit for MD01

    Hii
    I am doing user exit for MD01 i am finding difficulty in writing the code .
    I want materials haveing MRP Type : 'V1'.
    I wrote code for it but its not working ..
    TABLES: t024d,
    mara,
    marc .
    TABLES : t023t.
    DATA: v_dispo TYPE dispo,
    v_matkl TYPE matkl.
    IF user_key = 'ZME'.
    IF user_par = SPACE.
    MESSAGE e000(zmessage) WITH 'User Parameter should not be blank'.
    ENDIF.
    SELECT SINGLE * FROM t024d INTO t024d
    WHERE dispo = user_par.
    IF sy-subrc ne 0.
    MESSAGE e000(zss) WITH 'Please Check the MRP controller number'.
    exit.
    ENDIF.
    SELECT SINGLE * FROM t024d INTO t024d
    WHERE werks = mt61d-werks AND
    dispo = user_par.
    IF sy-subrc = 0.
    SELECT SINGLE dispo FROM marc INTO v_dispo
    WHERE dismm = 'V1' and
    *matnr = mt61d-matnr
    *AND
    werks = mt61d-werks.
    *and DISMM = 'VB'.
    IF sy-subrc EQ 0.
    *CHECK v_dispo user_par.
    no_planning = 'X'.
    ENDIF.
    ENDIF.
    CLEAR v_dispo.
    ELSEIF user_key = '002'.
    SELECT SINGLE * FROM t023t INTO t023t
    WHERE matkl = user_par.
    IF sy-subrc eq 0.
    MESSAGE e000(zss) WITH 'Invalid material group no.' user_par.
    ENDIF.
    SELECT SINGLE matkl FROM mara INTO v_matkl
    WHERE matnr = mt61d-matnr.
    IF v_matkl = user_par.
    no_planning = 'X'.
    ENDIF.
    ENDIF.
    Please help me ....

    Hi,
    Please check if this user exit actually is triggered from MD01.
    I could not find it.
    Reg,
    Raj

  • User Exit with MD01 screen

    Hi All,
    In MD01 screen, you can find a field called <u>'User exit Parameter</u>".
    The user will have 3 options to input the data into this field.
    1.  The User can enter single value... ex: E01
        The user exit will execute the MRP Run based on this single value.
        For this scenario, i have SAP standard code as follows.. (Pgm name: LXM61F01)
        Here UXPAR will contain value 'E01'.
          WHEN 'Z1'.
          UXPAR = USER_PAR.
          CONDENSE UXPAR.
          WRITE UXPAR+0(3) TO DISPO.
          IF DISPO IS INITIAL.
            EXIT.
          ENDIF.
          IF MT61D-DISPO <> DISPO.
            NO_PLANNING = 'X'.
          ENDIF.
    2. The user can enter multiple values... ex: E01, E03, E09.
       The user exit should take these valuse into account and run the MRP.
       The above code is meant for single value.
       Now i have to develop the code for this scenario. How to build logic for this scenario  as the UXPAR will have value "E01, E03, E09"...????
    3. The user can enter values in range format... ex: E01-E05.
       The user exit should take E01, E02, E03, E04 and E05 to run the MRP.
       How to build the logic for this scenario..????? 
    Please Help me........
    Regards
    Pavan

    Can anyone please look into this issue and help me out...????
    Really appreciate your guidance in this regard....
    Regards
    Pavan

  • MRP Run with User Exit key for Follow up material

    Dear Gurus,
    I want to run MRP only for followup materials by using User exit key. For example i have a material X(with discontinued Indicator as 1) and it's follow material is Y.
    So we have a user exit key as ZFL, with coding as shown below. Now when i run MD01 with user exit key ZFL and parametre as 1, it only runs MRP for material X and not for material Y. What else we need to do so that when i run MD01 with user exit key ZFL, it shoudl consider both X and Y. 
    WHEN 'ZFL'.
    DATA : BEGIN OF ITAB5 OCCURS 0,
    KZAUS LIKE MT61D-KZAUS,
    END OF ITAB5.
    TRANSLATE USER_PAR TO UPPER CASE.
    SPLIT USER_PAR AT ',' INTO TABLE ITAB5.
    IF ITAB5[] IS INITIAL.
    EXIT.
    ENDIF.
    CLEAR: NO_PLANNING, STOP_PLANNING.
    READ TABLE ITAB5 WITH KEY KZAUS = MT61D-KZAUS.
    IF SY-SUBRC <> 0.
    NO_PLANNING = 'X'.
    ENDIF. 

    Hi Kumar,
         You can use either MRP Type, MRP Controller, MRP Group in this user exit to control the MRP run. For these set of Materials you have to assign any of same value or at least differentiate these material from other material. Then only you can control the MRP by using this user exit even though if you use different MRP Group and MRP Controller. In User Exit, you may have to add your dependent material's MRP Group/MRP Controller. Make sure that these set of materials are different than all other materials.
    If you don't have any plan to run MRP for other materials then as per Ajit suggestion you make that material's MRP type as "ND". But, in your business case they may want to activate the MRP for all the material not now but may be latter.
    Thanks

  • User Exit or BADI For MRP Planning

    Dear all ,
               I want to Control the MRP Planning ( MD01 ) only for Demand Orders..
    Tell me any User exits / Badi for that Issue..
    i checked in this enchancement M61X0001, this is correct or wrong ,,,,
    With Regards ,
       GJ

    HI
    Possible exits
    LMDR2001  User exits restr. profiles of opt. pur.ord.-based load bldg
    LMDZU001  User exits in additional planning.
    I hope there are no BADi's for this try for implicit enhancements if u r using ECC 6.0
    Regards
    Edited by: Rasheed salman on Dec 20, 2008 9:54 AM

  • User Exit for MRP

    Hi Experts,
      Can anyone guide me on how to activate the User Exit for MRP Run. T.Code MD01. 
    What are the exits that are to be activated.
    Thanks
    Ashok.N

    Hi
    Hope it will help you.
    *reward if help.*
    User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a function module. The code for the function module is written by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.
    The naming standard of function modules for functionmodule exits is:
    EXIT_<program name><3 digit suffix>
    The call to a functionmodule exit is implemented as:
    CALL CUSTOMER.-FUNCTION <3 digit suffix>
    To find a Exit.
    Goto Transaction -- Find The Package
    SMOD >f4>Use the Package here to Find the Exits In the Package.
    Else if you Want to search by Application Area wise ,
    There is one more tab to find the Exits in the Respective Application Area.
    Implementing the Exit-- CMOD Create ProjectsAssgn your Component .
    Now Run ur Transaction to Check if it Triggers.
    Thats it..
    Suppose you need to find out all the user exits related to a tcode.
    1. Execute the Tcode.
    2. Open the SAP program.
    3. Get the Development Class.
    4. Execute Tcode SE84.
    5. Open the Node 'Envir. -> Exit Techniques -> 'Customer Exits -> Enhancements'
    6. Enter the Development class and execute.
    Check out this thread..
    The specified item was not found.
    1. Type the transaction : system->status-> <PROG. NAME>
    2 open SE37 , type EXIT<PROG NAME> and press F4 to get the list of function exits available.
    3. Open CMOD utilities->SAP enhancements
    EDIT->All selections
    4.type the function module name obtained in step 2, in fields 'component name' in 'additional selections' block. and execute.
    5. The displayed list contains the enhancements names for the transaction You were looking for.
    6. Create a project in CMOD and the code in default include->activate.
    http://www.erpgenie.com/sap/abap/code/abap26.htm
    which gives the list of exits for a tcode
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/ec079f5db911d295ae0000e82de14a/frameset.htm
    For information on Exits, check these links
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.planetsap.com/userexit_main_page.htm
    User-Exits
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/ab038.htm
    http://www.planetsap.com/userexit_main_page.htm
    http://www.sap-basis-abap.com/sapab013.htm
    http://sap.ittoolbox.com/documents/popular-q-and-a/user-exits-for-the-transaction-code-migo-3283
    These links will help you to learn more on user exits.
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm
    http://www.planetsap.com/userexit_main_page.htm
    http://www.allsaplinks.com/user_exit.html
    www.sap-img.com/abap/what-is-user-exits.htm
    Also please check these threads for more details about user exits.
    Re: Screen exit
    user exit and customer exit
    user exit
    1. Document on UserExits in FI/CO
    http://www.ficoexpertonline.com/downloads/User%20ExitsWPedit.doc
    2. Finding User Exits...
    http://sap.ionelburlacu.ro/abap/sap2/Other_Useful_Tips.html#Finding_User_Exits
    3. List of all User Exits...
    http://www.planetsap.com/userexit_main_page.htm

  • MRP - User exit key

    Hi Gurus,
    I have coded in user exit: M61X0001 which do some checking for MD01 - MRP for Collective items and I want this checking also can be applied to MD03 - MRP for Single item. I would like to ask if it is possible to use "User exit key" in transaction: MD03 - MRP for single item?
    Another question:
    I would like to control the stock level by certain criteria. Let say, total planned stock from MRP for a material cannot exceed certain limit set by a company.
    eg.
    Material XYZ - Overall qty can be order for 3 plants below set by company = 5 pcs
    If MRP run by plant individually, I will obtain the following result:
    Plant A - MRP planned for 2 pcs
    Plant B - MRP planned for 2 pcs
    Plant C - MRP planned for 2 pcs
    How to prevent only 5 pcs being order instead of 6 pcs?
    Pls advise asap.
    Thanks & regards,
    Loi

    Hi Gurus,
    I had defined "Scope of planning" in the Customizing for MRP activity "Define Scope of Planning for total planning".
    But when I tried to run the scope of planning through MD01, the system prompt me with error message - "Please check the destinations for parallel MRP", pls advise for the solution.
    If group together several plants (let say, plant 1010, 1011, 1020, 1030) under one MRP run (scope of planning = Z01), is that means I will only get one planning output that group under Z01? Pls advise.
    Thanks & regards,
    Loi

  • User exit mandatory

    Hi Friends,
    please tell me the process how to set the mandatory of use exit field in md01.
    Thanks
    venkat

    Hello Kumar,
    Go through link below for you issue.
    User Exit in MD01
    Hope this will help.
    Regards,
    Anup

  • Problem in MRP planning with user exit key

    Hi All,
    I have a requirement like this..
    we have 1000 FG in our plant.. out of which they want to plan only 250 FG's through MRP run collectively...when they do MRP run system should plan  only these 250 FG's and also down level materials ( components ) of these 250 FG's ..
    So I proposed to use user exit key in MD01 screen by activating user exit M61X0001 and these 250 FG 's are identified with a separate MRP group in material master and developed enhancement..
    But when I do MRP run in MD01 with this user exit key,  system only planning those 250 FG's but not planning down level materials or components of these 250 FG's.. is this standard behavior.. can somebody guide me how solve this issue..
    Thanks
    Kumar

    Hi Kumar,
         You can use either MRP Type, MRP Controller, MRP Group in this user exit to control the MRP run. For these set of Materials you have to assign any of same value or at least differentiate these material from other material. Then only you can control the MRP by using this user exit even though if you use different MRP Group and MRP Controller. In User Exit, you may have to add your dependent material's MRP Group/MRP Controller. Make sure that these set of materials are different than all other materials.
    If you don't have any plan to run MRP for other materials then as per Ajit suggestion you make that material's MRP type as "ND". But, in your business case they may want to activate the MRP for all the material not now but may be latter.
    Thanks

  • Implementing user exits !!!!

    hi can any body please send me the detailed steps to implement user exits in (ecc 5.0) step by step ....process ....how can we use them  in ABAP .....these enhancements...i.e how can i  configure function exit ,menu exit , field exit ..&...screen exit as well as .....
                      thanks in advance ..........

    Hi,
    From PP point of view, the following exit is used.
    For MRP run transaction md01 is used. This is for all the material in the plant.Suppose if we need to run mrp for a particular material type(Eg:PD/VB) then we need to create a key. This key is entered in the user exit key filed in the md01 transaction screen.
    With the help of ABAP we need to write a program for this key with the corresponding enhancement.Then mrp run can be carried out for the particular mrp type.
    From SD point of view, While creating sale order using transaction va01. If you want the sold-to-party to be a default value everytime you create a sale order, then you can use the corresponding enhancement & in cmod transaction can write a program telling sold-to-party as "ABC".
    Whenever you create a sale order ABC will appear in the sold-to-party field.
    Regarding menu exit if you want to add an option or hide an option in the menu then if the enhancement is available you can do it.
    Regards,
    Senthilkumar

  • MRP run user exit

    Dear Experts,
    I want to club more than one material through MRP controller in the MRP run at MD01.will you pl let me know if the exit M61X000 is sufficient,where I have to mentain the DISPO (My MRP Controller Name) so that the relevant materials where this controller is assigned will be chosen.
    Regards
    Reshmi

    Dear ,
    Please find below the set up as mentioned  required for MRP  for those material whaih are under certain MRP controller
    This can be possible with User Exit: M61X000.
    You need to maintain the required Material Types in OMIX.
    Then you can use the Material Type in MD01/MDBT for Planning for specific Material Type.
    Before hand, check the Example code for the Function Module EXIT_SAPMM61X_001 and the documentation for the User Exit.
    Some documentation;
    For example, for each plant, you can define that in the selected plant the system will only plan;
    materials to be planned using MRP procedures,
    materials of a certain MRP controller
    externally procured materials or materials produced in-house
    Requirements
    User exist must be activated in the SAP extension concept. The name of the extension is M61X0001.
    In the documentation for this extension, you will find information on the use of user exits.
    For more information on the extension concept, please refer to the appropriate documentation
    Example:-
    To execute MRP run for particular MRP group you have to activate User Exit.
    1. Create User Exit
    Nav: Production > Material requirements Planning > Planning > User Exit: Material selec
    For ex: Z01 - MRP Group
    2. Create Project using enhancement M61X0001 in Tcode CMOD
    3. Write following code in function module EXIT_SAPMM61X_001 include ZXM61U01
    CLEAR: NO_PLANNING, STOP_PLANNING.
    CASE USER_KEY.
    WHEN 'Z01'.
    UXPAR = USER_PAR.
    CONDENSE UXPAR.
    WRITE UXPAR+0(3) TO DISGR.
    IF DISGR IS INITIAL.
    EXIT.
    ENDIF.
    IF MT61D-DISGR DISGR.
    NO_PLANNING = 'X'.
    ENDIF.
    ENDCASE.
    4. When you want to execute MPR only for MRP group "001", in MD01 select User Exit Key Z01 and MRP group in User parameter.
    5.In MD01or MDBT , Select  NETCH, 1,1,3,3,2  and In user exit tab select the MRP controler as configured based on the above set up.
    Refer : MRP run only for certain MRP controllers
    Regards
    JH

  • User exit -reqd

    Hi All,
    Is there any user exit available for the below requirement
    1. Mrp run for material group
    2. Automatic teco of completed production orders
    3. mass confirmation of production orders in shiftwise
    Regards
    Anand Srinivasan

    Dear,
    1. Mrp run for material group
    This can be possible with User Exit: M61X000.
    You need to maintain the required Material Types in OMIX.
    Then you can use the Material Type in MD01/MDBT for Planning for specific Material Type.
    Before hand, check the Example code for the Function Module EXIT_SAPMM61X_001 and the documentation for the User Exit.
    2. Automatic teco of completed production orders:- It is not possible by exist but you can do the mass processing by COHV you can schedule it at back ground.
    COHV --> enter plant and production orders --> select all list of Prd Orders --> Menu Mass Processing --> Settings --> Function - Tecnically Complete --> Execute
    3. Mass confirmation of production orders in shiftwise:-
    CONF0001 Enhancements in order confirmation
    It is available in Release 600 Enhancement Package 3
    See http://help.sap.com/erp2005_ehp_03/helpdata/EN/46/f2a5ce3cd767f9e10000000a1553f7/frameset.htm
    Regards,
    R.Brahmankar

  • User exit ZXPADU02 - evaluating SY-UCOMM

    Hello everyone,
    I am trying to display an error message whenever someone tries to create a new work schedule rule (P0007-SCHKZ) in infotype 7. However, the error message should just come up when the user is trying to save his data.
    I am using user exit ZXPADU02 for this purpose. My problem is that SY-UCOMM does not seem to hold reliable data in this user exit, and SSCRFIELDS does not seem to be supported at all.
    My code looks like this (only the relevant code snippet in ZXPADU02):
    CASE INNNN-INFTY.
            WHEN '0007'.
          CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
            EXPORTING PRELP = INNNN
            IMPORTING PNNNN = P0007.
          CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
            EXPORTING PRELP = PSAVE
            IMPORTING PNNNN = P0007_ALT.
          IF P0007_ALT-SCHKZ <> P0007-SCHKZ
          AND IPSYST-MASSN IS INITIAL " do not warn within an info group of a personnel action
          AND SY-UCOMM = 'UPD'. " only warn when saving the data -> problem here <-
            MESSAGE 'Do not change IT7 directly or else.' TYPE 'I' DISPLAY LIKE 'E'.
            SHOW_DATA_AGAIN = 'X'.
          ENDIF.
    At first glance, the above works nicely.  But this is what happens when I test more thoroughly:
    I create a new period in IT 7, enter a P0007-SCHKZ other than the one that was previously valid, press F11. Some warnings appear (for different reasons), which I dismiss using the Enter key. Afterwards, the above code fires, the error message is being displayed, and I am thrown back into the data screen. So far, so good.
    Now I simply alter the value in the field "Weekly hours" (P0007-WOSTD) and press Enter (!). Again a series of warnings appear, including one that a dataset is going to be deleted (seeing that an IT 7-period with just the same date range already exists). I confirm that with Enter, and the data is being saved. The above code does not fire because I have only pressed Enter - but the data is being saved anyway!
    Looks like a pretty erroneous behavior on the side of the SAP system. The question is whether I have a chance to do something about it in the code.

    Mihir Nagar wrote:
    Dear Petersen,
    Your IF condition seems ok. I doubt on the message statement. Can you replace your message statement with type E.
    MESSAGE 'Do not change IT7 directly or else.' TYPE 'E'.
          ENDIF.
    Hope this works.
    Regards,
    Mihir.
    I did not expect this to work, because normally you use type 'E'-messages only in certain PAI-environments, but it does the job, thank you!
    make use of  field IOPER of the structure  PSYST to check on the infotype actions INS, MOD, COP, DEL...
    In this particular case I did not care, so I did not check that. IT 7 should only be maintained through personnel actions in our case.
    Next you can check with sy-ucomm field the different between "enter" and "save". With "save" sy-ucomm will be 'UPD'.
    That is what I did, but as I described, there was a situation when SY-UCOMM is SPACE, but the system saved anyway due to a prior save attempt.

Maybe you are looking for

  • Ipod Touch not being recognized by iTunes on ibook G4

    I have an ipod Touch running 3.1.3 that I sync with my iBook G4 running 10.4.11. I've never had an issue syncing with iTunes (9.2.1) - until today. Sat down plugged in the iTouch and nothing. iPhoto is opening - which it usually does, but not iTunes.

  • How to create a video montage?

    I'm looking for an effects generator (I think) that will facilitate showing multiple videos on the screen at the same time.  I'm trying to show four different causes of an event on screen - I have four videos (for example, fire, water, eart & sky vid

  • Best audio/video input device

    I am trying to find a good choice for my wife's Mac mini. I tried a couple that didn't work and went to the Apple store in Walnut Creek but they were not able to get either of the input devices I brought in to work. They also had none for sale in the

  • HELP!!!   HOW TO SYNC THE MOVIES from my iutne library INTO MY IPOD TOUCH4?

    How To Get Movies Onto My Ipod Touch? Ive Got Movies In My Library But When I Connect My Ipod They Dont Download Onto It. Ive Selected Them And Synced My Ipod But Still Nothing, Im 100% Sure I Have Enough GB, Ive Also Tried To Drag Them, Still cannot

  • How to provide f4 help

    Hi guys,   here i amproviding some sample code. requirement is uploading data from xl to internal table. problem is how to provide f4 help for file name. using cl_gui_frontend_services. type mismatching is occuring. DATA:  wa_filename1 TYPE file_tabl