SAP B31I_VENDOR_GET_LIST2 Function Module for
B31I_VENDOR_GET_LIST2 is a standard b31i vendor get list2 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 b31i vendor get list2 FM, simply by entering the name B31I_VENDOR_GET_LIST2 into the relevant SAP transaction such as SE37 or SE38.
Function Group: BBP_BD_DRIVER_31I
Program Name: SAPLBBP_BD_DRIVER_31I
Main Program: SAPLBBP_BD_DRIVER_31I
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function B31I_VENDOR_GET_LIST2 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 'B31I_VENDOR_GET_LIST2'".
EXPORTING
* IV_WITHOUT_PURCHORG = ' ' "
* IV_WITH_CREDITORS = "
* IV_CREDITORS_ONLY = "
TABLES
IT_CONTROL_RECORD = "
* IT_SELECTION_TAB = "
* ET_VENDOR_TAB = "
* ET_VENDOR_EKORG = "
* ET_CREDITOR_TAB = "
* ET_RETURN = "
IMPORTING Parameters details for B31I_VENDOR_GET_LIST2
IV_WITHOUT_PURCHORG -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_WITH_CREDITORS -
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_CREDITORS_ONLY -
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for B31I_VENDOR_GET_LIST2
IT_CONTROL_RECORD -
Data type: BBP_CONTROL_RECORDOptional: No
Call by Reference: No ( called with pass by value option)
IT_SELECTION_TAB -
Data type: RSPARAMSOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_VENDOR_TAB -
Data type: BBP_LFA1_KEYOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_VENDOR_EKORG -
Data type: BBP_LFM1_KEYOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_CREDITOR_TAB -
Data type: BBP_LFA1_KEYOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_RETURN -
Data type: BAPIRET2Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for B31I_VENDOR_GET_LIST2 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: | ||||
lt_it_control_record | TYPE STANDARD TABLE OF BBP_CONTROL_RECORD, " | |||
lv_iv_without_purchorg | TYPE XFELD, " SPACE | |||
lt_it_selection_tab | TYPE STANDARD TABLE OF RSPARAMS, " | |||
lv_iv_with_creditors | TYPE XFELD, " | |||
lt_et_vendor_tab | TYPE STANDARD TABLE OF BBP_LFA1_KEY, " | |||
lv_iv_creditors_only | TYPE XFELD, " | |||
lt_et_vendor_ekorg | TYPE STANDARD TABLE OF BBP_LFM1_KEY, " | |||
lt_et_creditor_tab | TYPE STANDARD TABLE OF BBP_LFA1_KEY, " | |||
lt_et_return | TYPE STANDARD TABLE OF BAPIRET2. " |
  CALL FUNCTION 'B31I_VENDOR_GET_LIST2' " |
EXPORTING | ||
IV_WITHOUT_PURCHORG | = lv_iv_without_purchorg | |
IV_WITH_CREDITORS | = lv_iv_with_creditors | |
IV_CREDITORS_ONLY | = lv_iv_creditors_only | |
TABLES | ||
IT_CONTROL_RECORD | = lt_it_control_record | |
IT_SELECTION_TAB | = lt_it_selection_tab | |
ET_VENDOR_TAB | = lt_et_vendor_tab | |
ET_VENDOR_EKORG | = lt_et_vendor_ekorg | |
ET_CREDITOR_TAB | = lt_et_creditor_tab | |
ET_RETURN | = lt_et_return | |
. " B31I_VENDOR_GET_LIST2 |
ABAP code using 7.40 inline data declarations to call FM B31I_VENDOR_GET_LIST2
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.DATA(ld_iv_without_purchorg) | = ' '. | |||
Search for further information about these or an SAP related objects