SAP Program RSARCH15 - Program for Building Indexes from Archive Files

Description
This is an example program which shows the use of the function modulesfor creating an index from existing archive files. You can readindividual, chosen data objects from archive files and display SAPsystem data using the index. The example program RSARCH13 readsdata objects from archive files.
This program notes the data object ID, the archive file logical name andthe offset in bytes of the data object, and saves the data with thearchiving object name in the index table ARCH_IDX.
The index can also be built in parallel to the delete program. You mustset the Construct index indicator in Customizing for thearchiving object, under the delete program settings.
The following function modules are used:

  • ARCHIVE_OPEN_FOR_READ

  • ARCHIVE_GET_CUSTOMIZING_DATA

  • ARCHIVE_GET_NEXT_OBJECT

  • ARCHIVE_ADMIN_SAVE_INDEX

  • ARCHIVE_CLOSE_FILE

  • ARCHIVE_ADMIN_SET_STATUS
  • Precondition
    You must have first created archive files and afterwards deleted thedata in the database before you can subsequently construct an index overthe archive files.