Fonction SAP ARCHIVE_MODIFY_RECORD_FLAGS - Change Control Information in Records of a Data Object

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ARCHIVE_HANDLE SYST-TABIX I 4 Handle to the Open Archive Files
RECORD_CURSOR SYST-TABIX I 4 Pointer to Data Record
RECORD_FLAGS ARCH_FLAGS u 8 Flag Bar per Archive Record

Exception Description
INTERNAL_ERROR Internal Error
WRONG_ACCESS_TO_ARCHIVE Incorrect Access to the Archive
WRONG_CURSOR Incorrect Value in Cursor

Functionality
This function module allows the control information in a data record tobe changed at a later point in time.
DATA: HANDLE LIKE SY-TABIX,
CURSOR LIKE SY-TABIX.
...
CALL FUNCTION 'ARCHIVE_MODIFY_RECORD_FLAGS'
EXPORTING
ARCHIVE_HANDLE = HANDLE
RECORD_CURSOR = CURSOR
RECORD_FLAGS = 'DELETE'
EXCEPTIONS
INTERNAL_ERROR = 01
WRONG_ACCESS_TO_ARCHIVE = 02
WRONG_CURSOR = 03.

Notes
You can use this function module if you discover later that a datarecord should have particular control information.
INCLUDE 'ARCHIVE_PARAM_CURSOR' OBJECT DOKU ID TX
Here you use the record cursor to determine which data record is to bechanged.