SAP BAPI_INFORECORD_GETLIST Function Module for Display Purchasing Info Records
BAPI_INFORECORD_GETLIST is a standard bapi inforecord 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 Display Purchasing Info Records 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 bapi inforecord getlist FM, simply by entering the name BAPI_INFORECORD_GETLIST into the relevant SAP transaction such as SE37 or SE38.
Function Group: MEWI
Program Name: SAPLMEWI
Main Program: SAPLMEWI
Appliation area: M
Release date: 17-Sep-1997
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_INFORECORD_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 'BAPI_INFORECORD_GETLIST'"Display Purchasing Info Records.
EXPORTING
* VENDOR = "Vendor
* PUR_GROUP = "Purchasing Group
* PURCHASINGINFOREC = "Info Record Number
* DELETED_INFORECORDS = ' ' "Including Purchasing Info Records Flagged for Deletion
* PURCHORG_DATA = 'X' "Purchasing Organization Data on Info Record
* GENERAL_DATA = 'X' "General Data on Info Record
* MATERIAL_EVG = "
* PURCHORG_VEND = ' ' "Link Vendor Number to PURCHORG
* MATERIAL = "Material
* MAT_GRP = "Material Group
* VEND_MAT = "Vendor's Material Number
* VEND_PART = "Vendor Subrange
* VEND_MATG = "Vendor's Material Group
* PURCH_ORG = "Purchasing Organization
* INFO_TYPE = "Info Category
* PLANT = "Plant
TABLES
* INFORECORD_GENERAL = "Info Records: General Data
* INFORECORD_PURCHORG = "Info Records: Purchasing Organization Data
* RETURN = "Return Messages
IMPORTING Parameters details for BAPI_INFORECORD_GETLIST
VENDOR - Vendor
Data type: BAPIEINA-VENDOROptional: Yes
Call by Reference: No ( called with pass by value option)
PUR_GROUP - Purchasing Group
Data type: BAPIEINE-PUR_GROUPOptional: Yes
Call by Reference: No ( called with pass by value option)
PURCHASINGINFOREC - Info Record Number
Data type: BAPIEINE-INFO_RECOptional: Yes
Call by Reference: No ( called with pass by value option)
DELETED_INFORECORDS - Including Purchasing Info Records Flagged for Deletion
Data type: BAPIMMPARA-SELECTIONDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PURCHORG_DATA - Purchasing Organization Data on Info Record
Data type: BAPIMMPARA-SELECTIONDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
GENERAL_DATA - General Data on Info Record
Data type: BAPIMMPARA-SELECTIONDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MATERIAL_EVG -
Data type: BAPIMGVMATNROptional: Yes
Call by Reference: No ( called with pass by value option)
PURCHORG_VEND - Link Vendor Number to PURCHORG
Data type: BAPIMMPARA-SELECTIONDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MATERIAL - Material
Data type: BAPIEINA-MATERIALOptional: Yes
Call by Reference: No ( called with pass by value option)
MAT_GRP - Material Group
Data type: BAPIEINA-MAT_GRPOptional: Yes
Call by Reference: No ( called with pass by value option)
VEND_MAT - Vendor's Material Number
Data type: BAPIEINA-VEND_MATOptional: Yes
Call by Reference: No ( called with pass by value option)
VEND_PART - Vendor Subrange
Data type: BAPIEINA-VEND_PARTOptional: Yes
Call by Reference: No ( called with pass by value option)
VEND_MATG - Vendor's Material Group
Data type: BAPIEINA-VEND_MATGOptional: Yes
Call by Reference: No ( called with pass by value option)
PURCH_ORG - Purchasing Organization
Data type: BAPIEINE-PURCH_ORGOptional: Yes
Call by Reference: No ( called with pass by value option)
INFO_TYPE - Info Category
Data type: BAPIEINE-INFO_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
PLANT - Plant
Data type: BAPIEINE-PLANTOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_INFORECORD_GETLIST
INFORECORD_GENERAL - Info Records: General Data
Data type: BAPIEINAOptional: Yes
Call by Reference: No ( called with pass by value option)
INFORECORD_PURCHORG - Info Records: Purchasing Organization Data
Data type: BAPIEINEOptional: Yes
Call by Reference: No ( called with pass by value option)
RETURN - Return Messages
Data type: BAPIRETURNOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BAPI_INFORECORD_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_vendor | TYPE BAPIEINA-VENDOR, " | |||
| lt_inforecord_general | TYPE STANDARD TABLE OF BAPIEINA, " | |||
| lv_pur_group | TYPE BAPIEINE-PUR_GROUP, " | |||
| lv_purchasinginforec | TYPE BAPIEINE-INFO_REC, " | |||
| lv_deleted_inforecords | TYPE BAPIMMPARA-SELECTION, " SPACE | |||
| lv_purchorg_data | TYPE BAPIMMPARA-SELECTION, " 'X' | |||
| lv_general_data | TYPE BAPIMMPARA-SELECTION, " 'X' | |||
| lv_material_evg | TYPE BAPIMGVMATNR, " | |||
| lv_purchorg_vend | TYPE BAPIMMPARA-SELECTION, " SPACE | |||
| lv_material | TYPE BAPIEINA-MATERIAL, " | |||
| lt_inforecord_purchorg | TYPE STANDARD TABLE OF BAPIEINE, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRETURN, " | |||
| lv_mat_grp | TYPE BAPIEINA-MAT_GRP, " | |||
| lv_vend_mat | TYPE BAPIEINA-VEND_MAT, " | |||
| lv_vend_part | TYPE BAPIEINA-VEND_PART, " | |||
| lv_vend_matg | TYPE BAPIEINA-VEND_MATG, " | |||
| lv_purch_org | TYPE BAPIEINE-PURCH_ORG, " | |||
| lv_info_type | TYPE BAPIEINE-INFO_TYPE, " | |||
| lv_plant | TYPE BAPIEINE-PLANT. " |
|   CALL FUNCTION 'BAPI_INFORECORD_GETLIST' "Display Purchasing Info Records |
| EXPORTING | ||
| VENDOR | = lv_vendor | |
| PUR_GROUP | = lv_pur_group | |
| PURCHASINGINFOREC | = lv_purchasinginforec | |
| DELETED_INFORECORDS | = lv_deleted_inforecords | |
| PURCHORG_DATA | = lv_purchorg_data | |
| GENERAL_DATA | = lv_general_data | |
| MATERIAL_EVG | = lv_material_evg | |
| PURCHORG_VEND | = lv_purchorg_vend | |
| MATERIAL | = lv_material | |
| MAT_GRP | = lv_mat_grp | |
| VEND_MAT | = lv_vend_mat | |
| VEND_PART | = lv_vend_part | |
| VEND_MATG | = lv_vend_matg | |
| PURCH_ORG | = lv_purch_org | |
| INFO_TYPE | = lv_info_type | |
| PLANT | = lv_plant | |
| TABLES | ||
| INFORECORD_GENERAL | = lt_inforecord_general | |
| INFORECORD_PURCHORG | = lt_inforecord_purchorg | |
| RETURN | = lt_return | |
| . " BAPI_INFORECORD_GETLIST | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_INFORECORD_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.| "SELECT single VENDOR FROM BAPIEINA INTO @DATA(ld_vendor). | ||||
| "SELECT single PUR_GROUP FROM BAPIEINE INTO @DATA(ld_pur_group). | ||||
| "SELECT single INFO_REC FROM BAPIEINE INTO @DATA(ld_purchasinginforec). | ||||
| "SELECT single SELECTION FROM BAPIMMPARA INTO @DATA(ld_deleted_inforecords). | ||||
| DATA(ld_deleted_inforecords) | = ' '. | |||
| "SELECT single SELECTION FROM BAPIMMPARA INTO @DATA(ld_purchorg_data). | ||||
| DATA(ld_purchorg_data) | = 'X'. | |||
| "SELECT single SELECTION FROM BAPIMMPARA INTO @DATA(ld_general_data). | ||||
| DATA(ld_general_data) | = 'X'. | |||
| "SELECT single SELECTION FROM BAPIMMPARA INTO @DATA(ld_purchorg_vend). | ||||
| DATA(ld_purchorg_vend) | = ' '. | |||
| "SELECT single MATERIAL FROM BAPIEINA INTO @DATA(ld_material). | ||||
| "SELECT single MAT_GRP FROM BAPIEINA INTO @DATA(ld_mat_grp). | ||||
| "SELECT single VEND_MAT FROM BAPIEINA INTO @DATA(ld_vend_mat). | ||||
| "SELECT single VEND_PART FROM BAPIEINA INTO @DATA(ld_vend_part). | ||||
| "SELECT single VEND_MATG FROM BAPIEINA INTO @DATA(ld_vend_matg). | ||||
| "SELECT single PURCH_ORG FROM BAPIEINE INTO @DATA(ld_purch_org). | ||||
| "SELECT single INFO_TYPE FROM BAPIEINE INTO @DATA(ld_info_type). | ||||
| "SELECT single PLANT FROM BAPIEINE INTO @DATA(ld_plant). | ||||
Search for further information about these or an SAP related objects