SAP Reports / Programs

RHCOPYSTRUCT SAP ABAP Report - Copy structures







RHCOPYSTRUCT is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The report copies the structure specified in the selection screen to the specified plan verison...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 RHCOPYSTRUCT into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

RE_RHCOPYSTRUCT - Copy structures


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 RHCOPYSTRUCT. "Basic submit
SUBMIT RHCOPYSTRUCT AND RETURN. "Return to original report after report execution complete
SUBMIT RHCOPYSTRUCT 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: ZPLVAR = Target plan version
Selection Text: TEST = Test
Selection Text: SANZ = Display copied records
Selection Text: INFTY = Infotypes to be copied
Title: Copy structures
Text Symbol: ZPL = Please specify a target plan version
Text Symbol: UMK = Inv. relationship
Text Symbol: TAI = Table infotype
Text Symbol: TAB = Error copy
Text Symbol: STA = Only SPACE (=all)/1 allowed for data status
Text Symbol: PL2 = in table 777P/778P.
Text Symbol: PL1 = The target plan version is not defined
Text Symbol: OAN = Number of copied objects :
Text Symbol: INV = been copied
Text Symbol: INF = Infotype 1000 is always copied too
Text Symbol: IAN = Number of copied records :
Text Symbol: GEG = --> and inverse rltshp
Text Symbol: ERR = Error copy table infotype
Text Symbol: AUT = No authorization for target plan version
Text Symbol: 030 = Error When Copying
Text Symbol: 021 = Test run
Text Symbol: 020 = Copied records:
Text Symbol: 017 = Copied objects:
Text Symbol: 016 = Copy structures
Text Symbol: 011 = Name
Text Symbol: 009 = Var. data
Text Symbol: 008 = Validity
Text Symbol: 007 = Prio.
Text Symbol: 006 = Status
Text Symbol: 005 = Subtyp
Text Symbol: 004 = Infotyp
Text Symbol: 003 = Object abbr.
Text Symbol: 002 = Object
Text Symbol: 000 = T E S T R U N


INCLUDES used within this REPORT RHCOPYSTRUCT

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:

RH_GET_NEXT_NUMBER CALL FUNCTION 'RH_GET_NEXT_NUMBER' EXPORTING EXT_NUMBER = NEW_OBJID OTYPE = OBJEC-OTYPE PLVAR = ZPLVAR TEST_MODE = TEST IMPORTING NUMBER = NEW_OBJID EXCEPTIONS OTHERS = 8.

RH_VIEW_ENTRY_INSERT CALL FUNCTION 'RH_VIEW_ENTRY_INSERT' EXPORTING view_entry = lv_view_entry.

RH_READ_INFTY CALL FUNCTION 'RH_READ_INFTY' EXPORTING AUTHORITY = 'DISP' INFTY = RITU_INFTY ISTAT = PC-ISTAT INFTB = 0 " Note 740546 TABLES INNNN = INFTY_TAB OBJECTS = OBJEC_INNN EXCEPTIONS ALL_INFTY_WITH_SUBTY = 1 NOTHING_FOUND = 2 NO_OBJECTS = 3 WRONG_CONDITION = 4 OTHERS = 5.

RH_CLEAR_PLOG_TAB CALL FUNCTION 'RH_CLEAR_PLOG_TAB'.

RH_INVERT_RELA_INFTY CALL FUNCTION 'RH_INVERT_RELA_INFTY' EXPORTING P1001_IMP = p1001 IMPORTING P1001_EXP = P1001_NEW EXCEPTIONS RELATION_NOT_REVERSIBLE = 1 OTHERS = 2.

RH_BASE_AUTHORITY_CHECK CALL FUNCTION 'RH_BASE_AUTHORITY_CHECK' EXPORTING fcode = 'INSE' plvar = infty_tab-plvar otype = infty_tab-otype infty = infty_tab-infty subty = infty_tab-subty istat = infty_tab-istat EXCEPTIONS no_base_authority = 1 OTHERS = 2.

RH_STRU_AUTHORITY_CHECK CALL FUNCTION 'RH_STRU_AUTHORITY_CHECK' EXPORTING plvar = -plvar otype = -sclas objid = -sobid with_base_ac = ' ' EXCEPTIONS no_stru_authority = 1 no_stru_authority_hyper = 2 no_stru_authority_at_all = 3 no_base_authority = 4 OTHERS = 5.

RH_UPDATE_DATABASE CALL FUNCTION 'RH_UPDATE_DATABASE' EXPORTING VTASK = 'D' EXCEPTIONS CORR_EXIT = 1 OTHERS = 2.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING I_BUFFER_ACTIVE = 'X' I_CALLBACK_PROGRAM = G_REPID IS_LAYOUT = GS_LAYOUT IT_FIELDCAT = GT_FIELDCAT[] * IT_SORT = GT_SORT[] IT_EVENTS = GT_EVENTS[] TABLES T_OUTTAB = AUSGABE_TAB EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING I_LIST_TYPE = 0 IMPORTING ET_EVENTS = E03_LT_EVENTS.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.



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