SAP BANK_INSERT Function Module for Create New Banks in BNKA









BANK_INSERT is a standard bank insert SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create New 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 insert FM, simply by entering the name BANK_INSERT 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_INSERT 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_INSERT'"Create New Banks in BNKA
EXPORTING
I_REAL = "Indicator: Update Run

IMPORTING
CNT_SINSERT = "Number: Banks Created
CNT_EINSERT = "Number: Banks Created (Error)

TABLES
TAB_INSERT = "Table for Banks Created
SUCTAB = "Table for Banks without Errors
ERRTAB = "Table for Banks Containing Errors
.



IMPORTING Parameters details for BANK_INSERT

I_REAL - Indicator: Update Run

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

EXPORTING Parameters details for BANK_INSERT

CNT_SINSERT - Number: Banks Created

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

CNT_EINSERT - Number: Banks Created (Error)

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

TABLES Parameters details for BANK_INSERT

TAB_INSERT - Table for Banks Created

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

SUCTAB - Table for Banks without Errors

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

ERRTAB - Table for Banks Containing Errors

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

Copy and paste ABAP code example for BANK_INSERT 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_insert  TYPE STANDARD TABLE OF BNKA, "   
lv_cnt_sinsert  TYPE RF02B-COUNTER, "   
lt_suctab  TYPE STANDARD TABLE OF SUC_AND_ERR_TABS, "   
lv_cnt_einsert  TYPE RF02B-COUNTER, "   
lt_errtab  TYPE STANDARD TABLE OF SUC_AND_ERR_TABS. "   

  CALL FUNCTION 'BANK_INSERT'  "Create New Banks in BNKA
    EXPORTING
         I_REAL = lv_i_real
    IMPORTING
         CNT_SINSERT = lv_cnt_sinsert
         CNT_EINSERT = lv_cnt_einsert
    TABLES
         TAB_INSERT = lt_tab_insert
         SUCTAB = lt_suctab
         ERRTAB = lt_errtab
. " BANK_INSERT




ABAP code using 7.40 inline data declarations to call FM BANK_INSERT

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


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!