SAP Reports / Programs

RSCATCOPY SAP ABAP Report - CATT - Copy test cases







RSCATCOPY is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Program to copy selected 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 RSCATCOPY 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 RSCATCOPY. "Basic submit
SUBMIT RSCATCOPY AND RETURN. "Return to original report after report execution complete
SUBMIT RSCATCOPY 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: WITH = by
Selection Text: TESTCASE = Test case (original)
Selection Text: SUFFIX = Suffix
Selection Text: REPLACE = Replace in test case names
Selection Text: PREFIX = Prefix
Selection Text: DEVCLASS = Development class of copies
Title: CATT - Copy test cases
Text Symbol: 825 = CATT - Copy test cases
Text Symbol: 824 = No test case marked
Text Symbol: 823 = Copies created
Text Symbol: 822 = Process cancelled
Text Symbol: 821 = Error
Text Symbol: 812 = Test case original in &
Text Symbol: 811 = Test case name of copy already exists (not unique)
Text Symbol: 809 = Test case & already exists
Text Symbol: 242 = Specify a development class
Text Symbol: 241 = Invalid special characters in string
Text Symbol: 175 = No test case found
Text Symbol: 104 = Message
Text Symbol: 103 = Title
Text Symbol: 102 = Copy
Text Symbol: 101 = Test
Text Symbol: 100 = Change testcase names of copies
Text Symbol: 079 = Specify a test case
Text Symbol: 078 = Test case & does not exist
Text Symbol: 005 = Test case attribs
Text Symbol: 004 = Copy
Text Symbol: 003 = Check test case names and refresh display
Text Symbol: 002 = Deselect All
Text Symbol: 001 = Select All


INCLUDES used within this REPORT RSCATCOPY

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:

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = dyname dynumb = dynumb translate_to_upper = 'X' * REQUEST = ' ' * PERFORM_CONVERSION_EXITS = ' ' * PERFORM_INPUT_CONVERSION = ' ' * DETERMINE_LOOP_INDEX = ' ' TABLES dynpfields = dynpfields EXCEPTIONS invalid_abapworkarea = 1 invalid_dynprofield = 2 invalid_dynproname = 3 invalid_dynpronummer = 4 invalid_request = 5 no_fielddescription = 6 invalid_parameter = 7 undefind_error = 8 double_conversion = 9 stepl_not_found = 10 OTHERS = 11 .

REPOSITORY_INFO_SYSTEM_F4 CALL FUNCTION 'REPOSITORY_INFO_SYSTEM_F4' EXPORTING * object_type = 'C' object_type = 'GT' "TL13082002 object_name = dynpfields-fieldvalue suppress_selection = ' ' variant = 'SAP&STANDARD' "TL13082002 multiple_selection = 'X' TABLES objects_selected = objects_selected EXCEPTIONS cancel = 1 wrong_type = 2 OTHERS = 3.

RS_CATT_MAINTAIN CALL FUNCTION 'RS_CATT_MAINTAIN' EXPORTING ablnr = tc_name teilobjekt = 'ATTR' aktion = 'SHOW' EXCEPTIONS wrong_call = 1 internal_error = 2 OTHERS = 3.

HELP_START CALL FUNCTION 'HELP_START' EXPORTING help_infos = help_infos * IMPORTING * SELECTION = * SELECT_VALUE = * RSMDY_RET = TABLES dynpselect = dynpselect dynpvaluetab = dynpvaluetab .

RS_CATT_MAINTAIN CALL FUNCTION 'RS_CATT_MAINTAIN' EXPORTING ablnr = tc_name teilobjekt = 'ATTR' aktion = 'SHOW' EXCEPTIONS wrong_call = 1 internal_error = 2 OTHERS = 3.

TR_PRESENT_REQUESTS_SEL_POPUP CALL FUNCTION 'TR_PRESENT_REQUESTS_SEL_POPUP' EXPORTING iv_organizer_type = trwbo_wbo iv_username = sy-uname is_selection = ls_selection is_new_request_props = ls_new_request_props IMPORTING es_selected_request = ls_selected_request.

TR_READ_COMM CALL FUNCTION 'TR_READ_COMM' EXPORTING wi_trkorr = ls_selected_request-trkorr wi_dialog = ' ' wi_langu = sy-langu wi_sel_e070 = 'X' wi_sel_e071 = 'X' wi_sel_e071k = 'X' wi_sel_e07t = 'X' IMPORTING we_e070 = we_e070 we_e07t = we_e07t TABLES wt_e071 = l_e071 wt_e071k = l_e071k EXCEPTIONS not_exist_e070 = 1 no_authorization = 2.

