SAP BKK_CLOSING_SET_GLOBAL_MEMORY Function Module for Write Data to Global Memory









BKK_CLOSING_SET_GLOBAL_MEMORY is a standard bkk closing set global memory SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Write Data to Global Memory 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 set global memory FM, simply by entering the name BKK_CLOSING_SET_GLOBAL_MEMORY into the relevant SAP transaction such as SE37 or SE38.

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



Function BKK_CLOSING_SET_GLOBAL_MEMORY 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_SET_GLOBAL_MEMORY'"Write Data to Global Memory
EXPORTING
I_BKKRS = "Bank Area
I_ACNUM_INT = "Internal Account Number for Current Account
I_CLOSTYPE = "Balancing Type
* I_YEAR = "Current Year
* I_NUMBER = "Sequential Number
* I_NUMBER6 = "Sequence Number
.



IMPORTING Parameters details for BKK_CLOSING_SET_GLOBAL_MEMORY

I_BKKRS - Bank Area

Data type: BKKM2-BKKRS
Optional: No
Call by Reference: Yes

I_ACNUM_INT - Internal Account Number for Current Account

Data type: BKKM2-ACNUM_INT
Optional: No
Call by Reference: Yes

I_CLOSTYPE - Balancing Type

Data type: BKKM2-CLOS_TYP
Optional: No
Call by Reference: Yes

I_YEAR - Current Year

Data type: BKKM2-CURR_YEAR
Optional: Yes
Call by Reference: Yes

I_NUMBER - Sequential Number

Data type: BKKM2-CURR_NR
Optional: Yes
Call by Reference: Yes

I_NUMBER6 - Sequence Number

Data type: BKKM2-CURR_NR6
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for BKK_CLOSING_SET_GLOBAL_MEMORY 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_i_acnum_int  TYPE BKKM2-ACNUM_INT, "   
lv_i_clostype  TYPE BKKM2-CLOS_TYP, "   
lv_i_year  TYPE BKKM2-CURR_YEAR, "   
lv_i_number  TYPE BKKM2-CURR_NR, "   
lv_i_number6  TYPE BKKM2-CURR_NR6. "   

  CALL FUNCTION 'BKK_CLOSING_SET_GLOBAL_MEMORY'  "Write Data to Global Memory
    EXPORTING
         I_BKKRS = lv_i_bkkrs
         I_ACNUM_INT = lv_i_acnum_int
         I_CLOSTYPE = lv_i_clostype
         I_YEAR = lv_i_year
         I_NUMBER = lv_i_number
         I_NUMBER6 = lv_i_number6
. " BKK_CLOSING_SET_GLOBAL_MEMORY




ABAP code using 7.40 inline data declarations to call FM BKK_CLOSING_SET_GLOBAL_MEMORY

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 ACNUM_INT FROM BKKM2 INTO @DATA(ld_i_acnum_int).
 
"SELECT single CLOS_TYP FROM BKKM2 INTO @DATA(ld_i_clostype).
 
"SELECT single CURR_YEAR FROM BKKM2 INTO @DATA(ld_i_year).
 
"SELECT single CURR_NR FROM BKKM2 INTO @DATA(ld_i_number).
 
"SELECT single CURR_NR6 FROM BKKM2 INTO @DATA(ld_i_number6).
 


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!