Creating ADK Indexes and Using Them to Access Archive
The ADK index can be built by the delete program or by a separate index build program.
We recommend you use the
Archive Information System (SAP AS) instead of creating an ADK index.
The Index Build Allowed indicator is set in the Definition of the Archiving Object.
A unique value was passed for the function module ARCHIVE_NEW_OBJECT parameter OBJECT_ID when writing the archive. This value is used for creating the ADK index.
Creating an ADK Index in the Delete Program
When calling ARCHIVE_GET_CUSTOMIZING_DATA, import MAINTAIN_INDEX to get the value for the index indicator (whether an index is to be built, see
Archiving Object-Specific Customizing)
- After ARCHIVE_GET_NEXT_OBJECT, call the subroutine you developed to build the ADK index.
For an example of this, see the SBOOKD sample program.
Creating an ADK Index in a Separate Program
For an example of a separate program for creating an ADK index, see the SBOOKI sample program.
Using an Existing ADK Index to Access Individual Data Objects
Open archive file and read data object into data container – ARCHIVE_READ_OBJECT
Pass the archiving object name and the index entry. ADK returns an archive handle for the
opened archive file.Use archive handle to access data in the data container – Analog to procedure in read program
To determine the name(s) of the class-specific read function module(s), see Developing Read Programs.
For an example of a program for using an ADK index, see the SBOOKS sample program.