# BAPI_BANK_GETLIST — List of Banks

> Returns the bank master records of a country (bank key, name, city, SWIFT) as a list. It is used as a search help in web or mobile interfaces where a bank is selected and in programs that compare the bank directory. MAX_ROWS is mandatory; pass 0 to get all records, otherwise the list is limited to that number.

- 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-getlist/

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| BANK_CTRY | BAPI1011_LIST-BANK_CTRY | Bank country | Yes |
| MAX_ROWS | BAPI1011_KEY-MAX_ROWS | Maximum number of rows | Yes |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| RETURN | BAPIRET2 | Return message |

## Tables parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| BANK_LIST | BAPI1011_LIST | Bank list | Yes |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_BANK_GETLIST'
  EXPORTING
    bank_ctry = lv_bank_ctry
    max_rows = lv_max_rows
  IMPORTING
    return = lv_return
  TABLES
    bank_list = lt_bank_list.
```

## Related tables

BNKA

