Functionality This function module is used to read the data records of a data objectsequentially. In the first call after the function module ARCHIVE_GET_NEXT_OBJECT > has been called, the first data record is returned automatically andfrom then onwards the following data records until there are no morerecords in the data object.
- Example 1: Only Unicode-enable for pure character structures>
DATA: HANDLE LIKE SY-TABIX. NON_UC_BUFFER LIKE ARC_BUFFER-SEGMENT, NON_UC_STRUCTURE LIKE ARC_BUFFER-RNAME. CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' EXPORTING ARCHIVE_HANDLE = HANDLE IMPORTING RECORD = NON_UC_BUFFER RECORD_STRUCTURE = NON_UC_STRUCTURE EXCEPTIONS END_OF_OBJECT = 01 INTERNAL_ERROR = 02 WRONG_ACCESS_TO_ARCHIVE = 03.
- Example 2>
For detailed Unicode-enabled examples that use the parameter RECORD_REF>, see sample programs SBOOKR> and SBOOKR_2>.Additional Information To read an archive file sequentially, it is sufficient if the next dataobject is read in an outer DO> loop with the function module ARCHIVE_GET_NEXT_OBJECT> and then the data records of the data objectin an inner DO> loop with the function module ARCHIVE_GET_NEXT_RECORD>.Description The parameter RECORD_LENGTH> provides the length of the datarecord passed on via the parameter RECORD>.Description INCLUDE 'ARCHIVE_PARAM_RECORD_REF_GET' OBJECT DOKU ID TX A comprehensive example is contained in programs SBOOKR and SBOOKR_2 ( Transaktion SE38>). INCLUDE 'ARCHIVE_PARAM_HANDLE_READ' OBJECT DOKU ID TX Note that in the reload program, only the read handle can be used inthis context. INCLUDE 'ARCHIVE_PARAM_AUTOMATIC_CONV' OBJECT DOKU ID TX
|