SAP META_VENDOR_GET_LIST2 Function Module for Get vendors from backend system









META_VENDOR_GET_LIST2 is a standard meta 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 for Get vendors from backend system 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 meta vendor get list2 FM, simply by entering the name META_VENDOR_GET_LIST2 into the relevant SAP transaction such as SE37 or SE38.

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



Function META_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 'META_VENDOR_GET_LIST2'"Get vendors from backend system
EXPORTING
IV_LOGICAL_SYSTEM = "Logical system
* IV_WITHOUT_PURCHORG = ' ' "Ohne EkOrg.-Bezug
* IV_WITH_CREDITORS = "Auch rein kreditorische Lieferanten übernehmen
* IV_CREDITORS_ONLY = "Ausschließlich rein kreditorische Lieferanten

TABLES
* IT_SELECTION_TAB = "Select-Option Tabelle
* ET_VENDOR_TAB = "Liste der Lieferanten
* ET_VENDOR_EKORG = "Liste der Lieferanten / EkOrg-Zuordnung
* ET_CREDITOR_TAB = "Liste der Kreditoren
* ET_RETURN = "Return Parameter
.



IMPORTING Parameters details for META_VENDOR_GET_LIST2

IV_LOGICAL_SYSTEM - Logical system

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

IV_WITHOUT_PURCHORG - Ohne EkOrg.-Bezug

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

IV_WITH_CREDITORS - Auch rein kreditorische Lieferanten übernehmen

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

IV_CREDITORS_ONLY - Ausschließlich rein kreditorische Lieferanten

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

TABLES Parameters details for META_VENDOR_GET_LIST2

IT_SELECTION_TAB - Select-Option Tabelle

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

ET_VENDOR_TAB - Liste der Lieferanten

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

ET_VENDOR_EKORG - Liste der Lieferanten / EkOrg-Zuordnung

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

ET_CREDITOR_TAB - Liste der Kreditoren

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

ET_RETURN - Return Parameter

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

Copy and paste ABAP code example for META_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_selection_tab  TYPE STANDARD TABLE OF RSPARAMS, "   
lv_iv_logical_system  TYPE LOGSYS, "   
lt_et_vendor_tab  TYPE STANDARD TABLE OF BBP_LFA1_KEY, "   
lv_iv_without_purchorg  TYPE XFELD, "   SPACE
lt_et_vendor_ekorg  TYPE STANDARD TABLE OF BBP_LFM1_KEY, "   
lv_iv_with_creditors  TYPE XFELD, "   
lt_et_creditor_tab  TYPE STANDARD TABLE OF BBP_LFA1_KEY, "   
lv_iv_creditors_only  TYPE XFELD, "   
lt_et_return  TYPE STANDARD TABLE OF BAPIRET2. "   

  CALL FUNCTION 'META_VENDOR_GET_LIST2'  "Get vendors from backend system
    EXPORTING
         IV_LOGICAL_SYSTEM = lv_iv_logical_system
         IV_WITHOUT_PURCHORG = lv_iv_without_purchorg
         IV_WITH_CREDITORS = lv_iv_with_creditors
         IV_CREDITORS_ONLY = lv_iv_creditors_only
    TABLES
         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
. " META_VENDOR_GET_LIST2




ABAP code using 7.40 inline data declarations to call FM META_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



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!