# BAPI_BANK_CREATE — Create Bank

> Creates a new bank master record (BNKA) with a country and bank key; address, SWIFT/BIC and branch information are passed in the BANK_ADDRESS structure. It is used in programs that load the bank directory for the first time or create missing banks before transferring vendor/customer bank details. The bank key must follow the country's key rule (e.g. bank number or internal number); read the created key from BANKKEY and call BAPI_TRANSACTION_COMMIT.

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

## Importing parameters

| Parameter | Type | Description | Required |
|---|---|---|---|
| BANK_CTRY | BAPI1011_KEY-BANK_CTRY | Bank country | Yes |
| BANK_KEY | BAPI1011_KEY-BANK_KEY | Bank key | - |
| BANK_ADDRESS | BAPI1011_ADDRESS | Bank address | Yes |
| BANK_METHOD | BAPI1011_DETAIL-METHOD | Bank data check method | - |
| BANK_FORMATTING | BAPI1011_DETAIL-FORMATTING | Formatting | - |
| BANK_IBAN_RULE | BAPI1011_DETAIL-IBAN_RULE | IBAN rule | - |
| BANK_ADDRESS1 | BAPIADDR1 | Central address data | - |
| I_XUPDATE | XFELD | Update database | - |
| I_CHECK_BEFORE_SAVE | XFELD | Check before saving | - |

## Exporting parameters

| Parameter | Type | Description |
|---|---|---|
| RETURN | BAPIRET2 | Return message |
| BANKCOUNTRY | BAPI1011_KEY-BANK_CTRY | Created bank country |
| BANKKEY | BAPI1011_KEY-BANK_KEY | Created bank key |

## Call template (ABAP)

```abap
CALL FUNCTION 'BAPI_BANK_CREATE'
  EXPORTING
    bank_ctry = lv_bank_ctry
    bank_address = lv_bank_address
  IMPORTING
    return = lv_return
    bankcountry = lv_bankcountry
    bankkey = lv_bankkey.
```

## Related tables

BNKA

