# 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.

- Modules: MM
- Type: BAPI
- Function group: LC01
- Remote-enabled (RFC): Yes
- S/4HANA status: Used the same way in S/4HANA
- URL: https://nekuhub.com/en/functions/bapi-vendor-getdetail/

## 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)

```abap
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

LFA1, LFB1, LFBK

