SAP KKR_INITIALIZE_OBJ_BUFFER Function Module for
KKR_INITIALIZE_OBJ_BUFFER is a standard kkr initialize obj buffer SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 kkr initialize obj buffer FM, simply by entering the name KKR_INITIALIZE_OBJ_BUFFER into the relevant SAP transaction such as SE37 or SE38.
Function Group: KKRB
Program Name: SAPLKKRB
Main Program: SAPLKKRB
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function KKR_INITIALIZE_OBJ_BUFFER 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 'KKR_INITIALIZE_OBJ_BUFFER'".
EXPORTING
HIART = "Hierarchy type
HIEID = "Hierarchy ID
* INDX_READ = ' ' "Indicator: reading from INDX
* INDX_WRITE = ' ' "Indicator: writing into INDX
* MSG_POINT = ' ' "Indicator: output of message points
ROOT_HIEBG = "Root node of the summarization hierarchy
IMPORTING
FIRST_HIEBG = "Start node for rollup (first summarization node)
EXCEPTIONS
BUFFER_IS_EMPTY = 1 NO_KOKRS = 2 AUSP_NOT_GENERATED = 3
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLKKRB_001 User Exit After Selection for Summarization (Objects and Hierarchy Codes)
IMPORTING Parameters details for KKR_INITIALIZE_OBJ_BUFFER
HIART - Hierarchy type
Data type: TKKR0-HIARTOptional: No
Call by Reference: No ( called with pass by value option)
HIEID - Hierarchy ID
Data type: TKKR0-IDENTOptional: No
Call by Reference: No ( called with pass by value option)
INDX_READ - Indicator: reading from INDX
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
INDX_WRITE - Indicator: writing into INDX
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MSG_POINT - Indicator: output of message points
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
ROOT_HIEBG - Root node of the summarization hierarchy
Data type: CKRCO-VARHIEBGOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for KKR_INITIALIZE_OBJ_BUFFER
FIRST_HIEBG - Start node for rollup (first summarization node)
Data type: CKRCO-VARHIEBGOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
BUFFER_IS_EMPTY - Buffer is empty
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_KOKRS - No controlling area has been specified
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
AUSP_NOT_GENERATED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for KKR_INITIALIZE_OBJ_BUFFER 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_hiart | TYPE TKKR0-HIART, " | |||
| lv_first_hiebg | TYPE CKRCO-VARHIEBG, " | |||
| lv_buffer_is_empty | TYPE CKRCO, " | |||
| lv_hieid | TYPE TKKR0-IDENT, " | |||
| lv_no_kokrs | TYPE TKKR0, " | |||
| lv_indx_read | TYPE TKKR0, " SPACE | |||
| lv_ausp_not_generated | TYPE TKKR0, " | |||
| lv_indx_write | TYPE TKKR0, " SPACE | |||
| lv_msg_point | TYPE TKKR0, " SPACE | |||
| lv_root_hiebg | TYPE CKRCO-VARHIEBG. " |
|   CALL FUNCTION 'KKR_INITIALIZE_OBJ_BUFFER' " |
| EXPORTING | ||
| HIART | = lv_hiart | |
| HIEID | = lv_hieid | |
| INDX_READ | = lv_indx_read | |
| INDX_WRITE | = lv_indx_write | |
| MSG_POINT | = lv_msg_point | |
| ROOT_HIEBG | = lv_root_hiebg | |
| IMPORTING | ||
| FIRST_HIEBG | = lv_first_hiebg | |
| EXCEPTIONS | ||
| BUFFER_IS_EMPTY = 1 | ||
| NO_KOKRS = 2 | ||
| AUSP_NOT_GENERATED = 3 | ||
| . " KKR_INITIALIZE_OBJ_BUFFER | ||
ABAP code using 7.40 inline data declarations to call FM KKR_INITIALIZE_OBJ_BUFFER
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 HIART FROM TKKR0 INTO @DATA(ld_hiart). | ||||
| "SELECT single VARHIEBG FROM CKRCO INTO @DATA(ld_first_hiebg). | ||||
| "SELECT single IDENT FROM TKKR0 INTO @DATA(ld_hieid). | ||||
| DATA(ld_indx_read) | = ' '. | |||
| DATA(ld_indx_write) | = ' '. | |||
| DATA(ld_msg_point) | = ' '. | |||
| "SELECT single VARHIEBG FROM CKRCO INTO @DATA(ld_root_hiebg). | ||||
Search for further information about these or an SAP related objects