SAP MRM_INVOICE_GETLIST Function Module for NOTRANSL: Invoice Verification: List Invoices
MRM_INVOICE_GETLIST is a standard mrm invoice getlist 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: Invoice Verification: List Invoices 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 getlist FM, simply by entering the name MRM_INVOICE_GETLIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: MRT3
Program Name: SAPLMRT3
Main Program: SAPLMRT3
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function MRM_INVOICE_GETLIST 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_GETLIST'"NOTRANSL: Invoice Verification: List Invoices.
EXPORTING
* INV_TYPE = "
TABLES
* DOC_NO_RA = "
* DOC_STATUS_RA = "Ranges for Incoming Invoice Status (GetList)
* PSTNG_DATE_RA = "Ranges for Invoice Posting Date (GetList)
* CPU_DATE_RA = "Ranges for Entry Date of Incoming Invoice (GetList)
* PERSON_EXT_RA = "Ranges for External Users Who Enter Invoices (GetList)
DOC_HEADER_LIST = "Document Header in Incoming Invoice
* REFDOC_NO_RA = "
* DOC_DATE_RA = "Ranges for Document Date of Incoming Invoice (GetList)
* GROSS_AMOUNT_RA = "
* CURRENCY_RA = "
* INVOICING_PARTY_RA = "
* PAYEE_RA = "
* COMP_CODE_RA = "
* FISCAL_YEAR_RA = "
EXCEPTIONS
ENTRY_NOT_FOUND = 1
IMPORTING Parameters details for MRM_INVOICE_GETLIST
INV_TYPE -
Data type: MRM_TAB_INCINV_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MRM_INVOICE_GETLIST
DOC_NO_RA -
Data type: MRM_INCINV_DOC_NO_RAOptional: Yes
Call by Reference: Yes
DOC_STATUS_RA - Ranges for Incoming Invoice Status (GetList)
Data type: BAPI_INCINV_IV_STATUS_RAOptional: Yes
Call by Reference: Yes
PSTNG_DATE_RA - Ranges for Invoice Posting Date (GetList)
Data type: BAPI_INCINV_PSTNG_DATE_RAOptional: Yes
Call by Reference: Yes
CPU_DATE_RA - Ranges for Entry Date of Incoming Invoice (GetList)
Data type: BAPI_INCINV_ENTRY_DATE_RAOptional: Yes
Call by Reference: Yes
PERSON_EXT_RA - Ranges for External Users Who Enter Invoices (GetList)
Data type: BAPI_INCINV_PERSON_EXT_RAOptional: Yes
Call by Reference: Yes
DOC_HEADER_LIST - Document Header in Incoming Invoice
Data type: RBKPOptional: No
Call by Reference: Yes
REFDOC_NO_RA -
Data type: MRM_INCINV_REFDOC_NO_RAOptional: Yes
Call by Reference: Yes
DOC_DATE_RA - Ranges for Document Date of Incoming Invoice (GetList)
Data type: BAPI_INCINV_DOC_DATE_RAOptional: Yes
Call by Reference: Yes
GROSS_AMOUNT_RA -
Data type: MRM_INCINV_GROSS_AMOUNT_RAOptional: Yes
Call by Reference: Yes
CURRENCY_RA -
Data type: MRM_INCINV_GURRENCY_RAOptional: Yes
Call by Reference: Yes
INVOICING_PARTY_RA -
Data type: MRM_INCINV_INVOICING_PARTY_RAOptional: Yes
Call by Reference: Yes
PAYEE_RA -
Data type: MRM_INCINV_PAYEE_RAOptional: Yes
Call by Reference: Yes
COMP_CODE_RA -
Data type: MRM_INCINV_COMP_CODE_RAOptional: Yes
Call by Reference: Yes
FISCAL_YEAR_RA -
Data type: MRM_INCINV_FISCAL_YEAR_RAOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
ENTRY_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for MRM_INVOICE_GETLIST 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_inv_type | TYPE MRM_TAB_INCINV_TYPE, " | |||
| lt_doc_no_ra | TYPE STANDARD TABLE OF MRM_INCINV_DOC_NO_RA, " | |||
| lv_entry_not_found | TYPE MRM_INCINV_DOC_NO_RA, " | |||
| lt_doc_status_ra | TYPE STANDARD TABLE OF BAPI_INCINV_IV_STATUS_RA, " | |||
| lt_pstng_date_ra | TYPE STANDARD TABLE OF BAPI_INCINV_PSTNG_DATE_RA, " | |||
| lt_cpu_date_ra | TYPE STANDARD TABLE OF BAPI_INCINV_ENTRY_DATE_RA, " | |||
| lt_person_ext_ra | TYPE STANDARD TABLE OF BAPI_INCINV_PERSON_EXT_RA, " | |||
| lt_doc_header_list | TYPE STANDARD TABLE OF RBKP, " | |||
| lt_refdoc_no_ra | TYPE STANDARD TABLE OF MRM_INCINV_REFDOC_NO_RA, " | |||
| lt_doc_date_ra | TYPE STANDARD TABLE OF BAPI_INCINV_DOC_DATE_RA, " | |||
| lt_gross_amount_ra | TYPE STANDARD TABLE OF MRM_INCINV_GROSS_AMOUNT_RA, " | |||
| lt_currency_ra | TYPE STANDARD TABLE OF MRM_INCINV_GURRENCY_RA, " | |||
| lt_invoicing_party_ra | TYPE STANDARD TABLE OF MRM_INCINV_INVOICING_PARTY_RA, " | |||
| lt_payee_ra | TYPE STANDARD TABLE OF MRM_INCINV_PAYEE_RA, " | |||
| lt_comp_code_ra | TYPE STANDARD TABLE OF MRM_INCINV_COMP_CODE_RA, " | |||
| lt_fiscal_year_ra | TYPE STANDARD TABLE OF MRM_INCINV_FISCAL_YEAR_RA. " |
|   CALL FUNCTION 'MRM_INVOICE_GETLIST' "NOTRANSL: Invoice Verification: List Invoices |
| EXPORTING | ||
| INV_TYPE | = lv_inv_type | |
| TABLES | ||
| DOC_NO_RA | = lt_doc_no_ra | |
| DOC_STATUS_RA | = lt_doc_status_ra | |
| PSTNG_DATE_RA | = lt_pstng_date_ra | |
| CPU_DATE_RA | = lt_cpu_date_ra | |
| PERSON_EXT_RA | = lt_person_ext_ra | |
| DOC_HEADER_LIST | = lt_doc_header_list | |
| REFDOC_NO_RA | = lt_refdoc_no_ra | |
| DOC_DATE_RA | = lt_doc_date_ra | |
| GROSS_AMOUNT_RA | = lt_gross_amount_ra | |
| CURRENCY_RA | = lt_currency_ra | |
| INVOICING_PARTY_RA | = lt_invoicing_party_ra | |
| PAYEE_RA | = lt_payee_ra | |
| COMP_CODE_RA | = lt_comp_code_ra | |
| FISCAL_YEAR_RA | = lt_fiscal_year_ra | |
| EXCEPTIONS | ||
| ENTRY_NOT_FOUND = 1 | ||
| . " MRM_INVOICE_GETLIST | ||
ABAP code using 7.40 inline data declarations to call FM MRM_INVOICE_GETLIST
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.Search for further information about these or an SAP related objects