TR_TADIR_INTERFACE CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING * WI_DELETE_TADIR_ENTRY = ' ' * WI_REMOVE_REPAIR_FLAG = ' ' * WI_SET_REPAIR_FLAG = ' ' wi_test_modus = ' ' wi_tadir_pgmid = 'R3TR' wi_tadir_object = 'SCAT' wi_tadir_obj_name = obj_name * WI_TADIR_KORRNUM = ' ' * WI_TADIR_SRCSYSTEM = ' ' * WI_TADIR_AUTHOR = ' ' wi_tadir_devclass = devcls wi_tadir_masterlang = masterlang * WI_TADIR_CPROJECT = ' ' * WI_TADIR_VERSID = ' ' * WI_REMOVE_GENFLAG = ' ' * WI_SET_GENFLAG = ' ' * WI_READ_ONLY = ' ' * IV_SET_EDTFLAG = ' ' IMPORTING new_gtadir_entry = gtadir new_tadir_entry = tadir EXCEPTIONS tadir_entry_not_existing = 1 tadir_entry_ill_type = 2 no_systemname = 3 no_systemtype = 4 original_system_conflict = 5 object_reserved_for_devclass = 6 object_exists_global = 7 object_exists_local = 8 object_is_distributed = 9 obj_specification_not_unique = 10 no_authorization_to_delete = 11 devclass_not_existing = 12 simultanious_set_remove_repair = 13 order_missing = 14 no_modification_of_head_syst = 15 pgmid_object_not_allowed = 16 masterlanguage_not_specified = 17 devclass_not_specified = 18 specify_owner_unique = 19 loc_priv_objs_no_repair = 20 gtadir_not_reached = 21 object_locked_for_order = 22 change_of_class_not_allowed = 23 no_change_from_sap_to_tmp = 24 OTHERS = 25 .

CAT_EM_COPY CALL FUNCTION 'CAT_EM_COPY' EXPORTING old_ablnr = t_tc2copy-tc_name new_ablnr = t_tc2copy-tc_nnam * OHNE_VARI = ' ' .

TR_TADIR_INTERFACE CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING * WI_DELETE_TADIR_ENTRY = ' ' * WI_REMOVE_REPAIR_FLAG = ' ' * WI_SET_REPAIR_FLAG = ' ' wi_test_modus = ' ' wi_tadir_pgmid = 'R3TR' * wi_tadir_object = 'SCAT' "06.08.02

DOKU_COPY_ALL CALL FUNCTION 'DOKU_COPY_ALL' EXPORTING generic_use = ' ' new_object = l_newdocu old_id = 'HY' old_object = l_olddocu old_typ = ' ' suppress_authority = 'X' suppress_enqueue = 'X' suppress_transport = ' ' EXCEPTIONS * HEADER_WITHOUT_TEXT = 1 * INDEX_WITHOUT_HEADER = 2 * NO_AUTHORITY_FOR_DEVCLASS_XXXX = 3 * NO_DOCU_FOUND = 4 * OBJECT_IS_ALREADY_ENQUEUED = 5 * OBJECT_IS_ENQUEUED_BY_CORR = 6 * TECHN_ENQUEUE_PROBLEM = 7 * USER_BREAK = 8 OTHERS = 9 .

TR_TADIR_INTERFACE * CALL FUNCTION 'TR_TADIR_INTERFACE' * EXPORTING ** WI_DELETE_TADIR_ENTRY = ' ' ** WI_REMOVE_REPAIR_FLAG = ' ' ** WI_SET_REPAIR_FLAG = ' ' * wi_test_modus = ' ' * wi_tadir_pgmid = 'R3TR' * wi_tadir_object = 'SCAT' * wi_tadir_obj_name = obj_name ** WI_TADIR_KORRNUM = ' ' ** WI_TADIR_SRCSYSTEM = ' ' ** WI_TADIR_AUTHOR = ' ' * wi_tadir_devclass = devcls * wi_tadir_masterlang = masterlang ** WI_TADIR_CPROJECT = ' ' ** WI_TADIR_VERSID = ' ' ** WI_REMOVE_GENFLAG = ' ' ** WI_SET_GENFLAG = ' ' ** WI_READ_ONLY = ' ' ** IV_SET_EDTFLAG = ' ' * IMPORTING * new_gtadir_entry = gtadir * new_tadir_entry = tadir * EXCEPTIONS * tadir_entry_not_existing = 1 * tadir_entry_ill_type = 2 * no_systemname = 3 * no_systemtype = 4 * original_system_conflict = 5 * object_reserved_for_devclass = 6 * object_exists_global = 7 * object_exists_local = 8 * object_is_distributed = 9 * obj_specification_not_unique = 10 * no_authorization_to_delete = 11 * devclass_not_existing = 12 * simultanious_set_remove_repair = 13 * order_missing = 14 * no_modification_of_head_syst = 15 * pgmid_object_not_allowed = 16 * masterlanguage_not_specified = 17 * devclass_not_specified = 18 * specify_owner_unique = 19 * loc_priv_objs_no_repair = 20 * gtadir_not_reached = 21 * object_locked_for_order = 22 * change_of_class_not_allowed = 23 * no_change_from_sap_to_tmp = 24 * OTHERS = 25 * .

TR_MODIFY_COMM CALL FUNCTION 'TR_MODIFY_COMM' EXPORTING wi_e070 = we_e070 wi_e07t = we_e07t wi_sel_e071 = 'X' wi_sel_e071k = 'X' TABLES wt_e071 = l_e071 wt_e071k = l_e071k EXCEPTIONS OTHERS = 20.

