SAP MRM_INVOICE_READ Function Module for NOTRANSL: (gepuffertes) Lesen aller Daten einer Eingangsrechnung
MRM_INVOICE_READ is a standard mrm invoice read 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: (gepuffertes) Lesen aller Daten einer Eingangsrechnung 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 mrm invoice read FM, simply by entering the name MRM_INVOICE_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: MRT3
Program Name: SAPLMRT3
Main Program: SAPLMRT3
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MRM_INVOICE_READ 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 'MRM_INVOICE_READ'"NOTRANSL: (gepuffertes) Lesen aller Daten einer Eingangsrechnung.
EXPORTING
I_BELNR = "Document Number of an Invoice Document
I_GJAHR = "Fiscal Year
* I_XSELK = ' ' "
* I_BUFFER_ON = X "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
* I_LOCK = ' ' "
* I_DISPL = ' ' "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
IMPORTING
E_RBKPV = "
T_RBSELCONTRACT = "
T_RBSELTRANSPMNG = "Table: Selection Transportation Management Documents
T_RBSELTM = "Table Type for Database RBSELTM
TABLES
* T_DRSEG = "
* T_KONV = "
* T_RBSELBEST = "
* T_RBSELLIFS = "
* T_RBSELFRBR = "
* T_RBSELWERK = "
* T_RBSELERFB = "
* T_RBSELTRAN = "Transfer Fields to Invoice Verification
EXCEPTIONS
ENTRY_NOT_FOUND = 1 LOCK_ERROR = 2
IMPORTING Parameters details for MRM_INVOICE_READ
I_BELNR - Document Number of an Invoice Document
Data type: RBKP_V-BELNROptional: No
Call by Reference: Yes
I_GJAHR - Fiscal Year
Data type: RBKP_V-GJAHROptional: No
Call by Reference: Yes
I_XSELK -
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BUFFER_ON - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
Data type: BOOLE-BOOLEDefault: X
Optional: No
Call by Reference: Yes
I_LOCK -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_DISPL - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MRM_INVOICE_READ
E_RBKPV -
Data type: MRM_RBKPVOptional: No
Call by Reference: No ( called with pass by value option)
T_RBSELCONTRACT -
Data type: MRM_TAB_SELCONTRACTOptional: No
Call by Reference: No ( called with pass by value option)
T_RBSELTRANSPMNG - Table: Selection Transportation Management Documents
Data type: MRM_TAB_TMTRANSPOptional: No
Call by Reference: No ( called with pass by value option)
T_RBSELTM - Table Type for Database RBSELTM
Data type: RBSELTM_TABOptional: No
Call by Reference: Yes
TABLES Parameters details for MRM_INVOICE_READ
T_DRSEG -
Data type: MMCR_TDRSEGOptional: Yes
Call by Reference: No ( called with pass by value option)
T_KONV -
Data type: KONVOptional: Yes
Call by Reference: No ( called with pass by value option)
T_RBSELBEST -
Data type: RBSELBESTOptional: Yes
Call by Reference: No ( called with pass by value option)
T_RBSELLIFS -
Data type: RBSELLIFSOptional: Yes
Call by Reference: No ( called with pass by value option)
T_RBSELFRBR -
Data type: RBSELFRBROptional: Yes
Call by Reference: No ( called with pass by value option)
T_RBSELWERK -
Data type: RBSELWERKOptional: Yes
Call by Reference: No ( called with pass by value option)
T_RBSELERFB -
Data type: RBSELERFBOptional: Yes
Call by Reference: No ( called with pass by value option)
T_RBSELTRAN - Transfer Fields to Invoice Verification
Data type: LETRA_IV_FIELDSOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
ENTRY_NOT_FOUND - Entry not found
Data type:Optional: No
Call by Reference: Yes
LOCK_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for MRM_INVOICE_READ 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_e_rbkpv | TYPE MRM_RBKPV, " | |||
| lv_i_belnr | TYPE RBKP_V-BELNR, " | |||
| lt_t_drseg | TYPE STANDARD TABLE OF MMCR_TDRSEG, " | |||
| lv_entry_not_found | TYPE MMCR_TDRSEG, " | |||
| lt_t_konv | TYPE STANDARD TABLE OF KONV, " | |||
| lv_i_gjahr | TYPE RBKP_V-GJAHR, " | |||
| lv_lock_error | TYPE RBKP_V, " | |||
| lv_t_rbselcontract | TYPE MRM_TAB_SELCONTRACT, " | |||
| lv_i_xselk | TYPE BOOLE-BOOLE, " SPACE | |||
| lt_t_rbselbest | TYPE STANDARD TABLE OF RBSELBEST, " | |||
| lv_t_rbseltranspmng | TYPE MRM_TAB_TMTRANSP, " | |||
| lv_t_rbseltm | TYPE RBSELTM_TAB, " | |||
| lv_i_buffer_on | TYPE BOOLE-BOOLE, " X | |||
| lt_t_rbsellifs | TYPE STANDARD TABLE OF RBSELLIFS, " | |||
| lv_i_lock | TYPE C, " SPACE | |||
| lt_t_rbselfrbr | TYPE STANDARD TABLE OF RBSELFRBR, " | |||
| lv_i_displ | TYPE BOOLE-BOOLE, " SPACE | |||
| lt_t_rbselwerk | TYPE STANDARD TABLE OF RBSELWERK, " | |||
| lt_t_rbselerfb | TYPE STANDARD TABLE OF RBSELERFB, " | |||
| lt_t_rbseltran | TYPE STANDARD TABLE OF LETRA_IV_FIELDS. " |
|   CALL FUNCTION 'MRM_INVOICE_READ' "NOTRANSL: (gepuffertes) Lesen aller Daten einer Eingangsrechnung |
| EXPORTING | ||
| I_BELNR | = lv_i_belnr | |
| I_GJAHR | = lv_i_gjahr | |
| I_XSELK | = lv_i_xselk | |
| I_BUFFER_ON | = lv_i_buffer_on | |
| I_LOCK | = lv_i_lock | |
| I_DISPL | = lv_i_displ | |
| IMPORTING | ||
| E_RBKPV | = lv_e_rbkpv | |
| T_RBSELCONTRACT | = lv_t_rbselcontract | |
| T_RBSELTRANSPMNG | = lv_t_rbseltranspmng | |
| T_RBSELTM | = lv_t_rbseltm | |
| TABLES | ||
| T_DRSEG | = lt_t_drseg | |
| T_KONV | = lt_t_konv | |
| T_RBSELBEST | = lt_t_rbselbest | |
| T_RBSELLIFS | = lt_t_rbsellifs | |
| T_RBSELFRBR | = lt_t_rbselfrbr | |
| T_RBSELWERK | = lt_t_rbselwerk | |
| T_RBSELERFB | = lt_t_rbselerfb | |
| T_RBSELTRAN | = lt_t_rbseltran | |
| EXCEPTIONS | ||
| ENTRY_NOT_FOUND = 1 | ||
| LOCK_ERROR = 2 | ||
| . " MRM_INVOICE_READ | ||
ABAP code using 7.40 inline data declarations to call FM MRM_INVOICE_READ
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 BELNR FROM RBKP_V INTO @DATA(ld_i_belnr). | ||||
| "SELECT single GJAHR FROM RBKP_V INTO @DATA(ld_i_gjahr). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_xselk). | ||||
| DATA(ld_i_xselk) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_buffer_on). | ||||
| DATA(ld_i_buffer_on) | = X. | |||
| DATA(ld_i_lock) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_displ). | ||||
| DATA(ld_i_displ) | = ' '. | |||
Search for further information about these or an SAP related objects