RHCOPY00 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report copies an object in accordance with a source object, and adds it either - 1 : 1 or - with a new name but always with a new object ID...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 RHCOPY00 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
RE_RHCOPY00 - Copy Object
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.
Selection Text: ANZEIGE = Display copied records
Selection Text: NEWBEZ = New name
Selection Text: NEWOBJ = Target object ID
Selection Text: NEWSHORT = New abbreviation
Selection Text: RELCO = Copy relationships
Selection Text: TEST = Test
Title: Copy Object
Text Symbol: 008 = S
Text Symbol: 009 = Validity (from - to)
Text Symbol: 010 = Var. data
Text Symbol: 011 = SeqNo.
Text Symbol: 012 = Test run
Text Symbol: 013 = Copied objects are not displayed
Text Symbol: 014 = Comments
Text Symbol: 007 = Subty
Text Symbol: 000 = Copy
Text Symbol: 001 = You may only copy from one source object
Text Symbol: 002 = Copy objects
Text Symbol: 003 = already exists
Text Symbol: 004 = Do(es) not exist
Text Symbol: 005 = Plan ver.
Text Symbol: 006 = Infty
Text Symbol: STA = Only SPACE (= all) or 1 allowed for data status
Text Symbol: SSS = Error (PercentValidat)
Text Symbol: PLV = Please specify plan version
Text Symbol: OTY = Please specify object type
Text Symbol: OBJ = Please specify Object ID
Text Symbol: NEW = Please specify target object ID
Text Symbol: ERR = Error copy table infotype
Text Symbol: TTT = Following infotype records will not be copied
INCLUDE FPH5ATOP.
No SAP DATABASE tables are accessed within this REPORT code!
RH_GET_NEXT_NUMBER CALL FUNCTION 'RH_GET_NEXT_NUMBER' "NADB90K002406 EXPORTING "NADB90K002406 action = 'CHECK' "NADB90K002406 ext_number = newobj "NADB90K002406 plvar = pchplvar "NADB90K002406 otype = pchotype "NADB90K002406 test_mode = test "NADB90K002406 EXCEPTIONS "NADB90K002406 invalid_action = 1 "NADB90K002406 number_must_be_zero = 2 "NADB90K002406 invalid_object = 3 "NADB90K002406 no_external_interval_found = 4 "NADB90K002406 no_internal_interval_found = 5 "NADB90K002406 invalid_number = 6 "NADB90K002406 no_more_numbers_available = 7 "NADB90K002406 OTHERS = 8 "NADB90K002406 . "NADB90K002406
RH_GET_NEXT_NUMBER CALL FUNCTION 'RH_GET_NEXT_NUMBER' EXPORTING ext_number = newobj * PLVAR = OBJEC-PLVAR "WARK74363 plvar = pc-plvar "WARK74363 * OTYPE = OBJEC-OTYPE "WARK74363 otype = pc-otype "WARK74363 test_mode = test "rw20K062027 IMPORTING number = newobj.
RH_VIEW_ENTRY_INSERT CALL FUNCTION 'RH_VIEW_ENTRY_INSERT' EXPORTING view_entry = view.
RH_DEACTIVATE_STRUCTURED_AC * CALL FUNCTION 'RH_DEACTIVATE_STRUCTURED_AC'.
RH_GET_EXTERNAL_OBJECT_INFO call function 'RH_GET_EXTERNAL_OBJECT_INFO' EXPORTING otype = infty_tab-varyf(2) IMPORTING i77eo = ls_77eo EXCEPTIONS no_external_object = 1 others = 2.
RH_INSERT_INFTY_DIRECT CALL FUNCTION 'RH_INSERT_INFTY_DIRECT' EXPORTING VTASK = 'B' * ORDER_FLG = 'X' * COMMIT_FLG = 'X' * AUTHY = 'X' * OLD_TABNR = ' ' REPID = 'RHCOPY00' FORM = 'GET_TABDATA' * KEEP_LUPD = * WORKF_ACTV = 'X' TABLES INNNN = plog_tab_insert * ILFCODE = EXCEPTIONS NO_AUTHORIZATION = 1 ERROR_DURING_INSERT = 2 REPID_FORM_INITIAL = 3 CORR_EXIT = 4 BEGDA_GREATER_ENDDA = 5 OTHERS = 6.
RH_INSERT_INFTY CALL FUNCTION 'RH_INSERT_INFTY' EXPORTING FCODE = 'INSE' VTASK = 'B' * ORDER_FLG = 'X' * COMMIT_FLG = 'X' * AUTHY = 'X' * PPPAR_IMP = * OLD_TABNR = ' ' REPID = 'RHCOPY00' FORM = 'GET_TABDATA' * KEEP_LUPD = * WORKF_ACTV = 'X' TABLES INNNN = plog_tab_insert * ILFCODE = EXCEPTIONS NO_AUTHORIZATION = 1 ERROR_DURING_INSERT = 2 REPID_FORM_INITIAL = 3 CORR_EXIT = 4 BEGDA_GREATER_ENDDA = 5 OTHERS = 6.
RH_UPDATE_BUFFER CALL FUNCTION 'RH_UPDATE_BUFFER'.
RH_UPDATE_DATABASE CALL FUNCTION 'RH_UPDATE_DATABASE' EXPORTING VTASK = 'D' * BUFFER_UPD = ' ' * ORDER_FLG = 'X' * COMMIT_FLG = 'X' * CLEAR_BUFFER = 'X' * KEEP_LUPD = * WORKF_ACTV = 'X' EXCEPTIONS CORR_EXIT = 1 OTHERS = 2.
RH_READ_INFTY CALL FUNCTION 'RH_READ_INFTY' "VWMB038230 TABLES "VWMB038230 innnn = plog_tab "VWMB038230 objects = object_tab "VWMB038230 EXCEPTIONS "VWMB038230 all_infty_with_subty = 1 "VWMB038230 nothing_found = 2 "VWMB038230 no_objects = 3 "VWMB038230 wrong_condition = 4 "VWMB038230 OTHERS = 5. "VWMB038230
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING I_BUFFER_ACTIVE = 'X' i_callback_top_of_page = 'TOP_OF_PAGE' i_callback_program = g_repid is_layout = gs_layout it_fieldcat = gt_fieldcat[] TABLES t_outtab = output_tab EXCEPTIONS program_error = 1 OTHERS = 2.
RH_TURN_RELATION CALL FUNCTION 'RH_TURN_RELATION' "VWME062027 EXPORTING "VWME062027 otype = p1001-sclas "VWME062027 EXCEPTIONS "VWME062027 relation_not_reversible = 1 "VWME062027 OTHERS = 2. "VWME062027
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = 'RHCOPY00' i_structure_name = 'wplog' CHANGING ct_fieldcat = e01_lt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_list_top_of_page.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.