SAP MMRP_L2_WRKCINFO_MODIFY Function Module for Change Station-Component Assignment
MMRP_L2_WRKCINFO_MODIFY is a standard mmrp l2 wrkcinfo modify SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Change Station-Component Assignment 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 mmrp l2 wrkcinfo modify FM, simply by entering the name MMRP_L2_WRKCINFO_MODIFY into the relevant SAP transaction such as SE37 or SE38.
Function Group: MMRP01
Program Name: SAPLMMRP01
Main Program: SAPLMMRP01
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MMRP_L2_WRKCINFO_MODIFY 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 'MMRP_L2_WRKCINFO_MODIFY'"Change Station-Component Assignment.
EXPORTING
IS_GEN_PARAMS = "Allgemeine Parameter für FBs aus /SAPAPO/OM
* LC_INSTANCE = "Logischer Name einer Datenbankverbindung
M_HANDLE = "Matrix-Handle im liveCache
WRKC_INFO_TAB = "Stations-Info
EXCEPTIONS
LC_CONNECT_FAILED = 1 LC_COM_ERROR = 2 LC_APPL_ERROR = 3
IMPORTING Parameters details for MMRP_L2_WRKCINFO_MODIFY
IS_GEN_PARAMS - Allgemeine Parameter für FBs aus /SAPAPO/OM
Data type: /SAPAPO/OM_GEN_PARAMSOptional: No
Call by Reference: Yes
LC_INSTANCE - Logischer Name einer Datenbankverbindung
Data type: DBCON-CON_NAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
M_HANDLE - Matrix-Handle im liveCache
Data type: M_HANDLEOptional: No
Call by Reference: Yes
WRKC_INFO_TAB - Stations-Info
Data type: MMRP_WRKC_INFO_TABOptional: No
Call by Reference: Yes
EXCEPTIONS details
LC_CONNECT_FAILED - Verbindungsaufbau zum liveCache gescheitert
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LC_COM_ERROR - COM-Routinen-Aufruf mit Systemfehler gescheitert
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LC_APPL_ERROR - COM-Routine mit eigenem Fehlercode beendet
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MMRP_L2_WRKCINFO_MODIFY 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_is_gen_params | TYPE /SAPAPO/OM_GEN_PARAMS, " | |||
| lv_lc_connect_failed | TYPE /SAPAPO/OM_GEN_PARAMS, " | |||
| lv_lc_instance | TYPE DBCON-CON_NAME, " | |||
| lv_lc_com_error | TYPE DBCON, " | |||
| lv_m_handle | TYPE M_HANDLE, " | |||
| lv_lc_appl_error | TYPE M_HANDLE, " | |||
| lv_wrkc_info_tab | TYPE MMRP_WRKC_INFO_TAB. " |
|   CALL FUNCTION 'MMRP_L2_WRKCINFO_MODIFY' "Change Station-Component Assignment |
| EXPORTING | ||
| IS_GEN_PARAMS | = lv_is_gen_params | |
| LC_INSTANCE | = lv_lc_instance | |
| M_HANDLE | = lv_m_handle | |
| WRKC_INFO_TAB | = lv_wrkc_info_tab | |
| EXCEPTIONS | ||
| LC_CONNECT_FAILED = 1 | ||
| LC_COM_ERROR = 2 | ||
| LC_APPL_ERROR = 3 | ||
| . " MMRP_L2_WRKCINFO_MODIFY | ||
ABAP code using 7.40 inline data declarations to call FM MMRP_L2_WRKCINFO_MODIFY
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 CON_NAME FROM DBCON INTO @DATA(ld_lc_instance). | ||||
Search for further information about these or an SAP related objects