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

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.

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

Importing parameters

ParameterTypeDescriptionRequired
BANKCOUNTRYBAPI1011_KEY-BANK_CTRYBank countryYes
BANKKEYBAPI1011_KEY-BANK_KEYBank keyYes

Exporting parameters

ParameterTypeDescription
BANK_ADDRESSBAPI1011_ADDRESSBank address
BANK_DETAILBAPI1011_DETAILBank details
RETURNBAPIRET2Return message

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_GETDETAIL'
  EXPORTING
    bankcountry = lv_bankcountry
    bankkey = lv_bankkey
  IMPORTING
    bank_address = lv_bank_address
    bank_detail = lv_bank_detail
    return = lv_return.

Related tables

Solutions using this function

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