SAP Message BA379 - Program error: The access mode for the archive handle has changed

Diagnosis
An archive handle can be opened in test or in production mode.
For any given archive handle the access mode that is transferred tofunction module ARCHIVE_DELETE via parameter IV_DELTEST may not change.
However, in this case the access mode has changed.

System Response
The program was terminated.

Procedure
Program correction

Procedure for System Administration
Contact SAP Support.