SAP Reports / Programs | Basis Components | Basis Components | Test Organizer(BC-TWB-ORG) SAP BC

RSTWB_BATCH_EXECUTE SAP ABAP Report - Job Scheduling for Automatic Test Cases







RSTWB_BATCH_EXECUTE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program allows batch scheduling of test packages with automatic test cases...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RSTWB_BATCH_EXECUTE 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 RSTWB_BATCH_EXECUTE. "Basic submit
SUBMIT RSTWB_BATCH_EXECUTE AND RETURN. "Return to original report after report execution complete
SUBMIT RSTWB_BATCH_EXECUTE 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: SNAME = Test Plan Title
Selection Text: SET_STAT = Copy Status to TWB
Selection Text: PROFILE = Start Profile
Selection Text: PLAN_ID = Test Plan Key
Selection Text: PACK_IDS = Test Packages
Selection Text: ACT_TBOM = Activate TBOM Recording
Title: Job Scheduling for Automatic Test Cases
Text Symbol: TPC = Test Packages
Text Symbol: SID = System
Text Symbol: RFC = RFC Destination
Text Symbol: M30 = No message
Text Symbol: M10 = Display Message At Termination
Text Symbol: ESS = Source System
Text Symbol: EFG = Execute in the Foreground
Text Symbol: EBG = Execute in Background
Text Symbol: B30 = Job
Text Symbol: B25 = Business Process Change Analyzer
Text Symbol: B22 = Copy Status into Test Workbench
Text Symbol: B20 = eCATT
Text Symbol: B10 = Selection
Text Symbol: 030 = Start Profile
Text Symbol: 020 = Test Package
Text Symbol: 012 = Test Plan Title
Text Symbol: 010 = Test Plan
Text Symbol: 001 = Automated Test


INCLUDES used within this REPORT RSTWB_BATCH_EXECUTE

INCLUDE LS_TWB_HCON.
INCLUDE STWB_GLOBALS.
INCLUDE ECATT_GLOBALS.


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:

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = icon_information IMPORTING result = i_fg_sch EXCEPTIONS OTHERS = 0.

S_TWB_PLAN_CHECK_CLOSED CALL FUNCTION 'S_TWB_PLAN_CHECK_CLOSED' EXPORTING iv_structure_id = plan_id iv_context = 'TEST_STATUS' "#EC NOTEXT IMPORTING ev_plan_closed = gv_plan_closed.

S_TWB_PLAN_CHECK_CLOSED CALL FUNCTION 'S_TWB_PLAN_CHECK_CLOSED' EXPORTING iv_structure_id = plan_id iv_context = 'TEST_STATUS' "#EC NOTEXT IMPORTING ev_plan_closed = gv_plan_closed.

GET_JOB_RUNTIME_INFO CALL FUNCTION 'GET_JOB_RUNTIME_INFO' IMPORTING jobcount = jobcount jobname = jobname EXCEPTIONS no_runtime_info = 1 OTHERS = 2.

S_TWB_EX_OVERWIEW_TESTPACKAGES CALL FUNCTION 'S_TWB_EX_OVERWIEW_TESTPACKAGES' EXPORTING iv_structure_id = plan_id TABLES et_structure_titles = gt_pack_titles.

S_TWB_U_F4_STRUCTURE CALL FUNCTION 'S_TWB_U_F4_STRUCTURE' EXPORTING tree_type = type_plan IMPORTING sel_structure = ls_ttree sel_structure_text = lv_structure_text EXCEPTIONS canceled = 1 already_used = 2 OTHERS = 3.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = dyname dynumb = dynumb TABLES dynpfields = dynpfields EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 undefind_error = 7 OTHERS = 8.

S_TWB_READ_ECATT_INFO CALL FUNCTION 'S_TWB_READ_ECATT_INFO' EXPORTING structure_id = lv_plan_id IMPORTING sys_data = lt_sys_data.

S_TWB_U_CHECK_FEATURE CALL FUNCTION 'S_TWB_U_CHECK_FEATURE' EXPORTING iv_function_module = 'ECATT_EXECUTE' iv_function = 'START_PROFILE_NAME' iv_destination = ls_sys_data-dest IMPORTING ev_function_possible = p_start_profile_possible es_message = ls_message.

S_TWB_U_CHECK_FEATURE CALL FUNCTION 'S_TWB_U_CHECK_FEATURE' EXPORTING iv_function_module = 'TESTPROXY_FRONTEND_GET' iv_destination = ls_sys_data-dest IMPORTING ev_function_possible = p_fg_scheduler_possible es_message = ls_message.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = 'TWB_EX_GUID_TITLE' langu = sy-langu TABLES dfies_tab = lt_fields EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'ID' window_title = text-tpc value_org = 'S' multiple_choice = 'X' display = ' ' callback_program = sy-repid callback_form = 'F4CALLBACK_PACK_ID' mark_tab = lt_mark_tab TABLES value_tab = lt_values field_tab = lt_fields return_tab = lt_return EXCEPTIONS parameter_error = 1 no_values_found = 2 OTHERS = 3.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = dyname dynumb = dynumb TABLES dynpfields = dynpfields EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 undefind_error = 7 OTHERS = 8.

