SAP Reports / Programs | Controlling | Product Cost Controlling | Product Cost Controlling Information System(CO-PC-IS) SAP CO

RKKRHILI SAP ABAP Report - Display Hierarchy List







RKKRHILI 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 RKKRHILI 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 RKKRHILI. "Basic submit
SUBMIT RKKRHILI AND RETURN. "Return to original report after report execution complete
SUBMIT RKKRHILI 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: PA_KOKRS = Controlling Area
Selection Text: PA_HIART = Hierarchy Type
Title: Display Hierarchy List
Text Symbol: S03 = Hierarchy is not yet summarized ;;
Text Symbol: S02 = Hierarchy is partially summarized ;;
Text Symbol: S01 = Hierarchy is summarized ;;
Text Symbol: H09 = Meaning ;;
Text Symbol: H08 = Status;;
Text Symbol: H07 = Name ;;
Text Symbol: H06 = Cost object ;;
Text Symbol: H04 = Subhierarchy ;;
Text Symbol: H03 = Date ;;
Text Symbol: H02 = Name ;;
Text Symbol: H01 = Hierarchy ;;
Text Symbol: 011 = P;; (Hierarchy is partially summarized)
Text Symbol: 010 = -;; (Hierarchy is not yet summarized)
Text Symbol: 009 = S;; (Hierarchy is summarized)


INCLUDES used within this REPORT RKKRHILI

RKKRCN00, "ALLGEMEINE KONSTANTEN (ROLLUP/KLASSIFIZIERUNG)


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_KKB_CURRENT_APPLICATION_GET CALL FUNCTION 'K_KKB_CURRENT_APPLICATION_GET' IMPORTING E_ANW = GD_ANWEND EXCEPTIONS NO_APPLICATION_SET = 01.

K_KKR_ACTIVE_HIERARCHY_GET CALL FUNCTION 'K_KKR_ACTIVE_HIERARCHY_GET' EXPORTING HIART = V_HIART KOKRS = V_KOKRS NO_BUFFER = CON_XFLAG AHIE_LIST = CON_XFLAG I_ROBART = L_ROBART "ALRK109582 TABLES AHIE_TBL = T_AHIE EXCEPTIONS HIERARCHY_TYPE_NOT_EXIST = 01 NO_ACTIVE_HIERARCHY = 02 NO_HIERARCHY_PICKED = 03 SYSTEM_FAILURE = 04 WRONG_HIERARCHY_TYPE = 05 NO_ACTIVE_KOKRS = 06 NO_KOKRS_PICKED = 07 WRONG_INPUT = 08.

K_KKR_SUMMARIZATION_TREE CALL FUNCTION 'K_KKR_SUMMARIZATION_TREE' "E40K000383 EXPORTING I_HIART = V_HIART I_HIEID = V_IDENT I_KOKRS = PA_KOKRS I_THIER = V_HIEBG I_STATUS = LD_STATUS I_WINDOW = GD_WINDOW I_ANWEND = GD_ANWEND EXCEPTIONS NO_VDCO_OBJECT_FOUND = 01 HIER_TERM_IS_INITIAL = 02 HIER_TERM_TOO_LONG = 03 INVALID_HIEBG = 04 SUBTERM_IS_INITIAL = 05 FIRST_FIELD_IS_NOT_KOKRS = 06 HIERARCHY_IS_EMPTY = 07 HIERARCHY_NOT_DEFINED = 08 LENGTH_OF_HIERARCHY_TOO_LONG = 09 TOO_MANY_HIERARCHY_FIELDS = 10 OTHER_ERRORS = 11.

K_KKR_COST_OBJECT_TREE CALL FUNCTION 'K_KKR_COST_OBJECT_TREE' "ALRK003795 EXPORTING I_KSTRG = TOPK_TBL-KSTRG I_ANZART = LD_ANZART I_STATUS = LD_STATUS I_WINDOW = GD_WINDOW I_ANWEND = GD_ANWEND I_AUFTRAG = CON_XFLAG I_KOKRS = PA_KOKRS "K015924 EXCEPTIONS NO_OBJECT_FOUND = 01.

K_KKR_VDCO_INFO_READ CALL FUNCTION 'K_KKR_VDCO_INFO_READ' EXPORTING HIART = V_HIART "ALRK109582 HIEID = V_IDENT VARHIEBG = LD_HIEBG VIEW = '00' TABLES INFO_TBL = OKNO_TBL EXCEPTIONS NO_VDCO_OBJECT_FOUND = 01 WRONG_VIEW = 02.

K_HIERARCHY_STRUCTURE_GET CALL FUNCTION 'K_HIERARCHY_STRUCTURE_GET' EXPORTING HIART = V_HIART IDENT = V_IDENT TABLES STRUCTURE_TBL = HSTUF_TBL EXCEPTIONS FIRST_FIELD_IS_NOT_KOKRS = 01 HIERARCHY_IS_EMPTY = 02 HIERARCHY_NOT_DEFINED = 03 LENGTH_OF_HIERARCHY_TOO_LONG = 04 TOO_MANY_HIERARCHY_FIELDS = 05.

STRING_LENGTH CALL FUNCTION 'STRING_LENGTH' EXPORTING STRING = V_HIEBG IMPORTING LENGTH = LD_HLEN.

K_KKR_HNODE_EDIT CALL FUNCTION 'K_KKR_HNODE_EDIT' EXPORTING HIART = T_OKNO-HIART HIEID = T_OKNO-HIEID VARHIEBG = T_OKNO-VARHIEBG IMPORTING EDTHIEBG = LD_EDITHIEBG.

K_KSTRG_KOKRS_CHECK CALL FUNCTION 'K_KSTRG_KOKRS_CHECK' EXPORTING KOKRS = V_KOKRS SPRAS = SY-LANGU ROOT_CHECK = CON_XFLAG HIEBG_CHECK = CON_XFLAG TABLES T_CKPHV = KSTRG_TBL EXCEPTIONS INVALID_INPUT = 01 KSTRG_NOT_FOUND = 02.

K_KKR_VDCO_OBJECT_READ CALL FUNCTION 'K_KKR_VDCO_OBJECT_READ' EXPORTING HIART = CON_KKR_PRO-HIART HIEID = CON_KKR_PRO-IDENT VARHIEBG = LD_HIEBG EXCEPTIONS OTHERS = 01.



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