SAP Reports / Programs

RVBARCHI SAP ABAP Report - Compilation of Archive Indexes for Batch Where-Used Records







RVBARCHI is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RVBARCHI 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 RVBARCHI. "Basic submit
SUBMIT RVBARCHI AND RETURN. "Return to original report after report execution complete
SUBMIT RVBARCHI VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Program for Index Compilation from Archive Files
Selection Text: TESTARCH = Test run
Title: Compilation of Archive Indexes for Batch Where-Used Records
Text Symbol: S06 = User
Text Symbol: S05 = Database System
Text Symbol: S04 = SAP Release
Text Symbol: S03 = Client
Text Symbol: S02 = SAP System
Text Symbol: S01 = Host Name
Text Symbol: S00 = Report
Text Symbol: P02 = TEST RUN / No index compilation
Text Symbol: P01 = Compilation of archive indices/bch wh.-used recds
Text Symbol: I10 = Archive status could not be changed
Text Symbol: I08 = Compilation of archive index can be completed
Text Symbol: I07 = Index compilation test run completed w. problems
Text Symbol: I06 = Status in archive management was not changed
Text Symbol: I05 = Check the consistency of the archive index
Text Symbol: I04 = Index was compiled, but with problems
Text Symbol: I03 = Archive status set to 'index created'
Text Symbol: I02 = Archive index completely compiled
Text Symbol: F03 = Check compiled index data ...
Text Symbol: F02 = Save compiled index data ...
Text Symbol: F01 = Read archive and prepare index ...
Text Symbol: 011 = Upd. Run
Text Symbol: 010 = Test Run
Text Symbol: 004 = Number of Objects:
Text Symbol: 003 = Archive File:
Text Symbol: 002 = Archiving Session:
Text Symbol: 001 = Run Option
Text Symbol: 000 = Selected Archive Files:


INCLUDES used within this REPORT RVBARCHI

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:

VB_BATCH_DEFINITION CALL FUNCTION 'VB_BATCH_DEFINITION' IMPORTING KZDCH = KZDCH.

ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING OBJECT = OBJECT IMPORTING COMMIT_COUNT_FOR_DELETE_PRG = COMMCNT * MAINTAIN_INDEX = INDEX EXCEPTIONS OBJECT_NOT_FOUND = 1 OTHERS = 2.

ARCHIVE_OPEN_FOR_READ CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ' EXPORTING OBJECT = OBJECT IMPORTING ARCHIVE_HANDLE = HANDLE TABLES ARCHIVE_FILES = ARCH_FILES SELECTED_FILES = SELECT_FILES EXCEPTIONS FILE_ALREADY_OPEN = 1 FILE_IO_ERROR = 2 INTERNAL_ERROR = 3 NO_FILES_AVAILABLE = 4 OBJECT_NOT_FOUND = 5 OPEN_ERROR = 6 NOT_AUTHORIZED = 7.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING PERCENTAGE = PERCENT TEXT = TEXT-F01.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING ARCHIVE_HANDLE = HANDLE IMPORTING OBJECT_ID = OBJECT_ID OBJECT_OFFSET = OFFSET ARCHIVE_NAME = ARKEY EXCEPTIONS END_OF_FILE = 01.

ARCHIVE_GET_NEXT_RECORD CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' EXPORTING ARCHIVE_HANDLE = HANDLE IMPORTING RECORD_STRUCTURE = record_type record_ref = buffer_ref "Unicode EXCEPTIONS END_OF_OBJECT = 01.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING ARCHIVE_HANDLE = HANDLE.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING TEXT = TEXT-F02.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING TEXT = TEXT-F03.

ARCHIVE_ADMIN_SET_STATUS CALL FUNCTION 'ARCHIVE_ADMIN_SET_STATUS' EXPORTING FILES_ARE_CONVERTED = ' ' INDEX_CREATED = 'X' TABLES ARCHIVE_FILES = ARCHIVE_FILES EXCEPTIONS CANNOT_CHANGE_STATUS = 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 RVBARCHI or its description.