SAP MD_READ_MRP_DATA_FROM_MEMORY Function Module for NOTRANSL: Lesen der Bedarfsplanungsergebnisse aus dem Hauptspeicher









MD_READ_MRP_DATA_FROM_MEMORY is a standard md read mrp data from memory 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: Lesen der Bedarfsplanungsergebnisse aus dem Hauptspeicher 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 read mrp data from memory FM, simply by entering the name MD_READ_MRP_DATA_FROM_MEMORY into the relevant SAP transaction such as SE37 or SE38.

Function Group: MRP1
Program Name: SAPLMRP1
Main Program: SAPLMRP1
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function MD_READ_MRP_DATA_FROM_MEMORY 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_READ_MRP_DATA_FROM_MEMORY'"NOTRANSL: Lesen der Bedarfsplanungsergebnisse aus dem Hauptspeicher
EXPORTING
IV_MEMID = "Memory ID for EXPORT/IMPORT
IV_PLSCN = "Planning Scenario of Long-Term Planning
IV_MATERIAL = "Material Number
IV_PLANT = "Plant
IV_BERID = "MRP Area

IMPORTING
ES_MDKP = "Header Data for MRP Document
ET_MDLPX = "
ET_EQUKX = "
ET_EQUPX = "
ET_EQUMX = "
ET_LORTX = "
ES_CM61M = "MRP Control Indicator -Material Level-
ES_CM61D = "Communication structure for material flag
ES_CM61B = "
ES_MDSTA = "Statistic fields for stocks
ES_MT61D = "Material Master: MRP
ES_MDMY = "Structure For Saving Settings In The Planning Memory
ET_MDPSX = "
ET_MDPSO = "

EXCEPTIONS
MATERIAL_NOT_IN_MEMORY = 1 DECOMPRESSION_ERROR = 2 TABLE_NOT_IN_MEMORY = 3
.



IMPORTING Parameters details for MD_READ_MRP_DATA_FROM_MEMORY

IV_MEMID - Memory ID for EXPORT/IMPORT

Data type: MEMID4
Optional: No
Call by Reference: No ( called with pass by value option)

IV_PLSCN - Planning Scenario of Long-Term Planning

Data type: PLSCN
Optional: No
Call by Reference: No ( called with pass by value option)

IV_MATERIAL - Material Number

Data type: MT61D-MATNR
Optional: No
Call by Reference: No ( called with pass by value option)

IV_PLANT - Plant

Data type: MT61D-WERKS
Optional: No
Call by Reference: No ( called with pass by value option)

IV_BERID - MRP Area

Data type: MDLV-BERID
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for MD_READ_MRP_DATA_FROM_MEMORY

ES_MDKP - Header Data for MRP Document

Data type: MDKP
Optional: No
Call by Reference: Yes

ET_MDLPX -

Data type: MRP_MDLPTAB
Optional: No
Call by Reference: Yes

ET_EQUKX -

Data type: MRP_EQUKTAB
Optional: No
Call by Reference: Yes

ET_EQUPX -

Data type: MRP_EQUPTAB
Optional: No
Call by Reference: Yes

ET_EQUMX -

Data type: MRP_EQUMTAB
Optional: No
Call by Reference: Yes

ET_LORTX -

Data type: MRP_LORTTAB
Optional: No
Call by Reference: Yes

ES_CM61M - MRP Control Indicator -Material Level-

Data type: CM61M
Optional: No
Call by Reference: Yes

ES_CM61D - Communication structure for material flag

Data type: CM61D
Optional: No
Call by Reference: Yes

ES_CM61B -

Data type: M61X_CM61B
Optional: No
Call by Reference: Yes

ES_MDSTA - Statistic fields for stocks

Data type: MDSTA
Optional: No
Call by Reference: Yes

ES_MT61D - Material Master: MRP

Data type: MT61D
Optional: No
Call by Reference: Yes

ES_MDMY - Structure For Saving Settings In The Planning Memory

Data type: MDMY
Optional: No
Call by Reference: Yes

ET_MDPSX -

Data type: MRP_MDPSTAB
Optional: No
Call by Reference: Yes

ET_MDPSO -

Data type: MRP_MDPSTAB
Optional: No
Call by Reference: Yes

EXCEPTIONS details

MATERIAL_NOT_IN_MEMORY -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

DECOMPRESSION_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

TABLE_NOT_IN_MEMORY -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for MD_READ_MRP_DATA_FROM_MEMORY 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_es_mdkp  TYPE MDKP, "   
lv_iv_memid  TYPE MEMID4, "   
lv_material_not_in_memory  TYPE MEMID4, "   
lv_et_mdlpx  TYPE MRP_MDLPTAB, "   
lv_et_equkx  TYPE MRP_EQUKTAB, "   
lv_et_equpx  TYPE MRP_EQUPTAB, "   
lv_et_equmx  TYPE MRP_EQUMTAB, "   
lv_et_lortx  TYPE MRP_LORTTAB, "   
lv_es_cm61m  TYPE CM61M, "   
lv_iv_plscn  TYPE PLSCN, "   
lv_decompression_error  TYPE PLSCN, "   
lv_es_cm61d  TYPE CM61D, "   
lv_iv_material  TYPE MT61D-MATNR, "   
lv_table_not_in_memory  TYPE MT61D, "   
lv_es_cm61b  TYPE M61X_CM61B, "   
lv_iv_plant  TYPE MT61D-WERKS, "   
lv_es_mdsta  TYPE MDSTA, "   
lv_iv_berid  TYPE MDLV-BERID, "   
lv_es_mt61d  TYPE MT61D, "   
lv_es_mdmy  TYPE MDMY, "   
lv_et_mdpsx  TYPE MRP_MDPSTAB, "   
lv_et_mdpso  TYPE MRP_MDPSTAB. "   

  CALL FUNCTION 'MD_READ_MRP_DATA_FROM_MEMORY'  "NOTRANSL: Lesen der Bedarfsplanungsergebnisse aus dem Hauptspeicher
    EXPORTING
         IV_MEMID = lv_iv_memid
         IV_PLSCN = lv_iv_plscn
         IV_MATERIAL = lv_iv_material
         IV_PLANT = lv_iv_plant
         IV_BERID = lv_iv_berid
    IMPORTING
         ES_MDKP = lv_es_mdkp
         ET_MDLPX = lv_et_mdlpx
         ET_EQUKX = lv_et_equkx
         ET_EQUPX = lv_et_equpx
         ET_EQUMX = lv_et_equmx
         ET_LORTX = lv_et_lortx
         ES_CM61M = lv_es_cm61m
         ES_CM61D = lv_es_cm61d
         ES_CM61B = lv_es_cm61b
         ES_MDSTA = lv_es_mdsta
         ES_MT61D = lv_es_mt61d
         ES_MDMY = lv_es_mdmy
         ET_MDPSX = lv_et_mdpsx
         ET_MDPSO = lv_et_mdpso
    EXCEPTIONS
        MATERIAL_NOT_IN_MEMORY = 1
        DECOMPRESSION_ERROR = 2
        TABLE_NOT_IN_MEMORY = 3
. " MD_READ_MRP_DATA_FROM_MEMORY




ABAP code using 7.40 inline data declarations to call FM MD_READ_MRP_DATA_FROM_MEMORY

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 MT61D INTO @DATA(ld_iv_material).
 
 
 
"SELECT single WERKS FROM MT61D INTO @DATA(ld_iv_plant).
 
 
"SELECT single BERID FROM MDLV INTO @DATA(ld_iv_berid).
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!