Fonction SAP ARCHIVE_ADMIN_SAVE_INDEX - Create index table ARCH_IDX for selection of individual data objects

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ARCHIVEKEY ARCH_IDX-ARCHIVEKEY C 20
OBJECT ARCH_IDX-OBJECT C 10 Archiving Object Name
OBJECT_ID ARCH_IDX-OBJECT_ID C 50 Data Object Key
OBJECT_OFFSET ARCH_IDX-OFFSET I 4 0 X Offset of Data Object in the Archive

Funktionality
The archiving object OBJECT, its Data object IDsOBJECT_ID and its Archive key ARCHIVEKEY are stored inthe Index table ARCH_IDX with this function module. This Indextable can then be used to find out in which archive file a particulardata object is stored.
When the Index has been constructed, you can access the Index tableARCH_IDX with the function modulesARCHIVE_ADMIN_READ_INDEX and ARCHIVE_READ_OBJECT.

  • Example 1

  • DATA: OBJECT LIKE ARCH_IDX-OBJECT,
    OBJECT_ID LIKE ARCH_IDX-OBJECT_ID,
    ARCHIVEKEY LIKE ARCH_IDX-ARCHIVEKEY.
    ...
    CALL FUNCTION 'ARCHIVE_ADMIN_SAVE_INDEX'
    EXPORTING
    OBJECT = OBJECT
    OBJECT_ID = OBJECT_ID
    ARCHIVEKEY = ARCHIVEKEY.
    • Example 2

    • The delete program RSARCH06, which fills the Index tableARCH_IDX contains a detailed example.

      Additional notes
      You can delete index entries with the program RSARCH14. You canre-create index entries from archive files with the programRSARCH15.