SAP BANK_MODIFY Function Module for Change Banks in BNKA
BANK_MODIFY is a standard bank modify SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Change Banks in BNKA 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 bank modify FM, simply by entering the name BANK_MODIFY into the relevant SAP transaction such as SE37 or SE38.
Function Group: BAUP
Program Name: SAPLBAUP
Main Program: SAPLBAUP
Appliation area: S
Release date: 26-Oct-1998
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BANK_MODIFY 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 'BANK_MODIFY'"Change Banks in BNKA.
EXPORTING
I_REAL = "Indicator: Update Run
IMPORTING
CNT_SUPDATE = "Number: Banks Changed
CNT_EUPDATE = "Number: Banks Changed (Error)
TABLES
TAB_MODIFY = "Table for Banks Changed
SUCTAB = "Table for Banks without Errors
ERRTAB = "Table for Banks Containing Errors
IMPORTING Parameters details for BANK_MODIFY
I_REAL - Indicator: Update Run
Data type: RFPDO_BF-ALLGECHTOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BANK_MODIFY
CNT_SUPDATE - Number: Banks Changed
Data type: RF02B-COUNTEROptional: No
Call by Reference: No ( called with pass by value option)
CNT_EUPDATE - Number: Banks Changed (Error)
Data type: RF02B-COUNTEROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BANK_MODIFY
TAB_MODIFY - Table for Banks Changed
Data type: BNKAOptional: No
Call by Reference: No ( called with pass by value option)
SUCTAB - Table for Banks without Errors
Data type: SUC_AND_ERR_TABSOptional: No
Call by Reference: No ( called with pass by value option)
ERRTAB - Table for Banks Containing Errors
Data type: SUC_AND_ERR_TABSOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BANK_MODIFY 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_i_real | TYPE RFPDO_BF-ALLGECHT, " | |||
| lt_tab_modify | TYPE STANDARD TABLE OF BNKA, " | |||
| lv_cnt_supdate | TYPE RF02B-COUNTER, " | |||
| lt_suctab | TYPE STANDARD TABLE OF SUC_AND_ERR_TABS, " | |||
| lv_cnt_eupdate | TYPE RF02B-COUNTER, " | |||
| lt_errtab | TYPE STANDARD TABLE OF SUC_AND_ERR_TABS. " |
|   CALL FUNCTION 'BANK_MODIFY' "Change Banks in BNKA |
| EXPORTING | ||
| I_REAL | = lv_i_real | |
| IMPORTING | ||
| CNT_SUPDATE | = lv_cnt_supdate | |
| CNT_EUPDATE | = lv_cnt_eupdate | |
| TABLES | ||
| TAB_MODIFY | = lt_tab_modify | |
| SUCTAB | = lt_suctab | |
| ERRTAB | = lt_errtab | |
| . " BANK_MODIFY | ||
ABAP code using 7.40 inline data declarations to call FM BANK_MODIFY
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 ALLGECHT FROM RFPDO_BF INTO @DATA(ld_i_real). | ||||
| "SELECT single COUNTER FROM RF02B INTO @DATA(ld_cnt_supdate). | ||||
| "SELECT single COUNTER FROM RF02B INTO @DATA(ld_cnt_eupdate). | ||||
Search for further information about these or an SAP related objects