SAP Reports / Programs | Basis Components | Change & Transport System | Transport Organizer(BC-CTS-ORG) SAP BC

RSVCAR07 SAP ABAP Report - Version Management - Archiving: Restore







RSVCAR07 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program restores archived versions of Repository objects from the archive to the version database...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 RSVCAR07 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 RSVCAR07. "Basic submit
SUBMIT RSVCAR07 AND RETURN. "Return to original report after report execution complete
SUBMIT RSVCAR07 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: ARCHIVE = Archive key
Selection Text: CONTROL = Control Data
Selection Text: TESTRUN = Test run
Title: Version Management - Archiving: Restore
Text Symbol: 001 = Delete:
Text Symbol: 002 = Read:
Text Symbol: 003 = No versions were restored from the archive.
Text Symbol: 004 = Following versions were restored from the archive:
Text Symbol: 005 = Following versions could not be restored:
Text Symbol: 006 = Following versions are contained in the read archive files:


INCLUDES used within this REPORT RSVCAR07

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:

ARCHIVE_OPEN_FOR_MOVE CALL FUNCTION 'ARCHIVE_OPEN_FOR_MOVE' EXPORTING object = gc_arc_obj test_mode = p_tstrun IMPORTING archive_read_handle = gv_read_handle archive_write_handle = gv_write_handle EXCEPTIONS OTHERS = 1.

ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING object = gc_arc_obj IMPORTING commit_count_for_delete_prg = gv_commit_max.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = gv_read_handle IMPORTING object_id = gv_objid_raw object_offset = gv_offset archive_name = gv_arch_name EXCEPTIONS end_of_file = 1 OTHERS = 2.

SVRS_CONVERT_ARCH_OBJID CALL FUNCTION 'SVRS_CONVERT_ARCH_OBJID' EXPORTING objid_raw = gv_objid_raw IMPORTING objid = gv_objid.

SVRS_APPEND_OBJECT_FROM_ARCH CALL FUNCTION 'SVRS_APPEND_OBJECT_FROM_ARCH' EXPORTING handle = gv_read_handle CHANGING data = gs_data.

SVRS_ARCHIVE_ADMIN_DELETE_INDX CALL FUNCTION 'SVRS_ARCHIVE_ADMIN_DELETE_INDX' EXPORTING object_id = gv_objid archivekey = gv_arch_name object_offset = gv_offset.

SVRS_RELOAD_ARCHIVE_OBJECT CALL FUNCTION 'SVRS_RELOAD_ARCHIVE_OBJECT' EXPORTING object = gs_data EXCEPTIONS non_matching_vrsd = 1 OTHERS = 2.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = gv_write_handle EXCEPTIONS OTHERS = 1.

SVRS_DISPLAY_ARCH_VERSION_LIST CALL FUNCTION 'SVRS_DISPLAY_ARCH_VERSION_LIST' EXPORTING title_line = 'Folgende Versionen sind in den gelesenen Archivdateien enthalen:'(006) TABLES arch_objects = gt_reloaded_objects.

SVRS_DISPLAY_ARCH_VERSION_LIST CALL FUNCTION 'SVRS_DISPLAY_ARCH_VERSION_LIST' EXPORTING title_line = 'Folgende Versionen wurden aus dem Archiv zurückgeladen:'(004) TABLES arch_objects = gt_reloaded_objects.

SVRS_DISPLAY_ARCH_VERSION_LIST CALL FUNCTION 'SVRS_DISPLAY_ARCH_VERSION_LIST' EXPORTING title_line = 'Folgende Versionen konnten nicht zurückgeladen werden:'(005) TABLES arch_objects = gt_non_reloadable_objects.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = gv_read_handle EXCEPTIONS OTHERS = 1.



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