Archiving Actions with EHENV_SAC
Use
You archive actions by using the archiving object EHENV_SAC.
During archiving, the system determines all relevant actions and stores them in an archive file. In a follow-up process, it deletes the archived actions from the database.
Prerequisites
The following prerequisites need to be fulfilled before an action can be archived:
-
The action status is set to Closed or Void.
-
The retention period has expired.
Structure
Tables
This archiving object EHENV_SAC supports the archiving and deleting of data from different tables.
Under Archive Administration (transaction SARA), you can check the database tables of the archiving object EHENV_SAC.
Programs
The following programs are delivered with EHENV_SAC:
|
Action |
Program |
Description |
|---|---|---|
|
Preprocessing |
R_EHENV_SCEN_ACTION_ARCH_PRE |
Determines the archivable tasks of category Action according to the specified selection criteria and changes their status to Archiving in Progress. |
|
Write |
R_EHENV_SCEN_ACTION_ARCH_WRI |
Determines the archivable tasks of category Action according to the specified selection criteria, taking into account only those actions with the status Archiving in Progress. Stores the selected actions in an archive file. At this step the report also removes the dependency between the actions and the compliance scenarios where they were created, in order to avoid erroneous behavior in the compliance scenarios. |
|
Deleting |
R_EHENV_SCEN_ACTION_ARCH_DEL |
Deletes the archived tasks of category Action from the database and changes their status to Archived. |
Classes
The archiving object uses the following classes:
-
Object-specific archiving class CL_EHENV_SCEN_ACT_ARCH_GENER to ensure that all actions are archived together with their related business objects
You can find the object-specific archiving class in Customizing for Maintain BO-specific Archiving Objects under .
-
Archiving class CHANGEDOCU (table CDCLS / CDHDR) for the archiving of change documents
You can find the archiving class under Archiving object definition (transaction AOBJ)

