Fonction SAP ARCHIVE_ADMIN_READ_INDEX -

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
OBJECT ARCH_IDX-OBJECT C 10 Archiving Object Name
OBJECT_ID ARCH_IDX-OBJECT_ID C 50 Data Object Key

Paramètre Reférence Type Long. Description
ARCHIVEKEY ARCH_IDX-ARCHIVEKEY C 20
OBJECT_OFFSET ARCH_IDX-OFFSET I 4

Exception Description
NO_RECORD_FOUND No Data Object Found

Functionality
The Archive key ARCHIVEKEY from the Index tableARCH_IDX for the Archiving object OBJECT and for aparticular data object OBJECT_ID is read with thisfunction module.
This function module is used, e.g. by the function moduleARCHIVE_READ_OBJECT to access individual selecteddata objects from an Archive file.

  • Example 1

  • DATA: OBJECT LIKE ARCH_IDX-OBJECT,
    OBJECT_ID LIKE ARCH_IDX-OBJECT_ID,
    ARCHIVEKEY LIKE ARCH_IDX-ARCHIVEKEY.
    ...
    CALL FUNCTION 'ARCHIVE_ADMIN_READ_INDEX'
    EXPORTING
    OBJECT = OBJECT
    OBJECT_ID = OBJECT_ID
    IMPORTING
    ARCHIVEKEY = ARCHIVEKEY
    EXCEPTIONS
    NO_RECORD_FOUND = 1.
    • Example 2

    • The program RSARCH13, which reads individual data objects fromthe archive file contains a detailed example.

      Additionaal notes
      You can delete Index entries from the table ARCH_IDX with theprogram RSARCH14. Non-existent Index entries can be re-createdfrom Archiving files in the program RSARCH15.