SAP BKK_ACCNT_STAT_PREPARE Function Module for BCA: Prepare New Bank Statements









BKK_ACCNT_STAT_PREPARE is a standard bkk accnt stat prepare 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: Prepare New Bank Statements 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 prepare FM, simply by entering the name BKK_ACCNT_STAT_PREPARE into the relevant SAP transaction such as SE37 or SE38.

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



Function BKK_ACCNT_STAT_PREPARE 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_PREPARE'"BCA: Prepare New Bank Statements
EXPORTING
* I_BKSTATDATE = SY-DATUM "Date of Bank Statements
* I_BKSTATTIME = SY-UZEIT "Time of Bank Statements
* I_BKSTITEMDATE = "Posting Date To
I_TAB_LASTBKSTAT = "List of Statements Last Created
* I_TRACE = "Log Category
* I_FLG_BKST_NOITEMS = ' ' "
* I_FLG_NO_TIME_DELAY = ' ' "

IMPORTING
E_TAB_NEWBKSTAT = "List of Successfully Prepared Statements
E_TAB_ERRBKSTAT = "List of Incorrect Statement Creations
E_TAB_NOITEMS = "List of Statements without Turnover Items
E_TAB_NO_RESTART = "
E_TAB_NOT_COMPLETE = "List of Statements with Too Many Items
.



IMPORTING Parameters details for BKK_ACCNT_STAT_PREPARE

I_BKSTATDATE - Date of Bank Statements

Data type: IBKK_BKST-ACCSTATDAT
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BKSTATTIME - Time of Bank Statements

Data type: IBKK_BKST-ACCSTTIME
Default: SY-UZEIT
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BKSTITEMDATE - Posting Date To

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

I_TAB_LASTBKSTAT - List of Statements Last Created

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

I_TRACE - Log Category

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

I_FLG_BKST_NOITEMS -

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

I_FLG_NO_TIME_DELAY -

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

EXPORTING Parameters details for BKK_ACCNT_STAT_PREPARE

E_TAB_NEWBKSTAT - List of Successfully Prepared Statements

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

E_TAB_ERRBKSTAT - List of Incorrect Statement Creations

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

E_TAB_NOITEMS - List of Statements without Turnover Items

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

E_TAB_NO_RESTART -

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

E_TAB_NOT_COMPLETE - List of Statements with Too Many Items

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

Copy and paste ABAP code example for BKK_ACCNT_STAT_PREPARE 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_bkstatdate  TYPE IBKK_BKST-ACCSTATDAT, "   SY-DATUM
lv_e_tab_newbkstat  TYPE BKKD_TAB_BKST_KEY, "   
lv_i_bkstattime  TYPE IBKK_BKST-ACCSTTIME, "   SY-UZEIT
lv_e_tab_errbkstat  TYPE BKKD_TAB_BKST_KEY, "   
lv_e_tab_noitems  TYPE BKKD_TAB_BKST_KEY, "   
lv_i_bkstitemdate  TYPE IBKK_BKST-SDATEPOSTH, "   
lv_e_tab_no_restart  TYPE BKKD_TAB_BKST_KEY, "   
lv_i_tab_lastbkstat  TYPE BKKD_TAB_BKST_KEY, "   
lv_i_trace  TYPE IBKKM10-TRACE, "   
lv_e_tab_not_complete  TYPE BKKD_TAB_BKST_KEY, "   
lv_i_flg_bkst_noitems  TYPE BOOLE-BOOLE, "   ' '
lv_i_flg_no_time_delay  TYPE BOOLE-BOOLE. "   ' '

  CALL FUNCTION 'BKK_ACCNT_STAT_PREPARE'  "BCA: Prepare New Bank Statements
    EXPORTING
         I_BKSTATDATE = lv_i_bkstatdate
         I_BKSTATTIME = lv_i_bkstattime
         I_BKSTITEMDATE = lv_i_bkstitemdate
         I_TAB_LASTBKSTAT = lv_i_tab_lastbkstat
         I_TRACE = lv_i_trace
         I_FLG_BKST_NOITEMS = lv_i_flg_bkst_noitems
         I_FLG_NO_TIME_DELAY = lv_i_flg_no_time_delay
    IMPORTING
         E_TAB_NEWBKSTAT = lv_e_tab_newbkstat
         E_TAB_ERRBKSTAT = lv_e_tab_errbkstat
         E_TAB_NOITEMS = lv_e_tab_noitems
         E_TAB_NO_RESTART = lv_e_tab_no_restart
         E_TAB_NOT_COMPLETE = lv_e_tab_not_complete
. " BKK_ACCNT_STAT_PREPARE




ABAP code using 7.40 inline data declarations to call FM BKK_ACCNT_STAT_PREPARE

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 ACCSTATDAT FROM IBKK_BKST INTO @DATA(ld_i_bkstatdate).
DATA(ld_i_bkstatdate) = SY-DATUM.
 
 
"SELECT single ACCSTTIME FROM IBKK_BKST INTO @DATA(ld_i_bkstattime).
DATA(ld_i_bkstattime) = SY-UZEIT.
 
 
 
"SELECT single SDATEPOSTH FROM IBKK_BKST INTO @DATA(ld_i_bkstitemdate).
 
 
 
"SELECT single TRACE FROM IBKKM10 INTO @DATA(ld_i_trace).
 
 
"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_time_delay).
DATA(ld_i_flg_no_time_delay) = ' '.
 


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!