SAP Reports / Programs

FICITMHY SAP ABAP Report - Program for Generating Item Hierarchies from Existing Sets







FICITMHY 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 FICITMHY 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 FICITMHY. "Basic submit
SUBMIT FICITMHY AND RETURN. "Return to original report after report execution complete
SUBMIT FICITMHY 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_DELE = Delete hierarchies
Selection Text: PA_HRCHY = Item hierarchy
Selection Text: PA_ITCLG = Cons chart of accounts
Selection Text: PA_SETNR = Single dim. set to break down
Title: Program for Generating Item Hierarchies from Existing Sets


INCLUDES used within this REPORT FICITMHY

INCLUDE FICDAT00.


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:

FC_ITCLG_IMPORT * call function 'FC_ITCLG_IMPORT' * exporting * e_itclg = pa_itclg * tables * it_nodes = it_nodes * exceptions * not_found = 01.

FC_ITCLG_EXPORT * call function 'FC_ITCLG_EXPORT' "xfm * exporting "xfm * e_itclg = pa_itclg "xfm * tables "xfm * it_nodes = it_nodes_tab. "xfm

FC_SET_ENCRYPT_SETID CALL FUNCTION 'FC_SET_ENCRYPT_SETID' " STO EXPORTING E_SHORTNAME = PA_SETNA E_ITCLG = PA_ITCLG IMPORTING I_SETID = GD_SETID.

RS_TREE_CONSTRUCT CALL FUNCTION 'RS_TREE_CONSTRUCT' TABLES NODETAB = IT_NODES.

RS_TREE_SET_CURRENT_TREE CALL FUNCTION 'RS_TREE_SET_CURRENT_TREE' TABLES NODELIST = IT_NODES.

RS_TREE_CONSTRUCT CALL FUNCTION 'RS_TREE_CONSTRUCT' EXPORTING INSERT_ID = '000001' RELATIONSHIP = 'BABY' TABLES NODETAB = IT_NODES.

RS_TREE_GET_CURRENT_TREE CALL FUNCTION 'RS_TREE_GET_CURRENT_TREE' TABLES NODELIST = IT_NODES_TAB.

RS_TREE_LIST_DISPLAY CALL FUNCTION 'RS_TREE_LIST_DISPLAY' EXPORTING CALLBACK_PROGRAM = ' ' CALLBACK_USER_COMMAND = ' ' CALLBACK_TEXT_DISPLAY = ' ' CALLBACK_COLOR_DISPLAY = ' ' CALLBACK_TOP_OF_PAGE = ' ' STATUS = 'IMPLICIT' CHECK_DUPLICATE_NAME = '1' COLOR_OF_LINK = '1' COLOR_OF_NODE = '4' LOWER_CASE_SENSITIVE = ' ' MODIFICATION_LOG = ' ' NODE_LENGTH = 30 TEXT_LENGTH = 75 TEXT_LENGTH1 = 0 TEXT_LENGTH2 = 0 RETURN_MARKED_SUBTREE = ' ' SCREEN_START_COLUMN = 0 SCREEN_START_LINE = 0 SCREEN_END_COLUMN = 0 SCREEN_END_LINE = 0 SUPPRESS_NODE_OUTPUT = ' ' * importing * f15 = EXCEPTIONS OTHERS = 1.

RS_TREE_GET_CURRENT_TREE CALL FUNCTION 'RS_TREE_GET_CURRENT_TREE' TABLES NODELIST = IT_NODES_TAB.

FC_ITCLG_EXPORT * call function 'FC_ITCLG_EXPORT' * exporting * e_itclg = pa_itclg * et_nodes = it_nodes_tab[]. "STO - Vorschlag !!

FC_SET_DECRYPT_SETID CALL FUNCTION 'FC_SET_DECRYPT_SETID' "STO EXPORTING E_SETID = V_SETID IMPORTING I_SHORTNAME = LD_SETNAME.

G_SET_FETCH CALL FUNCTION 'G_SET_FETCH' EXPORTING * CLASS = ' ' * LANGU = SY-LANGU * NO_AUTHORITY_CHECK = ' ' SETNR = V_SETID * SOURCE_CLIENT = SY-MANDT TABLE = 'FIMC' IMPORTING SET_HEADER = SET_HEADER TABLES FORMULA_LINES = FORMULA_LINES SET_LINES_BASIC = SET_LINES_BASIC SET_LINES_DATA = SET_LINES_DATA SET_LINES_MULTI = SET_LINES_MULTI SET_LINES_SINGLE = SET_LINES_SINGLE.

FC_SET_DECRYPT_SETID CALL FUNCTION 'FC_SET_DECRYPT_SETID' "STO EXPORTING E_SETID = SET_LINES_SINGLE-SETNR IMPORTING I_SHORTNAME = LD_SETNAME_NEW.

CONVERSION_EXIT_ALPHA_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' "xfm EXPORTING "xfm INPUT = SET_LINES_BASIC-FROM "xfm IMPORTING "xfm OUTPUT = SET_LINES_BASIC-FROM. "xfm

CONVERSION_EXIT_ALPHA_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING INPUT = SET_LINES_BASIC-FROM IMPORTING OUTPUT = SET_LINES_BASIC-FROM.

CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING INPUT = IT_NODE-NAME(10) IMPORTING OUTPUT = IT_NODE-NAME(10).

FC_ITCLG_EXPORT CALL FUNCTION 'FC_ITCLG_EXPORT' EXPORTING E_ITCLG = GD_ITCLG ET_NODE = IT_NODE[].

FC_ITCLG_IMPORT CALL FUNCTION 'FC_ITCLG_IMPORT' EXPORTING E_ITCLG = LD_ITCLG IMPORTING IT_NODE = IT_NODE[].

CONVERSION_EXIT_ALPHA_OUTPUT





CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' EXPORTING INPUT = IT_NODES-NAME(10) IMPORTING OUTPUT = IT_NODES-NAME(10).



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