Ansicht
Dokumentation

ARCHIVE_DELETE_OBJECT_DATA - Delete Archive Data of the Archiving Classes in DB

ARCHIVE_DELETE_OBJECT_DATA - Delete Archive Data of the Archiving Classes in DB

rdisp/max_wprun_time - Maximum work process run time   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

Functions

This function module from the ADK interface calls the delete methods for all archive classes in the archiving object. The data contained in the current data object is deleted in the database for all classes.

A delete program must call ARCHIVE_DELETE_OBJECT_DATA every time after calling ARCHIVE_GET_NEXT_OBJECT (within the same loop for the same handle) to delete the class data for the current data object (that is, the last data object that was read from the archive file). It is therefore not sufficient only to call ARCHIVE_DELETE_OBJECT_DATA by <Commit cou data objects or to call it only in a subroutine registered using a perform on commit.

Example

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 for deleting the data that was not archived using a class.
This means that all data that was written to data objects using ARCHIVE_PUT_RECORD must be deleted manually from the database using the delete program. Contrary to calling ARCHIVE_DELETE_OBJECT_DATA, this can occur in groups of data objects.





Parameters

ARCHIVE_HANDLE

Exceptions

INTERNAL_ERROR
WRONG_ACCESS_TO_ARCHIVE

Function Group

ARCH

RFUMSV00 - Advance Return for Tax on Sales/Purchases   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.

Length: 2225 Date: 20240523 Time: 112351     sap01-206 ( 39 ms )