SAP Function Modules

BKK_CLOSING_INC_CLOS_ID SAP Function module - BCA: Increment Year/Sequential Number







BKK_CLOSING_INC_CLOS_ID is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name BKK_CLOSING_INC_CLOS_ID into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FBM5
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM BKK_CLOSING_INC_CLOS_ID - BKK CLOSING INC CLOS ID





CALL FUNCTION 'BKK_CLOSING_INC_CLOS_ID' "BCA: Increment Year/Sequential Number
  EXPORTING
    i_curr_year_last =          " bkkm2-curr_year  Year of Last Balancing Run
    i_curr_nr_last =            " bkkm2-curr_nr  Sequential Number of Last Balancing Run
*   i_closdate = SY-DATUM       " bkkm2-next_date  Balancing Date
*   i_curr_nr_last6 =           " bkkm2-curr_nr6  Sequence Number
*   i_clostype =                " bkkm2-clos_typ  Consolidation Frequency
  IMPORTING
    e_curr_year =               " bkkm2-curr_year  Year of New Balancing Run
    e_curr_nr =                 " bkkm2-curr_nr  Sequential Number of New Balancing Run
    e_curr_nr6 =                " bkkm2-curr_nr6  Sequence Number
    .  "  BKK_CLOSING_INC_CLOS_ID

ABAP code example for Function Module BKK_CLOSING_INC_CLOS_ID





The ABAP code below is a full code listing to execute function module BKK_CLOSING_INC_CLOS_ID including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_e_curr_year  TYPE BKKM2-CURR_YEAR ,
ld_e_curr_nr  TYPE BKKM2-CURR_NR ,
ld_e_curr_nr6  TYPE BKKM2-CURR_NR6 .


SELECT single CURR_YEAR
FROM BKKM2
INTO @DATA(ld_i_curr_year_last).


SELECT single CURR_NR
FROM BKKM2
INTO @DATA(ld_i_curr_nr_last).


SELECT single NEXT_DATE
FROM BKKM2
INTO @DATA(ld_i_closdate).


SELECT single CURR_NR6
FROM BKKM2
INTO @DATA(ld_i_curr_nr_last6).


SELECT single CLOS_TYP
FROM BKKM2
INTO @DATA(ld_i_clostype).
. CALL FUNCTION 'BKK_CLOSING_INC_CLOS_ID' EXPORTING i_curr_year_last = ld_i_curr_year_last i_curr_nr_last = ld_i_curr_nr_last * i_closdate = ld_i_closdate * i_curr_nr_last6 = ld_i_curr_nr_last6 * i_clostype = ld_i_clostype IMPORTING e_curr_year = ld_e_curr_year e_curr_nr = ld_e_curr_nr e_curr_nr6 = ld_e_curr_nr6 . " BKK_CLOSING_INC_CLOS_ID
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_e_curr_year  TYPE BKKM2-CURR_YEAR ,
ld_i_curr_year_last  TYPE BKKM2-CURR_YEAR ,
ld_e_curr_nr  TYPE BKKM2-CURR_NR ,
ld_i_curr_nr_last  TYPE BKKM2-CURR_NR ,
ld_e_curr_nr6  TYPE BKKM2-CURR_NR6 ,
ld_i_closdate  TYPE BKKM2-NEXT_DATE ,
ld_i_curr_nr_last6  TYPE BKKM2-CURR_NR6 ,
ld_i_clostype  TYPE BKKM2-CLOS_TYP .


SELECT single CURR_YEAR
FROM BKKM2
INTO ld_i_curr_year_last.


SELECT single CURR_NR
FROM BKKM2
INTO ld_i_curr_nr_last.


SELECT single NEXT_DATE
FROM BKKM2
INTO ld_i_closdate.


SELECT single CURR_NR6
FROM BKKM2
INTO ld_i_curr_nr_last6.


SELECT single CLOS_TYP
FROM BKKM2
INTO ld_i_clostype.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BKK_CLOSING_INC_CLOS_ID or its description.