SAP BKK_ACCNT_STAT_INSERT Function Module for BCA: Save Bank Statement Data in Database
BKK_ACCNT_STAT_INSERT is a standard bkk accnt stat 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 BCA: Save Bank Statement Data in Database 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 bkk accnt stat insert FM, simply by entering the name BKK_ACCNT_STAT_INSERT into the relevant SAP transaction such as SE37 or SE38.
Function Group: FBM1
Program Name: SAPLFBM1
Main Program: SAPLFBM1
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BKK_ACCNT_STAT_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 'BKK_ACCNT_STAT_INSERT'"BCA: Save Bank Statement Data in Database.
EXPORTING
* I_PROCESSING_STATUS = G_CON_BKST_NOOUT "Processing Status of Bank Statement
I_TAB_ACCOUNTS = "List of Accounts for Which Statements were Created
* I_FLG_BKST_NOITEMS = ' ' "'X': Statements without Turnovers
* I_FLG_NO_COMMIT = ' ' "'X': No Rollback When Error Occurs
* I_RUNKEY = "Key Fields of a Mass Run
* I_CURRSTARTNO = "Number of Repeated Mass Run Starts
EXCEPTIONS
INSERT_FAILED = 1
IMPORTING Parameters details for BKK_ACCNT_STAT_INSERT
I_PROCESSING_STATUS - Processing Status of Bank Statement
Data type: BKKM1-BKSTSTATUSDefault: G_CON_BKST_NOOUT
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TAB_ACCOUNTS - List of Accounts for Which Statements were Created
Data type: BKKD_TAB_BKKRS_ACCNOINTOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_BKST_NOITEMS - 'X': Statements without Turnovers
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_NO_COMMIT - 'X': No Rollback When Error Occurs
Data type: BOOLE-BOOLEDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RUNKEY - Key Fields of a Mass Run
Data type: IBKKMRUNKEYOptional: Yes
Call by Reference: Yes
I_CURRSTARTNO - Number of Repeated Mass Run Starts
Data type: BKKD_RUNSTARTNOOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
INSERT_FAILED - Data Could Not Be Inserted In Database
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BKK_ACCNT_STAT_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_insert_failed | TYPE STRING, " | |||
| lv_i_processing_status | TYPE BKKM1-BKSTSTATUS, " G_CON_BKST_NOOUT | |||
| lv_i_tab_accounts | TYPE BKKD_TAB_BKKRS_ACCNOINT, " | |||
| lv_i_flg_bkst_noitems | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_i_flg_no_commit | TYPE BOOLE-BOOLE, " ' ' | |||
| lv_i_runkey | TYPE IBKKMRUNKEY, " | |||
| lv_i_currstartno | TYPE BKKD_RUNSTARTNO. " |
|   CALL FUNCTION 'BKK_ACCNT_STAT_INSERT' "BCA: Save Bank Statement Data in Database |
| EXPORTING | ||
| I_PROCESSING_STATUS | = lv_i_processing_status | |
| I_TAB_ACCOUNTS | = lv_i_tab_accounts | |
| I_FLG_BKST_NOITEMS | = lv_i_flg_bkst_noitems | |
| I_FLG_NO_COMMIT | = lv_i_flg_no_commit | |
| I_RUNKEY | = lv_i_runkey | |
| I_CURRSTARTNO | = lv_i_currstartno | |
| EXCEPTIONS | ||
| INSERT_FAILED = 1 | ||
| . " BKK_ACCNT_STAT_INSERT | ||
ABAP code using 7.40 inline data declarations to call FM BKK_ACCNT_STAT_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 BKSTSTATUS FROM BKKM1 INTO @DATA(ld_i_processing_status). | ||||
| DATA(ld_i_processing_status) | = G_CON_BKST_NOOUT. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_flg_bkst_noitems). | ||||
| DATA(ld_i_flg_bkst_noitems) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_flg_no_commit). | ||||
| DATA(ld_i_flg_no_commit) | = ' '. | |||
Search for further information about these or an SAP related objects