ECATT_OBJECT_F4_REQUEST CALL FUNCTION 'ECATT_OBJECT_F4_REQUEST' DESTINATION ps_ess_sys_data-dest EXPORTING im_object_type = c_ecatt_type_start_profile * IM_OBJECT_NAME = im_selscreen_variant = 'SAP&STANDARD' im_suppress_selection = ' ' im_display_only = ' ' im_without_personal_list = ' ' IMPORTING ex_object_name = lv_object_name ex_answer = lv_answer EXCEPTIONS object_type_unknown = 1 communication_failure = 99 MESSAGE lv_msg_text system_failure = 99 MESSAGE lv_msg_text OTHERS = 100.

ECATT_EXISTENCE_CHECK CALL FUNCTION 'ECATT_EXISTENCE_CHECK' DESTINATION p_ess_dest EXPORTING im_object_name = lv_object_name im_object_type = c_ecatt_type_start_profile IMPORTING ex_exists = sw_profile_exists EXCEPTIONS object_type_unknown = 1 operation_not_supported = 2 communication_failure = 99 MESSAGE lv_msg_text system_failure = 99 MESSAGE lv_msg_text OTHERS = 100.

S_TWB_EXIT_TO_AUTHORITY_CHECK CALL FUNCTION 'S_TWB_EXIT_TO_AUTHORITY_CHECK' EXPORTING structure_id = lv_structure_id structure_type = lv_structure_type activity = c_activity_change suppress_message = 'X' IMPORTING message = ps_message.

S_TWB_EXIT_TO_AUTHORITY_CHECK CALL FUNCTION 'S_TWB_EXIT_TO_AUTHORITY_CHECK' EXPORTING structure_id = lv_structure_id structure_type = lv_structure_type activity = c_activity_display suppress_message = 'X' IMPORTING message = ps_message.

S_TWB_J_REGISTER_PACKAGE CALL FUNCTION 'S_TWB_J_REGISTER_PACKAGE' TABLES it_package_jobs = lt_package_jobs.

S_TWB_J_UPDATE_REGISTRATION





CALL FUNCTION 'S_TWB_J_UPDATE_REGISTRATION' EXPORTING is_package_job = ls_package_job.

S_TWB_EX_GET_PLAN_TO_PACKAGE CALL FUNCTION 'S_TWB_EX_GET_PLAN_TO_PACKAGE' EXPORTING iv_language = sy-langu iv_package_id = p_package_id IMPORTING ev_package_title = lv_package_title ev_plan_id = lv_plan_id ev_plan_title = lv_plan_title EXCEPTIONS structure_not_found = 1 wrong_structure_type = 2 OTHERS = 3.

STREE_HIERARCHY_READ CALL FUNCTION 'STREE_HIERARCHY_READ' EXPORTING structure_id = p_plan_id filter_id = p_package_id IMPORTING message = ls_message TABLES list_of_nodes = lt_nodes list_of_references = lt_references list_of_texts = lt_texts user_parameters = lt_user_parameters.

STREE_RAISE_MESSAGE CALL FUNCTION 'STREE_RAISE_MESSAGE' EXPORTING message = ls_message.

STREE_EXIT_TO_OBJECT_ECTC CALL FUNCTION 'STREE_EXIT_TO_OBJECT_ECTC' EXPORTING structure_id = p_package_id selected_node = ls_node iconname = 'ICON_TEST' language = sy-langu IMPORTING data_changed = lv_data_changed TABLES list_of_references = lt_references user_parameters = lt_user_parameters.

S_TWB_EX_ANALYZE_STATUS CALL FUNCTION 'S_TWB_EX_ANALYZE_STATUS' EXPORTING iv_structure_id = p_package_id iv_function = 'REFRESH' IMPORTING ev_status = ls_status ev_tnode02a = ls_tnode02a.

S_TWB_U_FILL_USER_PARAMETERS CALL FUNCTION 'S_TWB_U_FILL_USER_PARAMETERS' EXPORTING function_code = 'TWB_TEST' structure_id = p_plan_id structure_type = type_plan filter_id = p_package_id TABLES user_parameters = lt_user_parameters.

S_TWB_EX_SET_TEST_STATUS CALL FUNCTION 'S_TWB_EX_SET_TEST_STATUS' TABLES it_status = lt_set_status et_messages = lt_messages.

S_TWB_READ_ECATT_INFO CALL FUNCTION 'S_TWB_READ_ECATT_INFO' EXPORTING structure_id = p_plan_id IMPORTING sys_data = lt_sys_data.

CAT_PING CALL FUNCTION 'CAT_PING' DESTINATION ls_sys_data-dest IMPORTING sysinfo = ls_sysinfo EXCEPTIONS communication_failure = 1 MESSAGE lv_msg system_failure = 1 MESSAGE lv_msg.

