RVBARCHD is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Short description of batch where-used list archiving: Batch where-used records are grouped by material number/batch...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 RVBARCHD into the relevant SAP transactions such as SE38 or SE80
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.
Deletion of Archived Batch Where-Used Records from the Database
Selection Text: TESTARCH = Test run / Do not delete
Selection Text: PROT = Detailed Log
Text Symbol: I05 = Archive index is not created. The archive index can
Text Symbol: I06 = subsequently (->archive mgmt; TA: SARA) be compiled
Text Symbol: I07 = Index was compiled, but with problems
Text Symbol: I08 = Index not generated for following objects:
Text Symbol: I09 = Archive index completely compiled
Text Symbol: I10 = Archive status set to 'index created'
Text Symbol: I11 = Archive status could not be changed
Text Symbol: I12 = Compilation of archive index can be completed
Text Symbol: P01 = Deletion run/batch where-used data
Text Symbol: P02 = TEST RUN / Nothing deleted
Text Symbol: P04 = Plant Material Batch Mat. Doc. Year Line Deleted
Text Symbol: P09 = Detailed Log
Text Symbol: P10 = Short Log
Text Symbol: S00 = Report
Text Symbol: S01 = Host Name
Text Symbol: S02 = SAP System
Text Symbol: S03 = Client
Text Symbol: S04 = SAP Release
Text Symbol: S05 = Database System
Text Symbol: S06 = User
Text Symbol: 000 = Selected Archive Files:
Text Symbol: 001 = Run Option
Text Symbol: 004 = Data records could not be removed from table CHVW
Text Symbol: 005 = Check these data records
Text Symbol: 006 = Customizing/Info
Text Symbol: 008 = Log Option
Text Symbol: 010 = Test Run
Text Symbol: 011 = Upd. Run
Text Symbol: 012 = Archive index automatically compiled upon deletion
Text Symbol: 013 = Archive index has to be compiled manually after deletion
Text Symbol: 014 = All archived data records were deleted
Text Symbol: 015 = All archived data records can be deleted
Text Symbol: 017 = Archiving Session:
Text Symbol: 018 = Archive File :
Text Symbol: 019 = No. of Objects :
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
VB_BATCH_DEFINITION CALL FUNCTION 'VB_BATCH_DEFINITION' IMPORTING KZDCH = KZDCH EXCEPTIONS OTHERS = 0.
ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING OBJECT = OBJECT IMPORTING COMMIT_COUNT_FOR_DELETE_PRG = COMMCNT MAINTAIN_INDEX = INDEX.
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_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = handle TABLES table = stat_itab.
ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING OBJECT = OBJECT TEST_MODE = TESTARCH IMPORTING ARCHIVE_HANDLE = HANDLE TABLES SELECTED_FILES = SELECT_FILES EXCEPTIONS FILE_ALREADY_OPEN = 01 FILE_IO_ERROR = 02 INTERNAL_ERROR = 03 NO_FILES_AVAILABLE = 04 OBJECT_NOT_FOUND = 05 OPEN_ERROR = 06 NOT_AUTHORIZED = 07.
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.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
RVBARCHD - Deletion of Archived Batch Where-Used Records in the Database RVBARCHD - Deletion of Archived Batch Where-Used Records in the Database RVBARCHB - Reloading of Archived Batch Where-Used Records into the Database RVBARCHB - Reloading of Archived Batch Where-Used Records into the Database RVBARCHA - Decompilation of Archive Indexes for Batch Where-Used Records RVBARCHA - Decompilation of Archive Indexes for Batch Where-Used Records