Archiving Event Handlers (SCM-EM) 
You use the archiving object SAPTRX_EH to archive and delete event handlers for high data volumes (see Data Archiving for High Data Volumes).
You can archive and delete the event handlers that you no longer need.
Note
SAP Event Management does not support archiving event handler sets and deleting existing change documents
Event handlers can have different statuses. For an overview of possible statuses, see Overview of Possible Statuses of an Event Handler.
The archiving sequence is important for this archiving object. For more information, see the following documents:
Note
We recommend that you test higher values for the commit counter.
SAP Event Management uses the archiving object SAPTRX_EH to archive data from different tables. For more information about how to display the table names, see Tables and Archiving Objects.
The following programs are delivered for the archiving object SAPTRX_EH:
Program |
Function |
|---|---|
/SAPTRX/ARCHIVE_EH_PREPROCESS |
Preprocessing |
/SAPTRX/ARCHIVE_EH_WRITE |
Write |
/SAPTRX/ARCHIVE_EH_DELETE |
Delete |
/SAPTRX/ARCHIVE_EH_RELOAD |
Reload |
The program marks all inactive event handlers with a positive residence time check. Logically the event handler object is now archived, but physically it still resides within application tables. For more information, see the documentation for the preprocessing report /SAPTRX/ARCHIVE_EH_PREPROCESS in SAP Event Management.
The program writes all event handlers that are marked as archived by the preprocessing program in archive files. For more information, see the documentation for the write report /SAPTRX/ARCHIVE_EH_WRITE in SAP Event Management.
The program deletes event handler data in the database after the write program has written them to archive files. For more information, see the documentation for the delete report /SAPTRX/ARCHIVE_EH_DELETE in SAP Event Management.
The program reloads event handler data from archive files back into the database. For more information, see the documentation for the delete report /SAPTRX/ARCHIVE_EH_RELOAD in SAP Event Management. Reload data in exceptional situations only. (see Reloading Data).