Archiving Event Handlers (SCM-EM) 
You use the archiving object /SAPTRX/A0 to archive and delete event handlers.
When you no longer need event handlers, you can either simply delete them or you can first archive them and then delete them. If you only want to delete an event handler, you use the /SAPTRX/DELETE_EH report for deleting inactive event handlers. You can also use this report to delete inactive event handlers belonging to an event handler set. The residence time that you have configured is used as the criterion to archive an event handler. When you delete event handlers, SAP Event Management also deletes any existing change documents.
Note
The deletion reports are designed in particular for deleting test data.
You archive an event handler that belongs to one or more event handler sets by deactivating and archiving the entire event handler set (see Archiving Event Handler Sets (SCM-EM)).
You can specify that event handlers 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 .
We recommend that you test higher values for the commit counter.
SAP Event Management uses the archiving object /SAPTRX/A0 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/A0:
Program |
Function |
/SAPTRX/ARCHIVE_A0_WRITE |
Write |
/SAPTRX/ARCHIVE_A0_DELETE |
Delete |
/SAPTRX/ARCHIVE_A0_RELOAD |
Reload |
You must have deactivated the event handlers to enable you to archive them. From the archive administration under , you can call the transaction Define Residence Times for Archiving or Deleting (/SAPTRX/RESTM) in Customizing for SAP Event Management. You can define the residence times for event handlers in this transaction. SAP Event Management checks if the difference between the date on which the objects were created and the current date is greater than the residence time. If this is the case, SAP Event Management archives and deletes the event handlers along with all the relevant data. If change documents exist for the event handler, SAP Event Management deletes them too. If you do not specify an application system or application object type, SAP Event Management uses the creation date of the event handler 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 handlers (header data) and not the number of all database sets inserted.
For more information, see Variant Settings for Writing (SCM-EM).
The archiving object /SAPTRX/A0 only supports a technical view in the Archive Explorer of the Archive Information System. This view is similar to the display in transaction SE16.