# BAPI_BANK_GETDETAIL — Bank Details

> Returns the address (name, city, SWIFT/BIC) and details of a bank master record by country and bank key. It is used in programs that create payment files or pass bank information to external systems. Pass the bank key in the format defined for the country and check RETURN for a not-found message.

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

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| BANKCOUNTRY | BAPI1011_KEY-BANK_CTRY | Bank country | Yes |
| BANKKEY | BAPI1011_KEY-BANK_KEY | Bank key | Yes |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| BANK_ADDRESS | BAPI1011_ADDRESS | Bank address |
| BANK_DETAIL | BAPI1011_DETAIL | Bank details |
| RETURN | BAPIRET2 | Return message |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_BANK_GETDETAIL'
  EXPORTING
    bankcountry = lv_bankcountry
    bankkey = lv_bankkey
  IMPORTING
    bank_address = lv_bank_address
    bank_detail = lv_bank_detail
    return = lv_return.
```

## Related tables

BNKA

