SAP Reports / Programs

SHI01TWBGEN_OLD SAP ABAP Report - Hierarchy Tool: Test Plan Generation in Background







SHI01TWBGEN_OLD 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 SHI01TWBGEN_OLD 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 SHI01TWBGEN_OLD. "Basic submit
SUBMIT SHI01TWBGEN_OLD AND RETURN. "Return to original report after report execution complete
SUBMIT SHI01TWBGEN_OLD 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: P_GL_ID = Original Structure ID
Selection Text: P_GL_LAN = D Language Key
Selection Text: P_MODE = Action Mode
Selection Text: P_OPTION = Filter & Gen./Generate Only
Selection Text: P_SGL_ID = Filter Structure ID
Selection Text: P_TPL_ID = Test Plan ID
Selection Text: VIA_SUBM = Call by SUBMIT
Selection Text: P_GL_DES = D Explanatory Text
Selection Text: P_ALL = Read All Substructures
Selection Text: P_APPL = Application
Selection Text: P_BACKGR = Background Processing
Selection Text: P_GLFILT = Original Filter ID
Title: Hierarchy Tool: Test Plan Generation in Background
Text Symbol: 001 = Selection to Filter/Generate Test Plans
Text Symbol: 002 = Test Plan Generatn


INCLUDES used within this REPORT SHI01TWBGEN_OLD

No INCLUDES are used within this REPORT code!


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:

STREE_BUFFER_BYPASS_FLAG_SET call function 'STREE_BUFFER_BYPASS_FLAG_SET' exporting read_references_from_db = true.

DB_COMMIT call function 'DB_COMMIT'.

STREE_STRUCTURE_ENQUEUE call function 'STREE_STRUCTURE_ENQUEUE' exporting id = p_tpl_id importing message = message.

STREE_STRUCTURE_READ call function 'STREE_STRUCTURE_READ' exporting structure_id = read_tree_id tables description = descriptions active_nodes = it_active_nodes extension_sequence = extension_sequence.

STREE_STRUCTURE_READ_N_TOP_LEV call function 'STREE_STRUCTURE_READ_N_TOP_LEV' exporting structure_id = p_sgl_id read_all_levels = ' ' read_n_levels = '2' tables structure_table = struct_nodes user_parameters = user_parameters.

STREE_STRUCTURE_EXIST call function 'STREE_STRUCTURE_EXIST' exporting structure_id = struct_nodes-reftree_id do_not_read_devclass = 'X' importing structure_header = ref_struc_header.

STREE_STRUCTURE_READ_N_LEVEL call function 'STREE_STRUCTURE_READ_N_LEVEL' exporting structure_id = read_tree_id filter_id = read_filter_id top_node = top_node_wa top_level = top_level read_all_levels = ' ' read_n_levels = '1' tables structure_table = insert_structure user_parameters = user_parameters.

STREE_GET_PARAMETER_VALUES call function 'STREE_GET_PARAMETER_VALUES' exporting structure_id = param_struct_id tables parameter_values = param_values.

SO_EXPRESS_FLAG_SET call function 'SO_EXPRESS_FLAG_SET' exporting text_info = exp_mess popup_title = exp_title tables rec_tab = receivers exceptions no_receiver_exist = 1 office_name_error = 2 others = 3.

STREE_NODE_READ call function 'STREE_NODE_READ' exporting structure_id = struct_nodes-reftree_id node_id = struct_nodes-refnode_id importing node_info = node_info tables node_references = insert_refs.

BM_STRUCTURE_CONSTRUCT call function 'BM_STRUCTURE_CONSTRUCT' tables struct_nodes = struct_nodes.

STREE_HIERARCHY_SAVE call function 'STREE_HIERARCHY_SAVE' exporting structure_id = p_tpl_id structure_type = 'TWB2' structure_top_node = top_node structure_description = p_gl_des structure_masterlanguage = p_gl_lan structure_responsible = sy-uname transport_order = transp_order development_class = dev_class tables list_of_nodes = struct_nodes list_of_references = struct_refs list_of_texts = struct_texts exceptions no_nodes_given = 1 others = 2.

STREE_UPDATE_PARAMETER_VALUES call function 'STREE_UPDATE_PARAMETER_VALUES' exporting structure_id = p_tpl_id tables parameter_values = param_values.

STREE_STRUCTURE_SAVE call function 'STREE_STRUCTURE_SAVE' exporting header = new_struct_header description = description transport_order = transp_order development_class = dev_class tables active_nodes = it_active_nodes extension_sequence = extension_sequence.

STREE_STRUCTURE_DEQUEUE call function 'STREE_STRUCTURE_DEQUEUE' exporting id = p_tpl_id.

SO_EXPRESS_FLAG_SET call function 'SO_EXPRESS_FLAG_SET' exporting text_info = exp_mess popup_title = exp_title tables rec_tab = receivers exceptions no_receiver_exist = 1 office_name_error = 2 others = 3.

STREE_GET_UNIQUE_ID call function 'STREE_GET_UNIQUE_ID' importing unique_id = unique_id.

STREE_STRUCTURE_READ_REFERENCE call function 'STREE_STRUCTURE_READ_REFERENCE' exporting structure_id = read_tree_id tables list_of_nodes = insert_struct list_of_references = insert_refs.

BM_STRUCTURE_CONSTRUCT





call function 'BM_STRUCTURE_CONSTRUCT' tables struct_nodes = struct_table.

STREE_STRUCTURE_EXIST call function 'STREE_STRUCTURE_EXIST' exporting structure_id = insert_id do_not_read_devclass = 'X' importing structure_header = insert_header.

STREE_NODE_READ call function 'STREE_NODE_READ' exporting structure_id = struct_nodes_old-tree_id node_id = struct_nodes_old-node_id importing node_text = struct_texts.

STREE_STRUCTURE_READ_REFERENCE call function 'STREE_STRUCTURE_READ_REFERENCE' exporting structure_id = struct_nodes_old-tree_id tables list_of_nodes = export_nodes list_of_references = insert_ref_new.

STREE_STRUCTURE_READ_TEXTS call function 'STREE_STRUCTURE_READ_TEXTS' exporting structure_id = tree_id_wa language = p_gl_lan tables list_of_nodes = it_nodes list_of_texts = it_texts list_of_references = it_refs user_parameters = user_parameters.



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