SAP Reports / Programs

RKKPHIE1 SAP ABAP Report - Display Cost Object Hierarchy: Selection







RKKPHIE1 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RKKPHIE1 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RKKPHIE1. "Basic submit
SUBMIT RKKPHIE1 AND RETURN. "Return to original report after report execution complete
SUBMIT RKKPHIE1 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Overview of Cost Object Hierarchies
Selection Text: KOKRS = Controlling area
Selection Text: KSTRG = Cost object
Selection Text: ROOTS = Only top node
Title: Display Cost Object Hierarchy: Selection
Text Symbol: KOK = Controlling area
Text Symbol: FAU = ProdOrd
Text Symbol: AUF = Order
Text Symbol: ARB = Work ctr
Text Symbol: ANZ = No. of cost objects
Text Symbol: ALL = All cost objects
Text Symbol: 012 = H
Text Symbol: 010 = Top node
Text Symbol: 004 = Top node
Text Symbol: 003 = COAr
Text Symbol: 002 = Short text
Text Symbol: 001 = Cost object
Text Symbol: %FS = Program Definitions
Text Symbol: %FP = Cost Object Hierarchy Selection
Text Symbol: KSR = *CostObj
Text Symbol: WRK = / Plant
Text Symbol: VER = / Vers
Text Symbol: SAF = Run sched.
Text Symbol: RTS = Only top node
Text Symbol: PRO = WBS elem.
Text Symbol: PLN = / Plan
Text Symbol: PKS = ProdCstCol
Text Symbol: MAT = Material
Text Symbol: KST = Cost obj


INCLUDES used within this REPORT RKKPHIE1

INCLUDE RKKPHDAT.
INCLUDE RKKPINC0.


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

K_KOKRS_SET CALL FUNCTION 'K_KOKRS_SET' EXPORTING display = ' ' i_kokrs = kokrs popup = '0' IMPORTING e_kokrs = kokrs EXCEPTIONS OTHERS = 99.

K_KSTRG_KOKRS_CHECK CALL FUNCTION 'K_KSTRG_KOKRS_CHECK' EXPORTING kstrg = kstrg datbi = datbi ktrtp = ktrtp_hie "nur Hierarchie-Kostenträger kokrs = kokrs root_check = roots spras = sy-langu TABLES t_ckphv = t_ckphv EXCEPTIONS invalid_input = 01 kstrg_not_found = 02 kstrg_wrong_ktrtp = 03.

K_KKB_TEXT_READ CALL FUNCTION 'K_KKB_TEXT_READ' EXPORTING gte_field = 'KOKRS' gte_value = kokrs IMPORTING gte_ktext = l01_entry.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = xheader.

KKRS_COST_OBJECT_TREE CALL FUNCTION 'KKRS_COST_OBJECT_TREE' EXPORTING i_kstrg = kkhie-kstrg i_kokrs = kokrs * I_ANZART = 'V' * I_F4 = * I_MAINTAIN_TEXT = * IS_TIME_RANGE = * I_VALUTYP = 0 * IMPORTING * E_INDEX = .

K_KKHIE_NAVIGATE * CALL FUNCTION 'K_KKHIE_NAVIGATE' * EXPORTING * ACTIVITY = HIE_READ * I_NODE = KKHIE * IMPORTING * E_NODE = KKHIE * TABLES * KKHIE_TAB = HIE_TAB * EXCEPTIONS * CYCLE_DETECTED = 01 * INVALID_ACTIVITY = 02 * NO_HIERARCHY = 03 * NO_UPPER_NODE = 04.

K_KKHIE_HIERARCHY_SHOW * CALL FUNCTION 'K_KKHIE_HIERARCHY_SHOW' * EXPORTING * I_LEVEL = '01' * I_KOKRS = KOKRS * TABLES * T_EXCL_FUNC = EXCL_FUNC_SET * T_KKHIE = HIE_TAB * EXCEPTIONS * INVALID_INPUT = 01 * NO_HIERARCHY = 02.

REUSE_ALV_LIST_DISPLAY * CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' * EXPORTING * I_CALLBACK_PROGRAM = 'RKKPHIE1' * IS_LAYOUT = F_LAYOUT * IT_FIELDCAT = T_FIELDCAT * IT_EVENTS = T_EVENT * TABLES * T_OUTTAB = T_KTRLIST.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = l_repid is_layout = f_layout it_fieldcat = t_fieldcat I_SAVE = 'A' IS_VARIANT = l_disvariant it_events = t_event TABLES t_outtab = t_ktrlist.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.







The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RKKPHIE1 or its description.