SAP Function Modules

B45B_VENDOR_GET_DATA SAP Function module - Get Suppliers from Backend System







B45B_VENDOR_GET_DATA 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 B45B_VENDOR_GET_DATA into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: BBP_BD_DRIVER_45A
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM B45B_VENDOR_GET_DATA - B45B VENDOR GET DATA





CALL FUNCTION 'B45B_VENDOR_GET_DATA' "Get Suppliers from Backend System
  EXPORTING
    iv_without_purchorg = SPACE  " xfeld        Ohne EkOrg.-Bezug
  TABLES
    it_control_record =         " bbp_control_record  Steuersatz für META-BAPI-Steuerung
    it_id_list =                " bbp_lfa1_key  Lieferantennummern
*   et_lfa1 =                   " bbp_lfa1      Lieferantenstamm (allgemeiner Teil)
*   et_lfbk =                   " bbp_lfbk      Lieferantenstamm (Bankdaten)
*   et_lfm1 =                   " bbp_lfm1      Lieferantenstamm Einkaufsorg.-daten, Version gültig ab 5.0
*   et_lfas =                   " bbp_lfas      not available with 4.5B
*   et_adrc =                   " adrc          Adressen (zentrale Adreßverwaltung)
*   et_adrp =                   " adrp          O B S O L E T E !! (wird nicht mehr zurückgeliefert)
*   et_adr2 =                   " adr2          TEL (zentrale Adreßverwaltung)
*   et_adr3 =                   " adr3          FAX (zentrale Adreßverwaltung)
*   et_adr6 =                   " adr6          EMAIL (zentrale Adreßverwaltung)
*   et_adr12 =                  " adr12         F U T U R E !! (wird noch nicht zurückgeliefert)
*   et_if_ibu =                 " bbps_if_c_partner_fields  Interface Tabelle für IBU spezifische Felder
*   et_if_cf =                  " bbps_if_c_partner_fields  Interface Tabelle für kundenspezifische Felder
*   et_return =                 " bapiret2      Return Parameter
    .  "  B45B_VENDOR_GET_DATA

ABAP code example for Function Module B45B_VENDOR_GET_DATA





The ABAP code below is a full code listing to execute function module B45B_VENDOR_GET_DATA 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_it_control_record  TYPE STANDARD TABLE OF BBP_CONTROL_RECORD,"TABLES PARAM
wa_it_control_record  LIKE LINE OF it_it_control_record ,
it_it_id_list  TYPE STANDARD TABLE OF BBP_LFA1_KEY,"TABLES PARAM
wa_it_id_list  LIKE LINE OF it_it_id_list ,
it_et_lfa1  TYPE STANDARD TABLE OF BBP_LFA1,"TABLES PARAM
wa_et_lfa1  LIKE LINE OF it_et_lfa1 ,
it_et_lfbk  TYPE STANDARD TABLE OF BBP_LFBK,"TABLES PARAM
wa_et_lfbk  LIKE LINE OF it_et_lfbk ,
it_et_lfm1  TYPE STANDARD TABLE OF BBP_LFM1,"TABLES PARAM
wa_et_lfm1  LIKE LINE OF it_et_lfm1 ,
it_et_lfas  TYPE STANDARD TABLE OF BBP_LFAS,"TABLES PARAM
wa_et_lfas  LIKE LINE OF it_et_lfas ,
it_et_adrc  TYPE STANDARD TABLE OF ADRC,"TABLES PARAM
wa_et_adrc  LIKE LINE OF it_et_adrc ,
it_et_adrp  TYPE STANDARD TABLE OF ADRP,"TABLES PARAM
wa_et_adrp  LIKE LINE OF it_et_adrp ,
it_et_adr2  TYPE STANDARD TABLE OF ADR2,"TABLES PARAM
wa_et_adr2  LIKE LINE OF it_et_adr2 ,
it_et_adr3  TYPE STANDARD TABLE OF ADR3,"TABLES PARAM
wa_et_adr3  LIKE LINE OF it_et_adr3 ,
it_et_adr6  TYPE STANDARD TABLE OF ADR6,"TABLES PARAM
wa_et_adr6  LIKE LINE OF it_et_adr6 ,
it_et_adr12  TYPE STANDARD TABLE OF ADR12,"TABLES PARAM
wa_et_adr12  LIKE LINE OF it_et_adr12 ,
it_et_if_ibu  TYPE STANDARD TABLE OF BBPS_IF_C_PARTNER_FIELDS,"TABLES PARAM
wa_et_if_ibu  LIKE LINE OF it_et_if_ibu ,
it_et_if_cf  TYPE STANDARD TABLE OF BBPS_IF_C_PARTNER_FIELDS,"TABLES PARAM
wa_et_if_cf  LIKE LINE OF it_et_if_cf ,
it_et_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_et_return  LIKE LINE OF it_et_return .

DATA(ld_iv_without_purchorg) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_control_record to it_it_control_record.

"populate fields of struture and append to itab
append wa_it_id_list to it_it_id_list.

"populate fields of struture and append to itab
append wa_et_lfa1 to it_et_lfa1.

"populate fields of struture and append to itab
append wa_et_lfbk to it_et_lfbk.

"populate fields of struture and append to itab
append wa_et_lfm1 to it_et_lfm1.