S_TWB_U_GET_SOLAR_DESTINATION CALL FUNCTION 'S_TWB_U_GET_SOLAR_DESTINATION' EXPORTING iv_component = lv_component iv_object_type = ref_ecatt IMPORTING ev_info_destination = ls_info_destination ev_message = ls_message TABLES list_of_destinations = gt_info_destination.

FUNCTION_IMPORT_INTERFACE CALL FUNCTION 'FUNCTION_IMPORT_INTERFACE' EXPORTING funcname = 'S_TWB_BATCH_EXECUTE' TABLES exception_list = lt_exception export_parameter = lt_export_parameter import_parameter = lt_import_parameter tables_parameter = lt_tables_parameter EXCEPTIONS error_message = lc_rc-error_message function_not_found = lc_rc-function_not_found invalid_name = lc_rc-invalid_name OTHERS = lc_rc-others.

FUNCTION_IMPORT_INTERFACE CALL FUNCTION 'FUNCTION_IMPORT_INTERFACE' DESTINATION ls_info_destination-rfcdest EXPORTING funcname = 'S_TWB_BATCH_EXECUTE' EXCEPTIONS communication_failure = lc_rc-rfc_error MESSAGE lv_msg system_failure = lc_rc-rfc_error MESSAGE lv_msg error_message = lc_rc-error_message function_not_found = lc_rc-function_not_found invalid_name = lc_rc-invalid_name OTHERS = lc_rc-others.

STREE_RAISE_MESSAGE CALL FUNCTION 'STREE_RAISE_MESSAGE' EXPORTING message = ls_message.

STREE_RAISE_MESSAGE CALL FUNCTION 'STREE_RAISE_MESSAGE' EXPORTING message = ls_message.

STREE_RAISE_MESSAGE CALL FUNCTION 'STREE_RAISE_MESSAGE' EXPORTING message = ls_message.

STREE_RAISE_MESSAGE CALL FUNCTION 'STREE_RAISE_MESSAGE' EXPORTING message = ls_message.

STREE_RAISE_MESSAGE CALL FUNCTION 'STREE_RAISE_MESSAGE' EXPORTING message = ls_message.

S_TWB_U_GET_SOLAR_DESTINATION CALL FUNCTION 'S_TWB_U_GET_SOLAR_DESTINATION' EXPORTING iv_component = iv_object_type = ref_testcase IMPORTING ev_info_destination = ls_info_destination ev_message = ls_message TABLES list_of_destinations = gt_info_destination.

STREE_RAISE_MESSAGE CALL FUNCTION 'STREE_RAISE_MESSAGE' EXPORTING message = ls_message.




S_TWB_TC_INFO CALL FUNCTION 'S_TWB_TC_INFO' DESTINATION lv_destination EXPORTING iv_names = lt_tc_names TABLES tc_info = lt_tc_info EXCEPTIONS communication_failure = 1 MESSAGE lv_rfc_message system_failure = 1 MESSAGE lv_rfc_message.

SO_EXPRESS_FLAG_SET CALL FUNCTION 'SO_EXPRESS_FLAG_SET' EXPORTING * client = ' ' text_info = ls_text_info popup_title = text-001 TABLES rec_tab = lt_receivers.

TESTPROXY_FRONTEND_GET CALL FUNCTION 'TESTPROXY_FRONTEND_GET' DESTINATION p_ess_dest EXPORTING i_user = sy-uname IMPORTING es_testproxy_info = ps_testproxy_info * E_TESTPROXY_INFOSTRING = EXCEPTIONS testproxy_type_not_supported = 1 no_testproxy_found = 2 communication_failure = 99 MESSAGE lv_msg_text system_failure = 99 MESSAGE lv_msg_text OTHERS = 100.

DOCU_GET_FOR_F1HELP CALL FUNCTION 'DOCU_GET_FOR_F1HELP' EXPORTING id = 'DT' langu = lv_language object = lv_text_object IMPORTING head = ls_header TABLES line = lt_lines EXCEPTIONS ret_code = 1.

HELP_DOCULINES_SHOW CALL FUNCTION 'HELP_DOCULINES_SHOW' EXPORTING cucol = 10 curow = 3 help_infos = ls_help_info not_help = ' ' overlay_header = ls_header classic_sapscript = ' ' TABLES excludefun = lt_exclude helplines = lt_lines.

S_TWB_U_CHECK_FEATURE CALL FUNCTION 'S_TWB_U_CHECK_FEATURE' EXPORTING iv_function_module = 'S_TWB_U_CALL_TA_STPFE' iv_destination = lv_rfc_dest IMPORTING ev_function_possible = sw_call_ta_stpfe_possible es_message = ls_message.

STREE_GET_UNIQUE_ID CALL FUNCTION 'STREE_GET_UNIQUE_ID' IMPORTING unique_id = lv_guid message = ls_message.

S_TWB_U_CALL_TA_STPFE CALL FUNCTION 'S_TWB_U_CALL_TA_STPFE' DESTINATION lv_rfc_dest STARTING NEW TASK lv_guid EXCEPTIONS communication_failure = 99 MESSAGE lv_msg_text system_failure = 99 MESSAGE lv_msg_text.



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