SAP BANK_PROCESS Function Module for Sort Banks: Insert, Delete, Change









BANK_PROCESS is a standard bank process SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Sort Banks: Insert, Delete, Change 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 process FM, simply by entering the name BANK_PROCESS 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_PROCESS 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_PROCESS'"Sort Banks: Insert, Delete, Change
EXPORTING
I_BANKS = "Bank Country

IMPORTING
CNT_SNOMODI = "Number of: Unchanged Banks
CNT_BANKCODE = "Number of: Main Banks

TABLES
ITAB_BNKA = "Table for Unsorted Banks
DBNKA = "Banks from Table BNKA
TAB_INSERT = "Table for Banks Created
TAB_DELETE = "Table for Banks Marked for Deletion
TAB_MODIFY = "Table for Banks Changed
TAB_NOMODI = "
.



IMPORTING Parameters details for BANK_PROCESS

I_BANKS - Bank Country

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

EXPORTING Parameters details for BANK_PROCESS

CNT_SNOMODI - Number of: Unchanged Banks

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

CNT_BANKCODE - Number of: Main Banks

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

TABLES Parameters details for BANK_PROCESS

ITAB_BNKA - Table for Unsorted Banks

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

DBNKA - Banks from Table BNKA

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

TAB_INSERT - Table for Banks Created

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

TAB_DELETE - Table for Banks Marked for Deletion

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

TAB_MODIFY - Table for Banks Changed

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

TAB_NOMODI -

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

Copy and paste ABAP code example for BANK_PROCESS 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_banks  TYPE BNKA-BANKS, "   
lt_itab_bnka  TYPE STANDARD TABLE OF BNKA, "   
lv_cnt_snomodi  TYPE RF02B-COUNTER, "   
lt_dbnka  TYPE STANDARD TABLE OF BNKA, "   
lv_cnt_bankcode  TYPE RF02B-COUNTER, "   
lt_tab_insert  TYPE STANDARD TABLE OF BNKA, "   
lt_tab_delete  TYPE STANDARD TABLE OF BNKA, "   
lt_tab_modify  TYPE STANDARD TABLE OF BNKA, "   
lt_tab_nomodi  TYPE STANDARD TABLE OF BNKA. "   

  CALL FUNCTION 'BANK_PROCESS'  "Sort Banks: Insert, Delete, Change
    EXPORTING
         I_BANKS = lv_i_banks
    IMPORTING
         CNT_SNOMODI = lv_cnt_snomodi
         CNT_BANKCODE = lv_cnt_bankcode
    TABLES
         ITAB_BNKA = lt_itab_bnka
         DBNKA = lt_dbnka
         TAB_INSERT = lt_tab_insert
         TAB_DELETE = lt_tab_delete
         TAB_MODIFY = lt_tab_modify
         TAB_NOMODI = lt_tab_nomodi
. " BANK_PROCESS




ABAP code using 7.40 inline data declarations to call FM BANK_PROCESS

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_i_banks).
 
 
"SELECT single COUNTER FROM RF02B INTO @DATA(ld_cnt_snomodi).
 
 
"SELECT single COUNTER FROM RF02B INTO @DATA(ld_cnt_bankcode).
 
 
 
 
 


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!