Fonction SAP ARCHIVE_DELETE_OBJECT_DATA - Delete Archive Data of the Archiving Classes in DB

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ARCHIVE_HANDLE SYST-TABIX I 4 Open Archive Handle

Exception Description
INTERNAL_ERROR Internal Error
WRONG_ACCESS_TO_ARCHIVE Incorrect Archive Access

Functions
This function module from the ADK interface calls the delete methodsfor all archive classes in the archiving object. The data contained inthe current data object is deleted in the database for all classes.
A delete program must call ARCHIVE_DELETE_OBJECT_DATA every time aftercalling ARCHIVE_GET_NEXT_OBJECT(within the same loop for the same handle) to delete the class data forthe current data object (that is, the last data object that was readfrom the archive file). It is therefore not sufficient only to callARCHIVE_DELETE_OBJECT_DATA by <(>
<<)>Commit counter> data objects or to call it only in a subroutineregistered using a perform on commit.
DATA: HANDLE LIKE SY-TABIX.
...
CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT'
...
CALL FUNCTION 'ARCHIVE_DELETE_OBJECT_DATA'
EXPORTING
ARCHIVE_HANDLE = HANDLE.
The sample program SFLIGHTD demonstrates how this is called correctly.

Further Notes
The ADK interface dos not offer an (object-specific) function fordeleting the data that was not archived using a class.
This means that all data that was written to data objects usingARCHIVE_PUT_RECORD must be deletedmanually from the database using the delete program. Contrary tocalling ARCHIVE_DELETE_OBJECT_DATA, this can occur in groups of data objects.
INCLUDE 'ARCHIVE_PARAM_HANDLE_READ' OBJECT DOKU ID TX
In this case the archive handle is used to specify the archive classesof a particular archive object.

1339986SARA : Incorrect result in statistics of archived objects