FI BAPI RFC Used the same way in S/4HANA

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.

Function group
1011
Remote-enabled (RFC)
Yes
Type
BAPI

Importing parameters

ParameterTypeDescriptionRequired
BANK_CTRYBAPI1011_KEY-BANK_CTRYBank countryYes
BANK_KEYBAPI1011_KEY-BANK_KEYBank key—
BANK_ADDRESSBAPI1011_ADDRESSBank addressYes
BANK_METHODBAPI1011_DETAIL-METHODBank data check method—
BANK_FORMATTINGBAPI1011_DETAIL-FORMATTINGFormatting—
BANK_IBAN_RULEBAPI1011_DETAIL-IBAN_RULEIBAN rule—
BANK_ADDRESS1BAPIADDR1Central address data—
I_XUPDATEXFELDUpdate database—
I_CHECK_BEFORE_SAVEXFELDCheck before saving—

Exporting parameters

ParameterTypeDescription
RETURNBAPIRET2Return message
BANKCOUNTRYBAPI1011_KEY-BANK_CTRYCreated bank country
BANKKEYBAPI1011_KEY-BANK_KEYCreated bank key

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_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

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.

Request a custom report