SAP K_KKR_SUMMARIZATION_TREE Function Module for
K_KKR_SUMMARIZATION_TREE is a standard k kkr summarization tree 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 k kkr summarization tree FM, simply by entering the name K_KKR_SUMMARIZATION_TREE into the relevant SAP transaction such as SE37 or SE38.
Function Group: KKRS
Program Name: SAPLKKRS
Main Program: SAPLKKRS
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function K_KKR_SUMMARIZATION_TREE 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 'K_KKR_SUMMARIZATION_TREE'".
EXPORTING
I_HIART = "Hierarchy Type
* I_ENDCOL = 70 "
* I_ANWEND = '1' "Application
* I_CHOICE_J = 'X' "
* I_CHOICE_P = 'X' "
* I_CHOICE_K = 'X' "
* I_KST = ' ' "
* I_RGJNR = ' ' "
* I_VALUTYP = '0' "Valuation View
* I_HIEID = ' ' "
I_KOKRS = "Controlling Area
* I_THIER = ' ' "Subhierarchy
* I_STATUS = '0' "
* I_WINDOW = 'X' "
* I_BEGROW = 5 "
* I_BEGCOL = 10 "
* I_ENDROW = 30 "
IMPORTING
E_MODIFY = "
E_F15 = "
E_ABBRUCH = "
E_VARHIBG = "
CHANGING
* T_VDCO = "
TABLES
* GLOBALS = "
EXCEPTIONS
NO_VDCO_OBJECT_FOUND = 1 TOO_MANY_HIERARCHY_FIELDS = 10 WRONG_HIERARCHY_STRUCTURE = 11 OTHER_ERRORS = 12 HIER_TERM_IS_INITIAL = 2 HIER_TERM_TOO_LONG = 3 INVALID_HIEBG = 4 SUBTERM_IS_INITIAL = 5 FIRST_FIELD_IS_NOT_KOKRS = 6 HIERARCHY_IS_EMPTY = 7 HIERARCHY_NOT_DEFINED = 8 LENGTH_OF_HIERARCHY_TOO_LONG = 9
IMPORTING Parameters details for K_KKR_SUMMARIZATION_TREE
I_HIART - Hierarchy Type
Data type: CKRCO-HIARTOptional: No
Call by Reference: No ( called with pass by value option)
I_ENDCOL -
Data type: IDefault: 70
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ANWEND - Application
Data type: TKKB1-ANWDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CHOICE_J -
Data type: TKKB1-OBJDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CHOICE_P -
Data type: TKKB1-OBJDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CHOICE_K -
Data type: TKKB1-OBJDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KST -
Data type: TKKB2-KSTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RGJNR -
Data type: TKKB1-BGRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VALUTYP - Valuation View
Data type: VALUTYPDefault: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_HIEID -
Data type: CKRCO-HIEIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KOKRS - Controlling Area
Data type: TKA01-KOKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_THIER - Subhierarchy
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_STATUS -
Data type:Default: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_WINDOW -
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BEGROW -
Data type: IDefault: 5
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BEGCOL -
Data type: IDefault: 10
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ENDROW -
Data type: IDefault: 30
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for K_KKR_SUMMARIZATION_TREE
E_MODIFY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
E_F15 -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
E_ABBRUCH -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
E_VARHIBG -
Data type: CKRCO-VARHIEBGOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for K_KKR_SUMMARIZATION_TREE
T_VDCO -
Data type: KKR01_VDTBL01Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for K_KKR_SUMMARIZATION_TREE
GLOBALS -
Data type: KKB2Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_VDCO_OBJECT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TOO_MANY_HIERARCHY_FIELDS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_HIERARCHY_STRUCTURE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OTHER_ERRORS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
HIER_TERM_IS_INITIAL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
HIER_TERM_TOO_LONG -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_HIEBG -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SUBTERM_IS_INITIAL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FIRST_FIELD_IS_NOT_KOKRS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
HIERARCHY_IS_EMPTY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
HIERARCHY_NOT_DEFINED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
LENGTH_OF_HIERARCHY_TOO_LONG -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for K_KKR_SUMMARIZATION_TREE 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_t_vdco | TYPE KKR01_VDTBL01, " | |||
| lt_globals | TYPE STANDARD TABLE OF KKB2, " | |||
| lv_i_hiart | TYPE CKRCO-HIART, " | |||
| lv_e_modify | TYPE CKRCO, " | |||
| lv_no_vdco_object_found | TYPE CKRCO, " | |||
| lv_i_endcol | TYPE I, " 70 | |||
| lv_too_many_hierarchy_fields | TYPE I, " | |||
| lv_i_anwend | TYPE TKKB1-ANW, " '1' | |||
| lv_wrong_hierarchy_structure | TYPE TKKB1, " | |||
| lv_i_choice_j | TYPE TKKB1-OBJ, " 'X' | |||
| lv_other_errors | TYPE TKKB1, " | |||
| lv_i_choice_p | TYPE TKKB1-OBJ, " 'X' | |||
| lv_i_choice_k | TYPE TKKB1-OBJ, " 'X' | |||
| lv_i_kst | TYPE TKKB2-KST, " SPACE | |||
| lv_i_rgjnr | TYPE TKKB1-BGR, " SPACE | |||
| lv_i_valutyp | TYPE VALUTYP, " '0' | |||
| lv_e_f15 | TYPE VALUTYP, " | |||
| lv_i_hieid | TYPE CKRCO-HIEID, " SPACE | |||
| lv_hier_term_is_initial | TYPE CKRCO, " | |||
| lv_i_kokrs | TYPE TKA01-KOKRS, " | |||
| lv_e_abbruch | TYPE TKA01, " | |||
| lv_hier_term_too_long | TYPE TKA01, " | |||
| lv_i_thier | TYPE TKA01, " SPACE | |||
| lv_e_varhibg | TYPE CKRCO-VARHIEBG, " | |||
| lv_invalid_hiebg | TYPE CKRCO, " | |||
| lv_i_status | TYPE CKRCO, " '0' | |||
| lv_subterm_is_initial | TYPE CKRCO, " | |||
| lv_i_window | TYPE CKRCO, " 'X' | |||
| lv_first_field_is_not_kokrs | TYPE CKRCO, " | |||
| lv_i_begrow | TYPE I, " 5 | |||
| lv_hierarchy_is_empty | TYPE I, " | |||
| lv_i_begcol | TYPE I, " 10 | |||
| lv_hierarchy_not_defined | TYPE I, " | |||
| lv_i_endrow | TYPE I, " 30 | |||
| lv_length_of_hierarchy_too_long | TYPE I. " |
|   CALL FUNCTION 'K_KKR_SUMMARIZATION_TREE' " |
| EXPORTING | ||
| I_HIART | = lv_i_hiart | |
| I_ENDCOL | = lv_i_endcol | |
| I_ANWEND | = lv_i_anwend | |
| I_CHOICE_J | = lv_i_choice_j | |
| I_CHOICE_P | = lv_i_choice_p | |
| I_CHOICE_K | = lv_i_choice_k | |
| I_KST | = lv_i_kst | |
| I_RGJNR | = lv_i_rgjnr | |
| I_VALUTYP | = lv_i_valutyp | |
| I_HIEID | = lv_i_hieid | |
| I_KOKRS | = lv_i_kokrs | |
| I_THIER | = lv_i_thier | |
| I_STATUS | = lv_i_status | |
| I_WINDOW | = lv_i_window | |
| I_BEGROW | = lv_i_begrow | |
| I_BEGCOL | = lv_i_begcol | |
| I_ENDROW | = lv_i_endrow | |
| IMPORTING | ||
| E_MODIFY | = lv_e_modify | |
| E_F15 | = lv_e_f15 | |
| E_ABBRUCH | = lv_e_abbruch | |
| E_VARHIBG | = lv_e_varhibg | |
| CHANGING | ||
| T_VDCO | = lv_t_vdco | |
| TABLES | ||
| GLOBALS | = lt_globals | |
| EXCEPTIONS | ||
| NO_VDCO_OBJECT_FOUND = 1 | ||
| TOO_MANY_HIERARCHY_FIELDS = 10 | ||
| WRONG_HIERARCHY_STRUCTURE = 11 | ||
| OTHER_ERRORS = 12 | ||
| HIER_TERM_IS_INITIAL = 2 | ||
| HIER_TERM_TOO_LONG = 3 | ||
| INVALID_HIEBG = 4 | ||
| SUBTERM_IS_INITIAL = 5 | ||
| FIRST_FIELD_IS_NOT_KOKRS = 6 | ||
| HIERARCHY_IS_EMPTY = 7 | ||
| HIERARCHY_NOT_DEFINED = 8 | ||
| LENGTH_OF_HIERARCHY_TOO_LONG = 9 | ||
| . " K_KKR_SUMMARIZATION_TREE | ||
ABAP code using 7.40 inline data declarations to call FM K_KKR_SUMMARIZATION_TREE
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 CKRCO INTO @DATA(ld_i_hiart). | ||||
| DATA(ld_i_endcol) | = 70. | |||
| "SELECT single ANW FROM TKKB1 INTO @DATA(ld_i_anwend). | ||||
| DATA(ld_i_anwend) | = '1'. | |||
| "SELECT single OBJ FROM TKKB1 INTO @DATA(ld_i_choice_j). | ||||
| DATA(ld_i_choice_j) | = 'X'. | |||
| "SELECT single OBJ FROM TKKB1 INTO @DATA(ld_i_choice_p). | ||||
| DATA(ld_i_choice_p) | = 'X'. | |||
| "SELECT single OBJ FROM TKKB1 INTO @DATA(ld_i_choice_k). | ||||
| DATA(ld_i_choice_k) | = 'X'. | |||
| "SELECT single KST FROM TKKB2 INTO @DATA(ld_i_kst). | ||||
| DATA(ld_i_kst) | = ' '. | |||
| "SELECT single BGR FROM TKKB1 INTO @DATA(ld_i_rgjnr). | ||||
| DATA(ld_i_rgjnr) | = ' '. | |||
| DATA(ld_i_valutyp) | = '0'. | |||
| "SELECT single HIEID FROM CKRCO INTO @DATA(ld_i_hieid). | ||||
| DATA(ld_i_hieid) | = ' '. | |||
| "SELECT single KOKRS FROM TKA01 INTO @DATA(ld_i_kokrs). | ||||
| DATA(ld_i_thier) | = ' '. | |||
| "SELECT single VARHIEBG FROM CKRCO INTO @DATA(ld_e_varhibg). | ||||
| DATA(ld_i_status) | = '0'. | |||
| DATA(ld_i_window) | = 'X'. | |||
| DATA(ld_i_begrow) | = 5. | |||
| DATA(ld_i_begcol) | = 10. | |||
| DATA(ld_i_endrow) | = 30. | |||
Search for further information about these or an SAP related objects