Archiving Event Handler Sets (SCM-EM) 
You use the archiving object SAPTRX_A2 to archive and delete event handler sets.
When you no longer need event handler sets, you can archive them. The residence time that you have configured is used as the criterion to archive an event handler set. When you delete event handler sets, SAP Event Management also deletes any existing change documents.
Note
You archive an event handler set by deactivating and archiving the entire set.
If you want to delete inactive event handlers in an event handler set, you use the report /SAPTRX/DELETE_EH for deleting inactive event handlers. The deletion reports are designed in particular for deleting test data.
When you delete an application object in the SAP application system, SAP Event Management marks the corresponding event handlers as deleted, but does not physically delete them from the database.
You can specify that event handler sets are archived automatically by defining appropriate activity parameters and using them in function modules within a rule.
You can interrupt a write run for the archiving object at any time.
For more information about performance and about terminating the archiving procedure, see SAP Notes 69143 and 77305.
For more information, see Customizing for SAP Event Management under .
Note
We recommend that you test higher values for the commit counter.
SAP Event Management uses the archiving object SAPTRX_A2 to archive data from various 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_A2:
Program |
Function |
/SAPTRX/ARCHIVE_A2_WRITE |
Write |
/SAPTRX/ARCHIVE_A2_DELETE |
Delete |
/SAPTRX/ARCHIVE_A2_RELOAD |
Reload |
You must have deactivated the event handler sets to enable you to archive them. To do so, in Customizing for SAP Event Management, choose and then choose in the navigation tree. Use the activity method EHSET_SET_INACTIVE to deactivate the event handler set.
If you do not specify a residence time, SAP Event Management uses the creation date of an event handler set and the default value of 100 days to calculate the residence time.
For more information, see Customizing for SAP Event Management under .
If you have chosen Test Mode, SAP Event Management starts the delete program with the test run variant /SAPTRX/TEST.
If you have not chosen Test Mode, SAP Event Management starts the delete program with the productive run variant /SAPTRX/PROD.
For more information, see Deleting Archived Data from the Database.
Reload data in exceptional situations only (see Reloading Data).
The program displays the number of objects that were imported and actually reloaded. This is the number of event handler sets and not the number of all database sets inserted.
For more information, see Variant Settings for Writing (SCM-EM).
The archiving object SAPTRX_A2 only supports a technical view in the Archive Explorer of the Archive Information System. This view is similar to the display in transaction SE16.