SAP R2_INFORECORD_GETLIST Function Module for









R2_INFORECORD_GETLIST is a standard r2 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 to perform a specific ABAP function and below is the pattern details, 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 r2 inforecord getlist FM, simply by entering the name R2_INFORECORD_GETLIST into the relevant SAP transaction such as SE37 or SE38.

Function Group: BBP_BD_DRIVER_R2
Program Name: SAPLBBP_BD_DRIVER_R2
Main Program: SAPLBBP_BD_DRIVER_R2
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function R2_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 'R2_INFORECORD_GETLIST'"
EXPORTING
* VENDOR = "
* PUR_GROUP = "
* PURCHASINGINFOREC = "
* DELETED_INFORECORDS = ' ' "
* PURCHORG_DATA = 'X' "
* GENERAL_DATA = 'X' "
* MATERIAL = "
* MAT_GRP = "
* VEND_MAT = "
* VEND_PART = "
* VEND_MATG = "
* PURCH_ORG = "
* INFO_TYPE = "
* PLANT = "

TABLES
* INFORECORD_GENERAL = "
* INFORECORD_PURCHORG = "
* RETURN = "
* CONTROL_RECORD = "
.



IMPORTING Parameters details for R2_INFORECORD_GETLIST

VENDOR -

Data type: BBPS_BAPIEINA-VENDOR
Optional: Yes
Call by Reference: No ( called with pass by value option)

PUR_GROUP -

Data type: BBPS_BAPIEINE-PUR_GROUP
Optional: Yes
Call by Reference: No ( called with pass by value option)

PURCHASINGINFOREC -

Data type: BBPS_BAPIEINE-INFO_REC
Optional: Yes
Call by Reference: No ( called with pass by value option)

DELETED_INFORECORDS -

Data type: BAPIMMPARA-SELECTION
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

PURCHORG_DATA -

Data type: BAPIMMPARA-SELECTION
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

GENERAL_DATA -

Data type: BAPIMMPARA-SELECTION
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

MATERIAL -

Data type: BBPS_BAPIEINA-MATERIAL
Optional: Yes
Call by Reference: No ( called with pass by value option)

MAT_GRP -

Data type: BBPS_BAPIEINA-MAT_GRP
Optional: Yes
Call by Reference: No ( called with pass by value option)

VEND_MAT -

Data type: BBPS_BAPIEINA-VEND_MAT
Optional: Yes
Call by Reference: No ( called with pass by value option)

VEND_PART -

Data type: BBPS_BAPIEINA-VEND_PART
Optional: Yes
Call by Reference: No ( called with pass by value option)

VEND_MATG -

Data type: BBPS_BAPIEINA-VEND_MATG
Optional: Yes
Call by Reference: No ( called with pass by value option)

PURCH_ORG -

Data type: BBPS_BAPIEINE-PURCH_ORG
Optional: Yes
Call by Reference: No ( called with pass by value option)

INFO_TYPE -

Data type: BBPS_BAPIEINE-INFO_TYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

PLANT -

Data type: BBPS_BAPIEINE-PLANT
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for R2_INFORECORD_GETLIST

INFORECORD_GENERAL -

Data type: BBPS_BAPIEINA
Optional: Yes
Call by Reference: Yes

INFORECORD_PURCHORG -

Data type: BBPS_BAPIEINE
Optional: Yes
Call by Reference: Yes

RETURN -

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

CONTROL_RECORD -

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

Copy and paste ABAP code example for R2_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 BBPS_BAPIEINA-VENDOR, "   
lt_inforecord_general  TYPE STANDARD TABLE OF BBPS_BAPIEINA, "   
lv_pur_group  TYPE BBPS_BAPIEINE-PUR_GROUP, "   
lv_purchasinginforec  TYPE BBPS_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  TYPE BBPS_BAPIEINA-MATERIAL, "   
lt_inforecord_purchorg  TYPE STANDARD TABLE OF BBPS_BAPIEINE, "   
lt_return  TYPE STANDARD TABLE OF BAPIRETURN, "   
lv_mat_grp  TYPE BBPS_BAPIEINA-MAT_GRP, "   
lv_vend_mat  TYPE BBPS_BAPIEINA-VEND_MAT, "   
lt_control_record  TYPE STANDARD TABLE OF BBP_CONTROL_RECORD, "   
lv_vend_part  TYPE BBPS_BAPIEINA-VEND_PART, "   
lv_vend_matg  TYPE BBPS_BAPIEINA-VEND_MATG, "   
lv_purch_org  TYPE BBPS_BAPIEINE-PURCH_ORG, "   
lv_info_type  TYPE BBPS_BAPIEINE-INFO_TYPE, "   
lv_plant  TYPE BBPS_BAPIEINE-PLANT. "   

  CALL FUNCTION 'R2_INFORECORD_GETLIST'  "
    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 = 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
         CONTROL_RECORD = lt_control_record
. " R2_INFORECORD_GETLIST




ABAP code using 7.40 inline data declarations to call FM R2_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 BBPS_BAPIEINA INTO @DATA(ld_vendor).
 
 
"SELECT single PUR_GROUP FROM BBPS_BAPIEINE INTO @DATA(ld_pur_group).
 
"SELECT single INFO_REC FROM BBPS_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 MATERIAL FROM BBPS_BAPIEINA INTO @DATA(ld_material).
 
 
 
"SELECT single MAT_GRP FROM BBPS_BAPIEINA INTO @DATA(ld_mat_grp).
 
"SELECT single VEND_MAT FROM BBPS_BAPIEINA INTO @DATA(ld_vend_mat).
 
 
"SELECT single VEND_PART FROM BBPS_BAPIEINA INTO @DATA(ld_vend_part).
 
"SELECT single VEND_MATG FROM BBPS_BAPIEINA INTO @DATA(ld_vend_matg).
 
"SELECT single PURCH_ORG FROM BBPS_BAPIEINE INTO @DATA(ld_purch_org).
 
"SELECT single INFO_TYPE FROM BBPS_BAPIEINE INTO @DATA(ld_info_type).
 
"SELECT single PLANT FROM BBPS_BAPIEINE INTO @DATA(ld_plant).
 


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!