!--a11y-->
Prerequisites
Use
Read programs are used to read both archiving object and archiving class data from archive files.
Procedure
Function Module Call Sequence
This function module:
As of SAP Web Application Server 6.10, you use this function module to get the structures of the initialization data you passed in the write program using ARCHIVE_PUT_INIT_DATA.
As of SAP Web Application Server 6.10, you use this function module to get the initialization data you passed in the write program using ARCHIVE_PUT_INIT_DATA.
The following steps (4 - 7) must be called in a loop for all data objects to be read.
You use this function module to read the next data object from the archive files opened.
This function module:

The parameter OBJECT_ID must syntactically be CHAR.
Call this function module in a loop within the loop started in step 4 until no more records can be read from ADK’s data container.
In the Unicode context, there are two possibilities for calling this function module:

In the Unicode context, it is no longer possible to use the CHAR record buffer variable for generic reading of records for structures containing non-character-like fields.
For each archiving class, there may be one or two (or possibly more) read function modules. After reading the function module documentation, determine which one you want to use:
To determine the name of the class-specific read function module,
End of loop
You use this function module to pass statistics to ADK after the data is read from the archive files.
You use this function module to get the statistics ADK collected. You can then use these statistics to create your own specialized log.
You use this function module to output the standard archiving statistics log with the relevant information for the read program. This function module must be called directly before ARCHIVE_CLOSE_FILE.
This function module:
Result
When you finish developing your read program, enter it for your archiving object in transaction AOBJ.
Example
Sample programs SBOOKR, SBOOKR_2, SBOOK_3, and SFLIGHTR (for use of archiving classes)