SAP CHECK_BANK_ADDRESS Function Module for Check Bank Data









CHECK_BANK_ADDRESS is a standard check bank address SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Check Bank Data processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for check bank address FM, simply by entering the name CHECK_BANK_ADDRESS into the relevant SAP transaction such as SE37 or SE38.

Function Group: BANK
Program Name: SAPLBANK
Main Program: SAPLBANK
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CHECK_BANK_ADDRESS pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'CHECK_BANK_ADDRESS'"Check Bank Data
EXPORTING
BANK_COUNTRY = "Bank Country
BANK_NUMBER = "Bank number
* I_KNBK = "Bank details
* I_CREATE_POPUP = 'X' "Dialog Box for Creation Process
* I_SUPPRESS_MESSAGE = ' ' "Suppress Error Message for Banks With Deletion Flag

IMPORTING
BNKA_WA = "Bank data
DATA_EDITED = "Bank Was Processed (Added)

EXCEPTIONS
INSERT_CANCELLED = 1 NOT_EXISTING_INTERNAL_NUMBER = 2 NO_AUTHORITY = 3 BANK_DOES_NOT_EXIST = 4 COUNTRY_NOT_VALID = 5
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLBANK_001 Check of bank account number: User exit for checking entries

IMPORTING Parameters details for CHECK_BANK_ADDRESS

BANK_COUNTRY - Bank Country

Data type: BNKA-BANKS
Optional: No
Call by Reference: No ( called with pass by value option)

BANK_NUMBER - Bank number

Data type: BNKA-BANKL
Optional: No
Call by Reference: No ( called with pass by value option)

I_KNBK - Bank details

Data type: KNBK_BF
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CREATE_POPUP - Dialog Box for Creation Process

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SUPPRESS_MESSAGE - Suppress Error Message for Banks With Deletion Flag

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for CHECK_BANK_ADDRESS

BNKA_WA - Bank data

Data type: BNKA
Optional: No
Call by Reference: No ( called with pass by value option)

DATA_EDITED - Bank Was Processed (Added)

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

INSERT_CANCELLED - Bank Data Missing, INSERT Cancelled

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NOT_EXISTING_INTERNAL_NUMBER - Bank With Internal Bank Key Does not Exist

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_AUTHORITY -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

BANK_DOES_NOT_EXIST - Bank Does Not Exist

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

COUNTRY_NOT_VALID - Bank Country Not Valid

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CHECK_BANK_ADDRESS Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_bnka_wa  TYPE BNKA, "   
lv_bank_country  TYPE BNKA-BANKS, "   
lv_insert_cancelled  TYPE BNKA, "   
lv_bank_number  TYPE BNKA-BANKL, "   
lv_data_edited  TYPE C, "   
lv_not_existing_internal_number  TYPE C, "   
lv_i_knbk  TYPE KNBK_BF, "   
lv_no_authority  TYPE KNBK_BF, "   
lv_i_create_popup  TYPE C, "   'X'
lv_bank_does_not_exist  TYPE C, "   
lv_country_not_valid  TYPE C, "   
lv_i_suppress_message  TYPE C. "   SPACE

  CALL FUNCTION 'CHECK_BANK_ADDRESS'  "Check Bank Data
    EXPORTING
         BANK_COUNTRY = lv_bank_country
         BANK_NUMBER = lv_bank_number
         I_KNBK = lv_i_knbk
         I_CREATE_POPUP = lv_i_create_popup
         I_SUPPRESS_MESSAGE = lv_i_suppress_message
    IMPORTING
         BNKA_WA = lv_bnka_wa
         DATA_EDITED = lv_data_edited
    EXCEPTIONS
        INSERT_CANCELLED = 1
        NOT_EXISTING_INTERNAL_NUMBER = 2
        NO_AUTHORITY = 3
        BANK_DOES_NOT_EXIST = 4
        COUNTRY_NOT_VALID = 5
. " CHECK_BANK_ADDRESS




ABAP code using 7.40 inline data declarations to call FM CHECK_BANK_ADDRESS

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
"SELECT single BANKS FROM BNKA INTO @DATA(ld_bank_country).
 
 
"SELECT single BANKL FROM BNKA INTO @DATA(ld_bank_number).
 
 
 
 
 
DATA(ld_i_create_popup) = 'X'.
 
 
 
DATA(ld_i_suppress_message) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!