Entering content frameProcedure documentation Creating ADK Indexes and Using Them to Access Archive Locate the document in its SAP Library structure

Use

The ADK index can be built by the delete program or by a separate index build program.

Note

We recommend you use the Structure link Archive Information System (SAP AS) instead of creating an ADK index.

Prerequisites

Procedure

Creating an ADK Index in the Delete Program

  1. 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 Structure link Archiving Object-Specific Customizing)
  1. 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

  1. Open archive file and read data object into data container – ARCHIVE_READ_OBJECT
  2. Pass the archiving object name and the index entry. ADK returns an archive handle for the

    opened archive file.

  3. 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.

Leaving content frame