SAP ME_READ_INFORECORD Function Module for NOTRANSL: Lesen des Einkaufsinfosatzes
ME_READ_INFORECORD is a standard me read inforecord 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 des Einkaufsinfosatzes 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 me read inforecord FM, simply by entering the name ME_READ_INFORECORD into the relevant SAP transaction such as SE37 or SE38.
Function Group: MEQR
Program Name: SAPLMEQR
Main Program: SAPLMEQR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ME_READ_INFORECORD 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 'ME_READ_INFORECORD'"NOTRANSL: Lesen des Einkaufsinfosatzes.
EXPORTING
INCOM = "
* INPREISSIM = "
* I_NO_OTHER_ORG = "
* I_SET_ENQUEUE = "
* I_REALLY_EXIST = ' ' "General Indicator
IMPORTING
DATEN = "
EINADATEN = "
EINEDATEN = "
EXCOM = "
EXPREISSIM = "
E_ENQUEUE_FAILED = "
TABLES
* ELEMENTE = "
EXCEPTIONS
BAD_COMIN = 1 BAD_MATERIAL = 2 BAD_MATERIALCLASS = 3 BAD_SUPPLIER = 4 NOT_FOUND = 5
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLMEQR_001 User Exit for Source Determination
IMPORTING Parameters details for ME_READ_INFORECORD
INCOM -
Data type: MEICOOptional: No
Call by Reference: No ( called with pass by value option)
INPREISSIM -
Data type: MEPRCKOptional: Yes
Call by Reference: No ( called with pass by value option)
I_NO_OTHER_ORG -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SET_ENQUEUE -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
I_REALLY_EXIST - General Indicator
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ME_READ_INFORECORD
DATEN -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EINADATEN -
Data type: EINAOptional: No
Call by Reference: No ( called with pass by value option)
EINEDATEN -
Data type: EINEOptional: No
Call by Reference: No ( called with pass by value option)
EXCOM -
Data type: MEICROptional: No
Call by Reference: No ( called with pass by value option)
EXPREISSIM -
Data type: MEPROOptional: No
Call by Reference: No ( called with pass by value option)
E_ENQUEUE_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ME_READ_INFORECORD
ELEMENTE -
Data type: MEPRTABOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
BAD_COMIN -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BAD_MATERIAL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BAD_MATERIALCLASS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
BAD_SUPPLIER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ME_READ_INFORECORD 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_daten | TYPE STRING, " | |||
| lv_incom | TYPE MEICO, " | |||
| lt_elemente | TYPE STANDARD TABLE OF MEPRTAB, " | |||
| lv_bad_comin | TYPE MEPRTAB, " | |||
| lv_einadaten | TYPE EINA, " | |||
| lv_inpreissim | TYPE MEPRCK, " | |||
| lv_bad_material | TYPE MEPRCK, " | |||
| lv_einedaten | TYPE EINE, " | |||
| lv_i_no_other_org | TYPE EINE, " | |||
| lv_bad_materialclass | TYPE EINE, " | |||
| lv_excom | TYPE MEICR, " | |||
| lv_bad_supplier | TYPE MEICR, " | |||
| lv_i_set_enqueue | TYPE MEICR, " | |||
| lv_not_found | TYPE MEICR, " | |||
| lv_expreissim | TYPE MEPRO, " | |||
| lv_i_really_exist | TYPE FLAG, " SPACE | |||
| lv_e_enqueue_failed | TYPE FLAG. " |
|   CALL FUNCTION 'ME_READ_INFORECORD' "NOTRANSL: Lesen des Einkaufsinfosatzes |
| EXPORTING | ||
| INCOM | = lv_incom | |
| INPREISSIM | = lv_inpreissim | |
| I_NO_OTHER_ORG | = lv_i_no_other_org | |
| I_SET_ENQUEUE | = lv_i_set_enqueue | |
| I_REALLY_EXIST | = lv_i_really_exist | |
| IMPORTING | ||
| DATEN | = lv_daten | |
| EINADATEN | = lv_einadaten | |
| EINEDATEN | = lv_einedaten | |
| EXCOM | = lv_excom | |
| EXPREISSIM | = lv_expreissim | |
| E_ENQUEUE_FAILED | = lv_e_enqueue_failed | |
| TABLES | ||
| ELEMENTE | = lt_elemente | |
| EXCEPTIONS | ||
| BAD_COMIN = 1 | ||
| BAD_MATERIAL = 2 | ||
| BAD_MATERIALCLASS = 3 | ||
| BAD_SUPPLIER = 4 | ||
| NOT_FOUND = 5 | ||
| . " ME_READ_INFORECORD | ||
ABAP code using 7.40 inline data declarations to call FM ME_READ_INFORECORD
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.| DATA(ld_i_really_exist) | = ' '. | |||
Search for further information about these or an SAP related objects