MM
BAPI
RFC
Used the same way in S/4HANA
BAPI_VENDOR_GETDETAIL Vendor Detail Information
Returns the general data of a vendor (name, address, tax numbers), the company code data when requested, and the bank/IBAN details. It is used in interfaces that pass vendor information to external systems and in form and report programs. Fill COMPANYCODE for company code data; in S/4HANA vendor data is maintained through the business partner, but this BAPI still works for reading.
- Function group
- LC01
- Remote-enabled (RFC)
- Yes
- Type
- BAPI
Importing parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| VENDORNO | BAPIVENDOR_01-VENDOR_NO | Vendor number | Yes |
| COMPANYCODE | BAPIVENDOR_01-COMP_CODE | Company code | — |
Exporting parameters
| Parameter | Type | Description |
|---|---|---|
| GENERALDETAIL | BAPIVENDOR_04 | General data |
| COMPANYDETAIL | BAPIVENDOR_05 | Company code data |
| RETURN | BAPIRET1 | Return message |
Tables parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
| BANKDETAIL | BAPIVENDOR_06 | Bank details | — |
| VENDORIBANDETAIL | BAPIVENDOR_02 | IBAN details | — |
Call template (ABAP)
A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.
CALL FUNCTION 'BAPI_VENDOR_GETDETAIL'
EXPORTING
vendorno = lv_vendorno
IMPORTING
generaldetail = lv_generaldetail
companydetail = lv_companydetail
return = lv_return
TABLES
bankdetail = lt_bankdetail
vendoribandetail = lt_vendoribandetail.Related tables
Can't find the report you need?
We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.