CAT_REF_DATA_GET CALL FUNCTION 'CAT_REF_DATA_GET' EXPORTING ablnr = t_tc2copy-tc_name IMPORTING title = t_tc2copy-twb_title EXCEPTIONS data_not_found = 1 OTHERS = 2.

S_TWB_A_AUTHORITY_CHECK CALL FUNCTION 'S_TWB_A_AUTHORITY_CHECK' EXPORTING iv_authority_check = 'X' iv_mode = 'I' iv_object = t_tc2copy-tc_nnam iv_object_type = t_tc2copy-twb_typ * IV_OBJECT_CLASS = 'SCAT' * IV_LANGUAGE = SY-LANGU * IV_SUPPRESS_CORR_CHECK = 'X' * IV_SUPPRESS_LANGUAGE_CHECK = 'X' * IMPORTING * EV_MAINTAIN_LANGUAGE = EXCEPTIONS canceled_in_corr = 1 enqueued_by_user = 2 enqueue_system_failure = 3 illegal_parameter_values = 4 locked_by_author = 5 no_modify_permission = 6 no_show_permission = 7 no_transport_permission = 8 no_run_permission = 9 permission_failure = 10 internal_error = 11 invalid_characters = 12 wrong_parameters = 13 OTHERS = 14 .

TR_TADIR_INTERFACE CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING * WI_DELETE_TADIR_ENTRY = ' ' * WI_REMOVE_REPAIR_FLAG = ' ' * WI_SET_REPAIR_FLAG = ' ' wi_test_modus = 'X' wi_tadir_pgmid = 'R3TR' wi_tadir_object = 'SCAT' wi_tadir_obj_name = obj_name * WI_TADIR_KORRNUM = ' ' * WI_TADIR_SRCSYSTEM = ' ' * WI_TADIR_AUTHOR = ' ' wi_tadir_devclass = devcls * WI_TADIR_MASTERLANG = ' ' * WI_TADIR_CPROJECT = ' ' * WI_TADIR_VERSID = ' ' * WI_REMOVE_GENFLAG = ' ' * WI_SET_GENFLAG = ' ' * WI_READ_ONLY = ' ' * IV_SET_EDTFLAG = ' ' IMPORTING new_gtadir_entry = gtadir new_tadir_entry = tadir EXCEPTIONS tadir_entry_not_existing = 1 tadir_entry_ill_type = 2 no_systemname = 3 no_systemtype = 4 original_system_conflict = 5 object_reserved_for_devclass = 6 object_exists_global = 7 object_exists_local = 8 object_is_distributed = 9 obj_specification_not_unique = 10 no_authorization_to_delete = 11 devclass_not_existing = 12 simultanious_set_remove_repair = 13 order_missing = 14 no_modification_of_head_syst = 15 pgmid_object_not_allowed = 16 masterlanguage_not_specified = 17 devclass_not_specified = 18 specify_owner_unique = 19 loc_priv_objs_no_repair = 20 gtadir_not_reached = 21 object_locked_for_order = 22 change_of_class_not_allowed = 23 no_change_from_sap_to_tmp = 24 OTHERS = 25 .

S_TWB_A_ATTRIBUTES_METHODS CALL FUNCTION 'S_TWB_A_ATTRIBUTES_METHODS' EXPORTING iv_action = 'EQ' iv_dialogue = ' ' iv_tc_name = t_tc2copy-tc_nnam iv_tc_type = t_tc2copy-twb_typ iv_language = sy-langu EXCEPTIONS OTHERS.

S_TWB_A_ATTRIBUTES_METHODS CALL FUNCTION 'S_TWB_A_ATTRIBUTES_METHODS' EXPORTING iv_action = 'DQ' iv_dialogue = ' ' iv_tc_name = t_tc2copy-tc_nnam iv_tc_type = t_tc2copy-twb_typ iv_language = sy-langu EXCEPTIONS OTHERS.

RS_CUA_EXISTENCE_CHECK





CALL FUNCTION 'RS_CUA_EXISTENCE_CHECK' EXPORTING program = program IMPORTING rcode = rc_cua.

RPY_MESSAGE_COMPOSE CALL FUNCTION 'RPY_MESSAGE_COMPOSE' EXPORTING language = sy-langu message_id = sy-msgid message_number = sy-msgno message_var1 = sy-msgv1 message_var2 = sy-msgv2 message_var3 = sy-msgv3 message_var4 = sy-msgv4 IMPORTING message_text = message_text * TABLES * LONGTEXT = EXCEPTIONS message_not_found = 1 OTHERS = 2 .

TRINT_SPLIT_OBJECT CALL FUNCTION 'TRINT_SPLIT_OBJECT' EXPORTING iv_obj_name = g_obj_name IMPORTING ev_prefix = g_prefix ev_stem = g_stem EXCEPTIONS invalid_prefix = 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 RSCATCOPY or its description.