Show TOC

Object documentationArchiving Event Messages (SCM-EM) Locate this document in the navigation structure

 

You use the archiving object /SAPTRX/A1 to archive and delete event messages.

 

When you no longer need event messages, you can either simply delete them or you can first archive them and then delete them. If you only want to delete an event message, you use the report /SAPTRX/DELETE_EVMSG. The residence time that you have configured is used as the criterion to archive an event message. When you delete event messages, SAP Event Management also deletes any existing change documents.

Caution Caution

SAP Event Management does not process event messages for event handlers that are already set to Inactive on the basis of a rule in the rule set. However, you can enable an event message processing also for these event handlers. In this case, data inconsistencies between the data in the system and the data in the archive can occur.

For more information, see Customizing for SAP Event Management under   Event Messages, Status Queries, and Web Interface   Define Criteria for Event Message Processing  .

End of the caution.

Note Note

The deletion reports are designed in particular for deleting test data. You can also automatically archive the relevant event messages during an automatic archiving session for an event handler or an event handler set. 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   Archive and Delete SAP Event Management Objects   Define Residence Times for Archiving or Deleting  .

We recommend that you test higher values for the commit counter.

End of the note.

Structure

Tables

SAP Event Management uses the archiving object /SAPTRX/A1 to archive data from various tables. For more information about how to display the table names, see Tables and Archiving Objects.

Programs

The following programs are delivered for the archiving object /SAPTRX/A1:

Program

Function

/SAPTRX/ARCHIVE_A1_WRITE

Write

/SAPTRX/ARCHIVE_A1_DELETE

Delete

/SAPTRX/ARCHIVE_A1_RELOAD

Reload

Write

In the archive administration under   Customizing   Application-Specific Customizing  , you can call the transaction Define Residence Times for Archiving or Deleting (/SAPTRX/RESTM) in Customizing for SAP Event Management. You can define a global residence time that applies to all event messages. You can, however, also define a residence time for a tracking ID code set that only applies to event messages for this tracking ID code set. 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 messages along with all the relevant data. If you do not specify a residence time, SAP Event Management uses the creation date of an event message and the default value of 100 days to calculate the residence time.

If you want to define residence times for a tracking ID code set, in Customizing for SAP Event Management, choose   Archive and Delete SAP Event Management Objects   Define Residence Times for Archiving or Deleting   and then choose Residence Times for Event Message Archiving 1 in the navigation tree.

If you want to define global residence times for event messages, in Customizing for SAP Event Management, choose   Archive and Delete SAP Event Management Objects   Define Residence Times for Archiving or Deleting   and then choose Residence Times for Event Message Archiving 2 in the navigation tree.

For more information, see Customizing for SAP Event Management under   Archive and Delete SAP Event Management Objects   Define Residence Times for Archiving or Deleting  .

Delete

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

Reload data in exceptional situations only (see Reloading Data).

The program displays the number of objects that were imported and actually reloaded.

For more information, see Variant Settings for Writing (SCM-EM).

Integration

Display Function for Archived Event Messages

The archiving object /SAPTRX/A1 only supports a technical view in the Archive Explorer of the Archive Information System. This view is similar to the display in transaction SE16.