Ansicht
Dokumentation

STATUS_ARCHIVE_GET_TABLE - Read Status Object from Archive (A.Class STATUS)

STATUS_ARCHIVE_GET_TABLE - Read Status Object from Archive (A.Class STATUS)

RFUMSV00 - Advance Return for Tax on Sales/Purchases   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This function module can be used to read the tables for the general status management from the archive.

All the entries in a currently open data object for a certain table are read from the archive.

Example

The following program carries out the Routine DO_SOMETHING for each JEST record that was written with the archiving class STATUS in an archive of the archiving object CO_ORDER. The archive files to be read are queried from the user. This occurs automatically through ARCHIVE_OPEN_FOR_READ.

DATA: g_handle LIKE sy-tabix,
gt_jest LIKE jest OCCURS 0,
g_jest LIKE jest.

CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ'
EXPORTING
object = 'CO_ORDER'
IMPORTING
archive_handle = g_handle.
DO.
CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT'
EXPORTING
archive_handle = g_handle
EXCEPTIONS
end_of_file = 1.
IF NOT sy-subrc IS INITIAL.
EXIT.
ENDIF.
CALL FUNCTION 'STATUS_ARCHIVE_GET_TABLE'
EXPORTING
archive_handle = g_handle
record_structure = 'JEST'
TABLES
t_data = gt_jest.
LOOP AT gt_jest INTO g_jest.
PERFORM do_something USING g_jest.
ENDLOOP.
ENDDO.
CALL FUNCTION 'ARCHIVE_CLOSE_FILE'
EXPORTING
archive_handle = g_handle.

Notes

The function module STATUS_ARCHIVE_GET_TABLE is used in particular by the Archive Information System.

Further information





Parameters

ARCHIVE_HANDLE
RECORD_STRUCTURE
T_DATA

Exceptions

INVALID_STRUCTURE

Function Group

BSVB

RFUMSV00 - Advance Return for Tax on Sales/Purchases   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 2243 Date: 20240523 Time: 115939     sap01-206 ( 31 ms )