SAP MD_MRP_LEVEL_CHANGE_DATA Function Module for NOTRANSL: DiBe ändern mit Daten
MD_MRP_LEVEL_CHANGE_DATA is a standard md mrp level change data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: DiBe ändern mit Daten 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 md mrp level change data FM, simply by entering the name MD_MRP_LEVEL_CHANGE_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: MD_MGD1
Program Name: SAPLMD_MGD1
Main Program: SAPLMD_MGD1
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MD_MRP_LEVEL_CHANGE_DATA 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 'MD_MRP_LEVEL_CHANGE_DATA'"NOTRANSL: DiBe ändern mit Daten.
EXPORTING
I_MATNR = "Material Number
* I_EXTERNAL_COMMIT = ' ' "
I_WERK = "Plant
I_MRP_AREA = "MRP Area
I_BERTY = "Type of MRP Area
I_SELFIELDS = "Selection Fields
I_MDMA = "
I_DPOP = "Forecast Values
* I_QUEUE_FLAG = 'X' "
* I_SAVE_FLAG = 'X' "
IMPORTING
E_ERROR_RETURN = "Defect structure
IMPORTING Parameters details for MD_MRP_LEVEL_CHANGE_DATA
I_MATNR - Material Number
Data type: MDMA-MATNROptional: No
Call by Reference: Yes
I_EXTERNAL_COMMIT -
Data type: CDefault: ' '
Optional: Yes
Call by Reference: Yes
I_WERK - Plant
Data type: MDMA-WERKSOptional: No
Call by Reference: Yes
I_MRP_AREA - MRP Area
Data type: MDMA-BERIDOptional: No
Call by Reference: Yes
I_BERTY - Type of MRP Area
Data type: MDLV-BERTYOptional: No
Call by Reference: Yes
I_SELFIELDS - Selection Fields
Data type: SDIBE_MASSFIELDSOptional: No
Call by Reference: Yes
I_MDMA -
Data type: MDMAOptional: No
Call by Reference: Yes
I_DPOP - Forecast Values
Data type: DPOPOptional: No
Call by Reference: Yes
I_QUEUE_FLAG -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: Yes
I_SAVE_FLAG -
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for MD_MRP_LEVEL_CHANGE_DATA
E_ERROR_RETURN - Defect structure
Data type: BAPIRETURN1Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for MD_MRP_LEVEL_CHANGE_DATA 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_i_matnr | TYPE MDMA-MATNR, " | |||
| lv_e_error_return | TYPE BAPIRETURN1, " | |||
| lv_i_external_commit | TYPE C, " ' ' | |||
| lv_i_werk | TYPE MDMA-WERKS, " | |||
| lv_i_mrp_area | TYPE MDMA-BERID, " | |||
| lv_i_berty | TYPE MDLV-BERTY, " | |||
| lv_i_selfields | TYPE SDIBE_MASSFIELDS, " | |||
| lv_i_mdma | TYPE MDMA, " | |||
| lv_i_dpop | TYPE DPOP, " | |||
| lv_i_queue_flag | TYPE C, " 'X' | |||
| lv_i_save_flag | TYPE C. " 'X' |
|   CALL FUNCTION 'MD_MRP_LEVEL_CHANGE_DATA' "NOTRANSL: DiBe ändern mit Daten |
| EXPORTING | ||
| I_MATNR | = lv_i_matnr | |
| I_EXTERNAL_COMMIT | = lv_i_external_commit | |
| I_WERK | = lv_i_werk | |
| I_MRP_AREA | = lv_i_mrp_area | |
| I_BERTY | = lv_i_berty | |
| I_SELFIELDS | = lv_i_selfields | |
| I_MDMA | = lv_i_mdma | |
| I_DPOP | = lv_i_dpop | |
| I_QUEUE_FLAG | = lv_i_queue_flag | |
| I_SAVE_FLAG | = lv_i_save_flag | |
| IMPORTING | ||
| E_ERROR_RETURN | = lv_e_error_return | |
| . " MD_MRP_LEVEL_CHANGE_DATA | ||
ABAP code using 7.40 inline data declarations to call FM MD_MRP_LEVEL_CHANGE_DATA
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 MATNR FROM MDMA INTO @DATA(ld_i_matnr). | ||||
| DATA(ld_i_external_commit) | = ' '. | |||
| "SELECT single WERKS FROM MDMA INTO @DATA(ld_i_werk). | ||||
| "SELECT single BERID FROM MDMA INTO @DATA(ld_i_mrp_area). | ||||
| "SELECT single BERTY FROM MDLV INTO @DATA(ld_i_berty). | ||||
| DATA(ld_i_queue_flag) | = 'X'. | |||
| DATA(ld_i_save_flag) | = 'X'. | |||
Search for further information about these or an SAP related objects