SAP Function CHANGEDOCU_DELETE_ARCHIVE_OBJ -

Parameter Reference Type Length Default Optional Text
ARCHIVE_HANDLE SYST-TABIX I 4 Handle on open archive files

Exception Text
NO_AUTHORITY No authorization for deleting change documents
WRONG_ACCESS_TO_ARCHIVE incorrect access to archive


INCLUDE 'DOCU_HAS_TO_BE_ELABORATED' OBJECT DOKU ID TX

Functionality
The function module deletes archived change documents.
An authorization check is made. The caller needs delete authorizationfor the authorization object 'Change documents'.
All change documents with a delete flag from the functionmodule CHANGEDOCUMENT_ARCHIVE_OBJECT are marked fordeletion.
The documents to be deleted are gathered and only then deleted whenCOMMIT WORK is called by the calling program.
This still applies if this function module is called repeatedly.
This improves the performance compared to deleting at every call.

Example
DATA: ARCH_HANDLE LIKE SY-TABIX.
...
CALL FUNCTION 'CHANGEDOCUMENT_DELETE_ARCH_OBJ'
EXPORTING
ARCHIVE_HANDLE = ARCH_HANDLE
EXCEPTIONS
NO_AUTHORITY = 01
WRONG_ARCHIVE_HANDLE = 02.

Notes
see also
Handle, definition of term
Delete program, definition of term
INCLUDE 'ARCHIVE_PARAM_HANDLE_CLASS_R' OBJECT DOKU ID TX

778209Cluster records with missing PAGENO 0 in table CDCLS
722018TSV_TNEW_PAGE_ALLOC_FAILED when deleting change documents