SAP BKK_CLOSING_INIT_YEAR_NUM Function Module for BCA: Initialize Year/Sequential Number for Balancing









BKK_CLOSING_INIT_YEAR_NUM is a standard bkk closing init year num 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: Initialize Year/Sequential Number for Balancing 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 closing init year num FM, simply by entering the name BKK_CLOSING_INIT_YEAR_NUM into the relevant SAP transaction such as SE37 or SE38.

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



Function BKK_CLOSING_INIT_YEAR_NUM 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_CLOSING_INIT_YEAR_NUM'"BCA: Initialize Year/Sequential Number for Balancing
EXPORTING
I_BKKRS = "Bank Area
I_ACCNOINT = "Internal Account Number
I_CLOS_TYP = "Balancing Type
I_NEXT_DATE = "Next Due Date

IMPORTING
E_CURR_YEAR = "Year
E_CURR_NR = "Sequential Number
E_CURR_NR6 = "Sequence Number
.



IMPORTING Parameters details for BKK_CLOSING_INIT_YEAR_NUM

I_BKKRS - Bank Area

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

I_ACCNOINT - Internal Account Number

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

I_CLOS_TYP - Balancing Type

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

I_NEXT_DATE - Next Due Date

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

EXPORTING Parameters details for BKK_CLOSING_INIT_YEAR_NUM

E_CURR_YEAR - Year

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

E_CURR_NR - Sequential Number

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

E_CURR_NR6 - Sequence Number

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

Copy and paste ABAP code example for BKK_CLOSING_INIT_YEAR_NUM 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_bkkrs  TYPE BKKM2-BKKRS, "   
lv_e_curr_year  TYPE BKKM2-CURR_YEAR, "   
lv_e_curr_nr  TYPE BKKM2-CURR_NR, "   
lv_i_accnoint  TYPE BKKM2-ACNUM_INT, "   
lv_e_curr_nr6  TYPE BKKM2-CURR_NR6, "   
lv_i_clos_typ  TYPE BKKM2-CLOS_TYP, "   
lv_i_next_date  TYPE BKKM2-NEXT_DATE. "   

  CALL FUNCTION 'BKK_CLOSING_INIT_YEAR_NUM'  "BCA: Initialize Year/Sequential Number for Balancing
    EXPORTING
         I_BKKRS = lv_i_bkkrs
         I_ACCNOINT = lv_i_accnoint
         I_CLOS_TYP = lv_i_clos_typ
         I_NEXT_DATE = lv_i_next_date
    IMPORTING
         E_CURR_YEAR = lv_e_curr_year
         E_CURR_NR = lv_e_curr_nr
         E_CURR_NR6 = lv_e_curr_nr6
. " BKK_CLOSING_INIT_YEAR_NUM




ABAP code using 7.40 inline data declarations to call FM BKK_CLOSING_INIT_YEAR_NUM

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 BKKRS FROM BKKM2 INTO @DATA(ld_i_bkkrs).
 
"SELECT single CURR_YEAR FROM BKKM2 INTO @DATA(ld_e_curr_year).
 
"SELECT single CURR_NR FROM BKKM2 INTO @DATA(ld_e_curr_nr).
 
"SELECT single ACNUM_INT FROM BKKM2 INTO @DATA(ld_i_accnoint).
 
"SELECT single CURR_NR6 FROM BKKM2 INTO @DATA(ld_e_curr_nr6).
 
"SELECT single CLOS_TYP FROM BKKM2 INTO @DATA(ld_i_clos_typ).
 
"SELECT single NEXT_DATE FROM BKKM2 INTO @DATA(ld_i_next_date).
 


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!