SAP CK_F_TCKH4_HIERARCHY_READING Function Module for
CK_F_TCKH4_HIERARCHY_READING is a standard ck f tckh4 hierarchy reading 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 ck f tckh4 hierarchy reading FM, simply by entering the name CK_F_TCKH4_HIERARCHY_READING into the relevant SAP transaction such as SE37 or SE38.
Function Group: 0K01
Program Name: SAPL0K01
Main Program: SAPL0K01
Appliation area: D
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CK_F_TCKH4_HIERARCHY_READING 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 'CK_F_TCKH4_HIERARCHY_READING'".
EXPORTING
* P_BUKRS = "
* P_REFRESH_CACHE = "
P_ELEHK = "
* P_ELEMT = "
* P_KTOPL = "
* P_KSTAR = "
* P_HRKFT = "
* F_TCKH8_STANDARD = "
* F_VIEW_EXTENDED = "
* P_COSTING_FIELD = "
IMPORTING
F_TCKH4 = "
F_TCKH7 = "
F_TCKH6 = "
F_TCKH5 = "
F_TCKH3 = "
F_TCKH1 = "
F_TCKH2 = "
F_TCKHA = "
F_TCK30 = "
F_TCKH8 = "
F_TCKH9 = "
TABLES
* T_TCKH3 = "
* T_TCKH1 = "
* T_TCKH2 = "
* T_TCKHA = "
* T_TCK30 = "
* T_TCKH8 = "
* T_TCKH9 = "
* T_TCKH7 = "
* T_TCKH6 = "
IMPORTING Parameters details for CK_F_TCKH4_HIERARCHY_READING
P_BUKRS -
Data type: BUKRSOptional: Yes
Call by Reference: Yes
P_REFRESH_CACHE -
Data type: XFELDOptional: Yes
Call by Reference: Yes
P_ELEHK -
Data type: CK_ELESMHKOptional: No
Call by Reference: Yes
P_ELEMT -
Data type: CK_ELEMENTOptional: Yes
Call by Reference: Yes
P_KTOPL -
Data type: KTOPLOptional: Yes
Call by Reference: Yes
P_KSTAR -
Data type: KSTAROptional: Yes
Call by Reference: Yes
P_HRKFT -
Data type: HRKFTOptional: Yes
Call by Reference: Yes
F_TCKH8_STANDARD -
Data type: TCKH8Optional: Yes
Call by Reference: Yes
F_VIEW_EXTENDED -
Data type: COSTING_VIEW_EXTENDEDOptional: Yes
Call by Reference: Yes
P_COSTING_FIELD -
Data type: CK_EL_HVOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for CK_F_TCKH4_HIERARCHY_READING
F_TCKH4 -
Data type: TCKH4Optional: No
Call by Reference: No ( called with pass by value option)
F_TCKH7 -
Data type: TCKH7Optional: No
Call by Reference: No ( called with pass by value option)
F_TCKH6 -
Data type: TCKH6Optional: No
Call by Reference: No ( called with pass by value option)
F_TCKH5 -
Data type: TCKH5Optional: No
Call by Reference: No ( called with pass by value option)
F_TCKH3 -
Data type: TCKH3Optional: No
Call by Reference: No ( called with pass by value option)
F_TCKH1 -
Data type: TCKH1Optional: No
Call by Reference: No ( called with pass by value option)
F_TCKH2 -
Data type: TCKH2Optional: No
Call by Reference: No ( called with pass by value option)
F_TCKHA -
Data type: TCKHAOptional: No
Call by Reference: No ( called with pass by value option)
F_TCK30 -
Data type: TCK30Optional: No
Call by Reference: No ( called with pass by value option)
F_TCKH8 -
Data type: TCKH8Optional: No
Call by Reference: No ( called with pass by value option)
F_TCKH9 -
Data type: TCKH9Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CK_F_TCKH4_HIERARCHY_READING
T_TCKH3 -
Data type: TCKH3Optional: Yes
Call by Reference: No ( called with pass by value option)
T_TCKH1 -
Data type: TCKH1Optional: Yes
Call by Reference: No ( called with pass by value option)
T_TCKH2 -
Data type: TCKH2Optional: Yes
Call by Reference: No ( called with pass by value option)
T_TCKHA -
Data type: TCKHAOptional: Yes
Call by Reference: No ( called with pass by value option)
T_TCK30 -
Data type: TCK30Optional: Yes
Call by Reference: No ( called with pass by value option)
T_TCKH8 -
Data type: TCKH8Optional: Yes
Call by Reference: No ( called with pass by value option)
T_TCKH9 -
Data type: TCKH9Optional: Yes
Call by Reference: No ( called with pass by value option)
T_TCKH7 -
Data type: TCKH7Optional: Yes
Call by Reference: No ( called with pass by value option)
T_TCKH6 -
Data type: TCKH6Optional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CK_F_TCKH4_HIERARCHY_READING 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_f_tckh4 | TYPE TCKH4, " | |||
lv_p_bukrs | TYPE BUKRS, " | |||
lt_t_tckh3 | TYPE STANDARD TABLE OF TCKH3, " | |||
lv_f_tckh7 | TYPE TCKH7, " | |||
lv_p_refresh_cache | TYPE XFELD, " | |||
lv_f_tckh6 | TYPE TCKH6, " | |||
lv_f_tckh5 | TYPE TCKH5, " | |||
lv_p_elehk | TYPE CK_ELESMHK, " | |||
lt_t_tckh1 | TYPE STANDARD TABLE OF TCKH1, " | |||
lv_f_tckh3 | TYPE TCKH3, " | |||
lv_p_elemt | TYPE CK_ELEMENT, " | |||
lt_t_tckh2 | TYPE STANDARD TABLE OF TCKH2, " | |||
lv_f_tckh1 | TYPE TCKH1, " | |||
lv_p_ktopl | TYPE KTOPL, " | |||
lt_t_tckha | TYPE STANDARD TABLE OF TCKHA, " | |||
lv_f_tckh2 | TYPE TCKH2, " | |||
lv_p_kstar | TYPE KSTAR, " | |||
lt_t_tck30 | TYPE STANDARD TABLE OF TCK30, " | |||
lv_f_tckha | TYPE TCKHA, " | |||
lv_p_hrkft | TYPE HRKFT, " | |||
lt_t_tckh8 | TYPE STANDARD TABLE OF TCKH8, " | |||
lv_f_tck30 | TYPE TCK30, " | |||
lt_t_tckh9 | TYPE STANDARD TABLE OF TCKH9, " | |||
lv_f_tckh8_standard | TYPE TCKH8, " | |||
lv_f_tckh8 | TYPE TCKH8, " | |||
lt_t_tckh7 | TYPE STANDARD TABLE OF TCKH7, " | |||
lv_f_view_extended | TYPE COSTING_VIEW_EXTENDED, " | |||
lv_f_tckh9 | TYPE TCKH9, " | |||
lt_t_tckh6 | TYPE STANDARD TABLE OF TCKH6, " | |||
lv_p_costing_field | TYPE CK_EL_HV. " |
  CALL FUNCTION 'CK_F_TCKH4_HIERARCHY_READING' " |