"populate fields of struture and append to itab
append wa_et_lfas to it_et_lfas.

"populate fields of struture and append to itab
append wa_et_adrc to it_et_adrc.

"populate fields of struture and append to itab
append wa_et_adrp to it_et_adrp.

"populate fields of struture and append to itab
append wa_et_adr2 to it_et_adr2.

"populate fields of struture and append to itab
append wa_et_adr3 to it_et_adr3.

"populate fields of struture and append to itab
append wa_et_adr6 to it_et_adr6.

"populate fields of struture and append to itab
append wa_et_adr12 to it_et_adr12.

"populate fields of struture and append to itab
append wa_et_if_ibu to it_et_if_ibu.

"populate fields of struture and append to itab
append wa_et_if_cf to it_et_if_cf.

"populate fields of struture and append to itab
append wa_et_return to it_et_return. . CALL FUNCTION 'B45B_VENDOR_GET_DATA' EXPORTING iv_without_purchorg = ld_iv_without_purchorg TABLES it_control_record = it_it_control_record it_id_list = it_it_id_list * et_lfa1 = it_et_lfa1 * et_lfbk = it_et_lfbk * et_lfm1 = it_et_lfm1 * et_lfas = it_et_lfas * et_adrc = it_et_adrc * et_adrp = it_et_adrp * et_adr2 = it_et_adr2 * et_adr3 = it_et_adr3 * et_adr6 = it_et_adr6 * et_adr12 = it_et_adr12 * et_if_ibu = it_et_if_ibu * et_if_cf = it_et_if_cf * et_return = it_et_return . " B45B_VENDOR_GET_DATA
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_iv_without_purchorg  TYPE XFELD ,
it_it_control_record  TYPE STANDARD TABLE OF BBP_CONTROL_RECORD ,
wa_it_control_record  LIKE LINE OF it_it_control_record,
it_it_id_list  TYPE STANDARD TABLE OF BBP_LFA1_KEY ,
wa_it_id_list  LIKE LINE OF it_it_id_list,
it_et_lfa1  TYPE STANDARD TABLE OF BBP_LFA1 ,
wa_et_lfa1  LIKE LINE OF it_et_lfa1,
it_et_lfbk  TYPE STANDARD TABLE OF BBP_LFBK ,
wa_et_lfbk  LIKE LINE OF it_et_lfbk,
it_et_lfm1  TYPE STANDARD TABLE OF BBP_LFM1 ,
wa_et_lfm1  LIKE LINE OF it_et_lfm1,
it_et_lfas  TYPE STANDARD TABLE OF BBP_LFAS ,
wa_et_lfas  LIKE LINE OF it_et_lfas,
it_et_adrc  TYPE STANDARD TABLE OF ADRC ,
wa_et_adrc  LIKE LINE OF it_et_adrc,
it_et_adrp  TYPE STANDARD TABLE OF ADRP ,
wa_et_adrp  LIKE LINE OF it_et_adrp,
it_et_adr2  TYPE STANDARD TABLE OF ADR2 ,
wa_et_adr2  LIKE LINE OF it_et_adr2,
it_et_adr3  TYPE STANDARD TABLE OF ADR3 ,
wa_et_adr3  LIKE LINE OF it_et_adr3,
it_et_adr6  TYPE STANDARD TABLE OF ADR6 ,
wa_et_adr6  LIKE LINE OF it_et_adr6,
it_et_adr12  TYPE STANDARD TABLE OF ADR12 ,
wa_et_adr12  LIKE LINE OF it_et_adr12,
it_et_if_ibu  TYPE STANDARD TABLE OF BBPS_IF_C_PARTNER_FIELDS ,
wa_et_if_ibu  LIKE LINE OF it_et_if_ibu,
it_et_if_cf  TYPE STANDARD TABLE OF BBPS_IF_C_PARTNER_FIELDS ,
wa_et_if_cf  LIKE LINE OF it_et_if_cf,
it_et_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_et_return  LIKE LINE OF it_et_return.

ld_iv_without_purchorg = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_control_record to it_it_control_record.

"populate fields of struture and append to itab
append wa_it_id_list to it_it_id_list.

"populate fields of struture and append to itab
append wa_et_lfa1 to it_et_lfa1.

"populate fields of struture and append to itab
append wa_et_lfbk to it_et_lfbk.

"populate fields of struture and append to itab
append wa_et_lfm1 to it_et_lfm1.

"populate fields of struture and append to itab
append wa_et_lfas to it_et_lfas.

"populate fields of struture and append to itab
append wa_et_adrc to it_et_adrc.

"populate fields of struture and append to itab
append wa_et_adrp to it_et_adrp.

"populate fields of struture and append to itab
append wa_et_adr2 to it_et_adr2.

"populate fields of struture and append to itab
append wa_et_adr3 to it_et_adr3.

"populate fields of struture and append to itab
append wa_et_adr6 to it_et_adr6.

"populate fields of struture and append to itab
append wa_et_adr12 to it_et_adr12.

"populate fields of struture and append to itab
append wa_et_if_ibu to it_et_if_ibu.

"populate fields of struture and append to itab
append wa_et_if_cf to it_et_if_cf.

"populate fields of struture and append to itab
append wa_et_return to it_et_return.

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 B45B_VENDOR_GET_DATA or its description.