SAP Function Modules

BAPI_INFORECORD_GETLIST SAP Function module - Display Purchasing Info Records







BAPI_INFORECORD_GETLIST is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name BAPI_INFORECORD_GETLIST into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: MEWI
Released Date: 17.09.1997
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM BAPI_INFORECORD_GETLIST - BAPI INFORECORD GETLIST





CALL FUNCTION 'BAPI_INFORECORD_GETLIST' "Display Purchasing Info Records
* EXPORTING
*   vendor =                    " bapieina-vendor  Vendor
*   material =                  " bapieina-material  Material
*   mat_grp =                   " bapieina-mat_grp  Material Group
*   vend_mat =                  " bapieina-vend_mat  Vendor's Material Number
*   vend_part =                 " bapieina-vend_part  Vendor Subrange
*   vend_matg =                 " bapieina-vend_matg  Vendor's Material Group
*   purch_org =                 " bapieine-purch_org  Purchasing Organization
*   info_type =                 " bapieine-info_type  Info Category
*   plant =                     " bapieine-plant  Plant
*   pur_group =                 " bapieine-pur_group  Purchasing Group
*   purchasinginforec =         " bapieine-info_rec  Info Record Number
*   deleted_inforecords = SPACE  " bapimmpara-selection  Including Purchasing Info Records Flagged for Deletion
*   purchorg_data = 'X'         " bapimmpara-selection  Purchasing Organization Data on Info Record
*   general_data = 'X'          " bapimmpara-selection  General Data on Info Record
*   material_evg =              " bapimgvmatnr
*   purchorg_vend = SPACE       " bapimmpara-selection  Link Vendor Number to PURCHORG
* TABLES
*   inforecord_general =        " bapieina      Info Records: General Data
*   inforecord_purchorg =       " bapieine      Info Records: Purchasing Organization Data
*   return =                    " bapireturn    Return Messages
    .  "  BAPI_INFORECORD_GETLIST

ABAP code example for Function Module BAPI_INFORECORD_GETLIST





The ABAP code below is a full code listing to execute function module BAPI_INFORECORD_GETLIST including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_inforecord_general  TYPE STANDARD TABLE OF BAPIEINA,"TABLES PARAM
wa_inforecord_general  LIKE LINE OF it_inforecord_general ,
it_inforecord_purchorg  TYPE STANDARD TABLE OF BAPIEINE,"TABLES PARAM
wa_inforecord_purchorg  LIKE LINE OF it_inforecord_purchorg ,
it_return  TYPE STANDARD TABLE OF BAPIRETURN,"TABLES PARAM
wa_return  LIKE LINE OF it_return .


DATA(ld_vendor) = some text here

DATA(ld_material) = some text here

DATA(ld_mat_grp) = some text here

DATA(ld_vend_mat) = some text here

DATA(ld_vend_part) = some text here

DATA(ld_vend_matg) = some text here

DATA(ld_purch_org) = some text here

DATA(ld_info_type) = some text here

DATA(ld_plant) = some text here

DATA(ld_pur_group) = some text here

DATA(ld_purchasinginforec) = some text here

DATA(ld_deleted_inforecords) = some text here

DATA(ld_purchorg_data) = some text here

DATA(ld_general_data) = some text here
DATA(ld_material_evg) = 'Check type of data required'.

DATA(ld_purchorg_vend) = some text here

"populate fields of struture and append to itab
append wa_inforecord_general to it_inforecord_general.

"populate fields of struture and append to itab
append wa_inforecord_purchorg to it_inforecord_purchorg.

"populate fields of struture and append to itab
append wa_return to it_return. . CALL FUNCTION 'BAPI_INFORECORD_GETLIST' * EXPORTING * vendor = ld_vendor * material = ld_material * mat_grp = ld_mat_grp * vend_mat = ld_vend_mat * vend_part = ld_vend_part * vend_matg = ld_vend_matg * purch_org = ld_purch_org * info_type = ld_info_type * plant = ld_plant * pur_group = ld_pur_group * purchasinginforec = ld_purchasinginforec * deleted_inforecords = ld_deleted_inforecords * purchorg_data = ld_purchorg_data * general_data = ld_general_data * material_evg = ld_material_evg * purchorg_vend = ld_purchorg_vend * TABLES * inforecord_general = it_inforecord_general * inforecord_purchorg = it_inforecord_purchorg * return = it_return . " BAPI_INFORECORD_GETLIST
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_vendor  TYPE BAPIEINA-VENDOR ,
it_inforecord_general  TYPE STANDARD TABLE OF BAPIEINA ,
wa_inforecord_general  LIKE LINE OF it_inforecord_general,
ld_material  TYPE BAPIEINA-MATERIAL ,
it_inforecord_purchorg  TYPE STANDARD TABLE OF BAPIEINE ,
wa_inforecord_purchorg  LIKE LINE OF it_inforecord_purchorg,
ld_mat_grp  TYPE BAPIEINA-MAT_GRP ,
it_return  TYPE STANDARD TABLE OF BAPIRETURN ,
wa_return  LIKE LINE OF it_return,
ld_vend_mat  TYPE BAPIEINA-VEND_MAT ,
ld_vend_part  TYPE BAPIEINA-VEND_PART ,
ld_vend_matg  TYPE BAPIEINA-VEND_MATG ,
ld_purch_org  TYPE BAPIEINE-PURCH_ORG ,
ld_info_type  TYPE BAPIEINE-INFO_TYPE ,
ld_plant  TYPE BAPIEINE-PLANT ,
ld_pur_group  TYPE BAPIEINE-PUR_GROUP ,
ld_purchasinginforec  TYPE BAPIEINE-INFO_REC ,
ld_deleted_inforecords  TYPE BAPIMMPARA-SELECTION ,
ld_purchorg_data  TYPE BAPIMMPARA-SELECTION ,
ld_general_data  TYPE BAPIMMPARA-SELECTION ,
ld_material_evg  TYPE BAPIMGVMATNR ,
ld_purchorg_vend  TYPE BAPIMMPARA-SELECTION .


ld_vendor = some text here

"populate fields of struture and append to itab
append wa_inforecord_general to it_inforecord_general.

ld_material = some text here

"populate fields of struture and append to itab
append wa_inforecord_purchorg to it_inforecord_purchorg.

ld_mat_grp = some text here

"populate fields of struture and append to itab
append wa_return to it_return.

ld_vend_mat = some text here

ld_vend_part = some text here

ld_vend_matg = some text here

ld_purch_org = some text here

ld_info_type = some text here

ld_plant = some text here

ld_pur_group = some text here

ld_purchasinginforec = some text here

ld_deleted_inforecords = some text here

ld_purchorg_data = some text here

ld_general_data = some text here
ld_material_evg = 'Check type of data required'.

ld_purchorg_vend = some text here

SAP Documentation for FM BAPI_INFORECORD_GETLIST


This method enables you to list purchasing info records. You pass on the desired selection criteria (e.g. vendor, material, plant) in the ...See here for full SAP fm documentation

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BAPI_INFORECORD_GETLIST or its description.