SAP EXIT_SAPLM61C_001 Function Module for User Exits PP-MRP Materials Planning
EXIT_SAPLM61C_001 is a standard exit saplm61c 001 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for User Exits PP-MRP Materials Planning processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for exit saplm61c 001 FM, simply by entering the name EXIT_SAPLM61C_001 into the relevant SAP transaction such as SE37 or SE38.
Function Group: XM61
Program Name: SAPLXM61
Main Program:
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EXIT_SAPLM61C_001 pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'EXIT_SAPLM61C_001'"User Exits PP-MRP Materials Planning.
EXPORTING
USER_KEY = "User exit key
USER_PAR = "User Exit Parameters
T438A = "MRP Type Parameter
MT61D = "MRP View of Material Master
* CM61B = "MRP Area Data
IMPORTING
NO_PLANNING = "Indicator: Do Not Plan Material
STOP_PLANNING = "Indicator: Exit Planning Run
Related Function Modules
Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.MRP_MATERIAL_PARALLEL NOTRANSL: Durchfuehren der Dispositionsrechnung über RFC
MRP_MATERIAL_SIMULATION_SEQ NOTRANSL: Langfrist-Dispositionsrechnung fuer ein Material - sequentielle
IMPORTING Parameters details for EXIT_SAPLM61C_001
USER_KEY - User exit key
Data type: RM61X-UXKEYOptional: No
Call by Reference: No ( called with pass by value option)
USER_PAR - User Exit Parameters
Data type: RM61X-UXPAROptional: No
Call by Reference: No ( called with pass by value option)
T438A - MRP Type Parameter
Data type: T438AOptional: No
Call by Reference: No ( called with pass by value option)
MT61D - MRP View of Material Master
Data type: MT61DOptional: No
Call by Reference: No ( called with pass by value option)
CM61B - MRP Area Data
Data type: M61X_CM61BOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EXIT_SAPLM61C_001
NO_PLANNING - Indicator: Do Not Plan Material
Data type: AM61X-FLG01Optional: No
Call by Reference: No ( called with pass by value option)
STOP_PLANNING - Indicator: Exit Planning Run
Data type: AM61X-FLG02Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EXIT_SAPLM61C_001 Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_user_key | TYPE RM61X-UXKEY, " | |||
| lv_no_planning | TYPE AM61X-FLG01, " | |||
| lv_user_par | TYPE RM61X-UXPAR, " | |||
| lv_stop_planning | TYPE AM61X-FLG02, " | |||
| lv_t438a | TYPE T438A, " | |||
| lv_mt61d | TYPE MT61D, " | |||
| lv_cm61b | TYPE M61X_CM61B. " |
|   CALL FUNCTION 'EXIT_SAPLM61C_001' "User Exits PP-MRP Materials Planning |
| EXPORTING | ||
| USER_KEY | = lv_user_key | |
| USER_PAR | = lv_user_par | |
| T438A | = lv_t438a | |
| MT61D | = lv_mt61d | |
| CM61B | = lv_cm61b | |
| IMPORTING | ||
| NO_PLANNING | = lv_no_planning | |
| STOP_PLANNING | = lv_stop_planning | |
| . " EXIT_SAPLM61C_001 | ||
ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLM61C_001
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single UXKEY FROM RM61X INTO @DATA(ld_user_key). | ||||
| "SELECT single FLG01 FROM AM61X INTO @DATA(ld_no_planning). | ||||
| "SELECT single UXPAR FROM RM61X INTO @DATA(ld_user_par). | ||||
| "SELECT single FLG02 FROM AM61X INTO @DATA(ld_stop_planning). | ||||
Search for further information about these or an SAP related objects