Skip to Content
avatar image
Former Member

Enhancement for userexit M61X0001

Hi all,

I need to do enhancement for userexit M61X0001 so that MRP can be run based on Material Group. Is there any function module to do it. or any other way. I dont have any idea.

can anyone tell me hw to proceed.

thanks.

kavitha

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Dec 28, 2007 at 01:18 AM

    M61X0001 Exit_saplm61c_001 When processing MRP planning

    M61X0001 Exit_sapmm61x_001 When processing MRP planning

    In the planning run for MRP, MPS or long-term planning, you can use this user exit to select which materials are to be planned.

    For example, you can define that the system is only to plan MRP materials or materials from one particular MRP controller.

    Procedure:

    The user exit is accessed for each material after the system has read the corresponding planning file entry and the material master data.

    In net change planning (NETCH), it is accessed for all materials with the total change planning indicator in the planning file. For regenerative planning, it is accessed for all materials that can be included in the planning run.

    Using the user exit, you can exclude the material from the planning run (in this case the planning file remains unchanged) or you can even terminate the planning run.

    The user exit must be activated and the corresponding logic must be implemented. Here, the coding for both function modules (EXIT_SAPMM61X_001, EXIT_SAPLM61C_001) must be identical, that is, the Includes ZXM61U01 and ZXM61U02 should be identicle.

    In Customizing for MRP, the 'User exit key' must be maintained with descriptive texts.

    Function:

    For technical reasons, (user exits can only refer to one main program) the user exit consists of two identicle function modules:

    EXIT_SAPMM61X_001 - for the planning run without parallel processing

    EXIT_SAPLM61C_001 - for the planning run with parallel processing

    Input parameterd for the function modules:

    USER_KEY

    entered in the initial screen of the planning run and controls that the user exit is accessed. This should define the logic within the user exit.

    USER_PARAMETER

    can be entered in the initial screen of the planning run and can be used to provide the user exit with additional information. The format of the entry is up to you. This field can then be interpreted within the user exit.

    T438A

    Table entry from Customizing containing the MRP type and related control parametes.

    MT61D

    structure with data from the material master record that is relevant to the planning run

    Output parameters for the function modules:

    NO_PLANNING -

    if you set NO_PLANNING = 'X', the material is not planned.

    STOP_PLANNING

    if you set STOP_PLANNING = 'X', the material is not planned and the system terminates the planning run.

    Examples:

    Example coding exists in program LXM61F01.

    Please note the following note on performance:

    If you use the user exit, the system reads the material master of each material with the appropriate planning file (Tables MARA, MARC, MBEW and MAKT). If there are a large number of materials with planning file entries, you must reckon with longer runtimes.

    Reading additional data base tables in the user exit should be avoided as far as possible as this would significantly increase the runtime.

    Function/Program:

    EXIT_SAPLM61C_001: User Exits PP-MRP Materials Planning

    EXIT_SAPMM61X_001: 0

    Hope this helps

    Vinodh Balakrishnan

    Add comment
    10|10000 characters needed characters exceeded