SAP Reports / Programs | Controlling | Product Cost Controlling | Product Cost by Period(CO-PC-OBJ-PER) SAP CO

RKKPHIE0 SAP ABAP Report - Display Cost Object Hierarchy: Result







RKKPHIE0 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 RKKPHIE0 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 RKKPHIE0. "Basic submit
SUBMIT RKKPHIE0 AND RETURN. "Return to original report after report execution complete
SUBMIT RKKPHIE0 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: DATBI = Date to
Selection Text: KSTRG = Cost object
Selection Text: MODE = Output format (graphic/list)
Selection Text: UEKTR = Higher-level cost object
Title: Display Cost Object Hierarchy: Result
Text Symbol: ARB = Work ctr;;
Text Symbol: AUF = Order ;;
Text Symbol: FAU = ProdOrd ;;
Text Symbol: KSR = *CostObj;;
Text Symbol: KST = Cost obj;;
Text Symbol: MAT = Material;;
Text Symbol: PKS = PrdCstCl;;
Text Symbol: PLN = / Plan ;;
Text Symbol: PRO = WBS elem;;
Text Symbol: SAF = Run schd;;
Text Symbol: VER = / Vers ;;
Text Symbol: WRK = / Plant ;;


INCLUDES used within this REPORT RKKPHIE0

INCLUDE RKKPHDAT. "ALLGEM. KONST.
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' "P30K030216 EXPORTING "P30K030216 DISPLAY = ' ' "P30K030216 I_KOKRS = KOKRS "P30K030216 POPUP = '0' "P30K030216 IMPORTING "P30K030216 E_KOKRS = KOKRS "P30K030216 EXCEPTIONS "P30K030216 OTHERS = 99. "P30K030216

K_CKPH_GET_ROOT_PATH CALL FUNCTION 'K_CKPH_GET_ROOT_PATH' EXPORTING KSTRG = UEKTR TABLES CKPH_PATH = CKPH_TAB "nur KstTrg EXCEPTIONS NO_ROOT = 00 NOT_FOUND = 01 SYSTEM_FAILURE = 03.

K_GET_HIERARCHY CALL FUNCTION 'K_GET_HIERARCHY' EXPORTING OBJECT_NR = OBJNR HIART = ID_KSTRG OBART = ID_KSTRG WERKS = WERKS LOEKZ = LOEKZ "P30K029840 TABLES KKHIE_I = HIETAB_HI EXCEPTIONS NOT_FOUND = 01.

K_KSTRG_OBJECT_NUMBER_GET CALL FUNCTION 'K_KSTRG_OBJECT_NUMBER_GET' "K11K099117 EXPORTING "K11K099117 KSTRG = KSTRG "K11K099117 IMPORTING "K11K099117 OBJNR = OBJNR. "K11K099117

K_GET_HIERARCHY CALL FUNCTION 'K_GET_HIERARCHY' EXPORTING OBJECT_NR = OBJNR "K11K099117 HIART = ID_KSTRG OBART = ID_KSTRG WERKS = WERKS LOEKZ = LOEKZ "P30K029840 TABLES KKHIE_I = HIETAB_LO "allgem. Hier.tab.

K_GRAPH_HIERARCHY * CALL FUNCTION 'K_GRAPH_HIERARCHY' * EXPORTING * FLAG_K_E = 'E' * TABLES * GRAPH_TAB_KKHIE = HIETAB_HI * EXCEPTIONS * SYSTEM_FAILURE = 01.

K_VC_GRAPH_HIERARCHY_TEMP_SHOW CALL FUNCTION 'K_VC_GRAPH_HIERARCHY_TEMP_SHOW' TABLES GRAPH_TAB = HIETAB_HI.

K_CKPH_GET_SINGLE CALL FUNCTION 'K_CKPH_GET_SINGLE' EXPORTING KSTRG = HIETAB_HI-KSTRG DATBI = HIETAB_HI-DATBI IMPORTING CKPH_I = GD_CKPH EXCEPTIONS NOT_FOUND = 1.

K_KTRAT_READ CALL FUNCTION 'K_KTRAT_READ' EXPORTING I_KTRAT = KTRAT IMPORTING E_CKPHS = GD_CKPHS EXCEPTIONS NOT_FOUND = 1.

K_KKHIE_HIERARCHY_SHOW CALL FUNCTION 'K_KKHIE_HIERARCHY_SHOW' EXPORTING I_ANW = GD_ANW I_LEVEL = LEVEL I_KOKRS = KOKRS "P30K030216 TABLES T_EXCL_FUNC = EXCL_FUNC_SET T_KKHIE = HIETAB_HI.



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 RKKPHIE0 or its description.