SAP K_KKR_STRUCTURE_EXPLOSION_TREE Function Module for









K_KKR_STRUCTURE_EXPLOSION_TREE is a standard k kkr structure explosion 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 structure explosion tree FM, simply by entering the name K_KKR_STRUCTURE_EXPLOSION_TREE into the relevant SAP transaction such as SE37 or SE38.

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



Function K_KKR_STRUCTURE_EXPLOSION_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_STRUCTURE_EXPLOSION_TREE'"
EXPORTING
I_KLVAR = "Costing Variant
* I_SICHT = '01' "Cost Component View
I_KEKO = "Header Information
I_MAT_HEADER = "
* I_OBJW = 'X' "'X': Object Currency
* I_CALC_QUAN = 'X' "
* I_DATA_ON_DB = 'X' "
* I_BILD = 1 "
* I_NOT_FULL_EXPL = ' ' "
* I_LEVEL = "
* I_ROOT = 1 "
* I_ERZKA = 'X' "
* I_ONLY_M = 'X' "
* I_SUM_NODES = ' ' "
* I_ANW = '8' "
* I_CHOICE_J = 'X' "'X': Report Group Selection
* I_CHOICE_K = 'X' "'X': Cost Element Selection
* I_KST = ' ' "Cost Element Group for Report
* I_RGJNR = '7EE0' "Report

TABLES
I_STRUCTURE_TBL = "Multilevel BOM
* T_EXPAND = "Table with Expanded Nodes
.



IMPORTING Parameters details for K_KKR_STRUCTURE_EXPLOSION_TREE

I_KLVAR - Costing Variant

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

I_SICHT - Cost Component View

Data type: KKBE-SICHT
Default: '01'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_KEKO - Header Information

Data type: KEKO
Optional: No
Call by Reference: No ( called with pass by value option)

I_MAT_HEADER -

Data type: CK_STRUKTURTAB_HEADER
Optional: No
Call by Reference: No ( called with pass by value option)

I_OBJW - 'X': Object Currency

Data type:
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CALC_QUAN -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DATA_ON_DB -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BILD -

Data type: I
Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NOT_FULL_EXPL -

Data type: C
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LEVEL -

Data type: I
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ROOT -

Data type: SY-TABIX
Default: 1
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ERZKA -

Data type: KEKO-ERZKA
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ONLY_M -

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SUM_NODES -

Data type: C
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ANW -

Data type: TKKB1-ANW
Default: '8'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CHOICE_J - 'X': Report Group Selection

Data type: TKKB1-OBJ
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CHOICE_K - 'X': Cost Element Selection

Data type: TKKB1-OBJ
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_KST - Cost Element Group for Report

Data type: TKKB2-KST
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RGJNR - Report

Data type: TKKB1-BGR
Default: '7EE0'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for K_KKR_STRUCTURE_EXPLOSION_TREE

I_STRUCTURE_TBL - Multilevel BOM

Data type: CK_STRUKTURTAB
Optional: No
Call by Reference: No ( called with pass by value option)

T_EXPAND - Table with Expanded Nodes

Data type: SEUTEXPAND
Optional: Yes
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for K_KKR_STRUCTURE_EXPLOSION_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_i_klvar  TYPE KKBU-KLVAR, "   
lt_i_structure_tbl  TYPE STANDARD TABLE OF CK_STRUKTURTAB, "   
lv_i_sicht  TYPE KKBE-SICHT, "   '01'
lv_i_keko  TYPE KEKO, "   
lv_i_mat_header  TYPE CK_STRUKTURTAB_HEADER, "   
lv_i_objw  TYPE CK_STRUKTURTAB_HEADER, "   'X'
lv_i_calc_quan  TYPE C, "   'X'
lv_i_data_on_db  TYPE C, "   'X'
lv_i_bild  TYPE I, "   1
lv_i_not_full_expl  TYPE C, "   ' '
lv_i_level  TYPE I, "   
lv_i_root  TYPE SY-TABIX, "   1
lv_i_erzka  TYPE KEKO-ERZKA, "   'X'
lt_t_expand  TYPE STANDARD TABLE OF SEUTEXPAND, "   
lv_i_only_m  TYPE C, "   'X'
lv_i_sum_nodes  TYPE C, "   ' '
lv_i_anw  TYPE TKKB1-ANW, "   '8'
lv_i_choice_j  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. "   '7EE0'

  CALL FUNCTION 'K_KKR_STRUCTURE_EXPLOSION_TREE'  "
    EXPORTING
         I_KLVAR = lv_i_klvar
         I_SICHT = lv_i_sicht
         I_KEKO = lv_i_keko
         I_MAT_HEADER = lv_i_mat_header
         I_OBJW = lv_i_objw
         I_CALC_QUAN = lv_i_calc_quan
         I_DATA_ON_DB = lv_i_data_on_db
         I_BILD = lv_i_bild
         I_NOT_FULL_EXPL = lv_i_not_full_expl
         I_LEVEL = lv_i_level
         I_ROOT = lv_i_root
         I_ERZKA = lv_i_erzka
         I_ONLY_M = lv_i_only_m
         I_SUM_NODES = lv_i_sum_nodes
         I_ANW = lv_i_anw
         I_CHOICE_J = lv_i_choice_j
         I_CHOICE_K = lv_i_choice_k
         I_KST = lv_i_kst
         I_RGJNR = lv_i_rgjnr
    TABLES
         I_STRUCTURE_TBL = lt_i_structure_tbl
         T_EXPAND = lt_t_expand
. " K_KKR_STRUCTURE_EXPLOSION_TREE




ABAP code using 7.40 inline data declarations to call FM K_KKR_STRUCTURE_EXPLOSION_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 KLVAR FROM KKBU INTO @DATA(ld_i_klvar).
 
 
"SELECT single SICHT FROM KKBE INTO @DATA(ld_i_sicht).
DATA(ld_i_sicht) = '01'.
 
 
 
DATA(ld_i_objw) = 'X'.
 
DATA(ld_i_calc_quan) = 'X'.
 
DATA(ld_i_data_on_db) = 'X'.
 
DATA(ld_i_bild) = 1.
 
DATA(ld_i_not_full_expl) = ' '.
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_i_root).
DATA(ld_i_root) = 1.
 
"SELECT single ERZKA FROM KEKO INTO @DATA(ld_i_erzka).
DATA(ld_i_erzka) = 'X'.
 
 
DATA(ld_i_only_m) = 'X'.
 
DATA(ld_i_sum_nodes) = ' '.
 
"SELECT single ANW FROM TKKB1 INTO @DATA(ld_i_anw).
DATA(ld_i_anw) = '8'.
 
"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_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) = '7EE0'.
 


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!