EXPORTING | ||
P_BUKRS | = lv_p_bukrs | |
P_REFRESH_CACHE | = lv_p_refresh_cache | |
P_ELEHK | = lv_p_elehk | |
P_ELEMT | = lv_p_elemt | |
P_KTOPL | = lv_p_ktopl | |
P_KSTAR | = lv_p_kstar | |
P_HRKFT | = lv_p_hrkft | |
F_TCKH8_STANDARD | = lv_f_tckh8_standard | |
F_VIEW_EXTENDED | = lv_f_view_extended | |
P_COSTING_FIELD | = lv_p_costing_field | |
IMPORTING | ||
F_TCKH4 | = lv_f_tckh4 | |
F_TCKH7 | = lv_f_tckh7 | |
F_TCKH6 | = lv_f_tckh6 | |
F_TCKH5 | = lv_f_tckh5 | |
F_TCKH3 | = lv_f_tckh3 | |
F_TCKH1 | = lv_f_tckh1 | |
F_TCKH2 | = lv_f_tckh2 | |
F_TCKHA | = lv_f_tckha | |
F_TCK30 | = lv_f_tck30 | |
F_TCKH8 | = lv_f_tckh8 | |
F_TCKH9 | = lv_f_tckh9 | |
TABLES | ||
T_TCKH3 | = lt_t_tckh3 | |
T_TCKH1 | = lt_t_tckh1 | |
T_TCKH2 | = lt_t_tckh2 | |
T_TCKHA | = lt_t_tckha | |
T_TCK30 | = lt_t_tck30 | |
T_TCKH8 | = lt_t_tckh8 | |
T_TCKH9 | = lt_t_tckh9 | |
T_TCKH7 | = lt_t_tckh7 | |
T_TCKH6 | = lt_t_tckh6 | |
. " CK_F_TCKH4_HIERARCHY_READING |
ABAP code using 7.40 inline data declarations to call FM CK_F_TCKH4_HIERARCHY_READING
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.Search for further information about these or an SAP related objects