SAP Reports / Programs

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







SHI01TWBGEN 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 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. "Basic submit
SUBMIT SHI01TWBGEN AND RETURN. "Return to original report after report execution complete
SUBMIT SHI01TWBGEN 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_ALL = Read All Substructures
Selection Text: P_APPL = Application
Selection Text: P_BACKGR = Background Processing
Selection Text: P_GLFILT = Original Filter ID
Selection Text: P_GL_DES = D Explanatory Text
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
Title: Hierarchy Tool: Test Plan Generation in Background
Text Symbol: 001 = Selection to Filter/Generate Test Plans
Text Symbol: 002 = Test Plan Generatn
Text Symbol: 003 = Test plan
Text Symbol: 004 = Test package


INCLUDES used within this REPORT SHI01TWBGEN

INCLUDE: LSHI00TOX.


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:

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

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_GET_ACTIVE_NODES CALL FUNCTION 'STREE_GET_ACTIVE_NODES' EXPORTING filter_id = p_glfilt TABLES active_nodes = filt_active_nodes.

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.

RS_FUNCTION_ACTIVE_CHECK CALL FUNCTION 'RS_FUNCTION_ACTIVE_CHECK' EXPORTING funcname = function_module IMPORTING active = user_exit_exists EXCEPTIONS not_found = 1 OTHERS = 2.

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_RAISE_MESSAGE CALL FUNCTION 'STREE_RAISE_MESSAGE' EXPORTING message = message.

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 = p_tp_res transport_order = transp_order development_class = dev_class IMPORTING "31.08.05

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_GET_APPL_PARAMETER CALL FUNCTION 'STREE_GET_APPL_PARAMETER' EXPORTING structure_id = p_tpl_id TABLES parameter_values = lt_appl_parameters.

STREE_UPDATE_APPL_PARAMETER CALL FUNCTION 'STREE_UPDATE_APPL_PARAMETER' EXPORTING structure_id = p_tpl_id TABLES parameter_values = lt_appl_parameters.

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_NODE_READ CALL FUNCTION 'STREE_NODE_READ' EXPORTING structure_id = struct_nodes_old-reftree_id node_id = struct_nodes_old-refnode_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.

RS_FUNCTION_ACTIVE_CHECK CALL FUNCTION 'RS_FUNCTION_ACTIVE_CHECK' EXPORTING funcname = function_module IMPORTING active = user_exit_exists EXCEPTIONS not_found = 1 OTHERS = 2.

STREE_STRUCTURE_READ_REFERENCE CALL FUNCTION 'STREE_STRUCTURE_READ_REFERENCE' EXPORTING structure_id = structure_id * IMPORTING * MESSAGE = TABLES list_of_nodes = all_nodes list_of_references = old_refs .

STREE_GET_UNIQUE_ID CALL FUNCTION 'STREE_GET_UNIQUE_ID' IMPORTING unique_id = unique_id MESSAGE = message EXCEPTIONS OTHERS = 1.

RS_FUNCTION_ACTIVE_CHECK CALL FUNCTION 'RS_FUNCTION_ACTIVE_CHECK' EXPORTING funcname = function_module IMPORTING active = user_exit_exists EXCEPTIONS not_found = 1 OTHERS = 2.



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