Carrying Out Data Archiving
Purpose
This process describes the basic archiving procedure in SAP CRM.
Process Flow
Check
You schedule the archivability check . This checks whether the data objects that belong to a CRM business process meet the archivability criteria and can therefore be removed from the database. For more information on the check criteria see Archivability Check .
You can perform the archivability check as follows:
-
Using and archiving-object-specific check program, which you can schedule as preprocessing program from within Archive Administration. See Archivability Check .
-
Using a cross-archiving-object check program that runs in the background and can be planned from within Archive Administration (transaction SARA) using Check/Delete .
For a detailed description of the check process, see Cross-Archiving-Object Check Program .
If a business object fulfills the archivability criteria, the system assigns it the Archivable status enabling the object to be written to the archive in the replication phase.
To be able to run the check program you need the same authorizations that are required for archiving, which have been determined in the authorization object S_ARCHIVE. The check program runs an authorization check, to make sure the user has the necessary authorizations.
Replicate
-
You schedule the write program . Schedule the program in Archive Administration (transaction SARA); see Creating Archive Files .
The write program selects all business objects that have the archivable status and writes them to the archive.
-
If the archiving object completely supports the CRM status concept (see Data Archiving in SAP CRM ) (in Customizing for cross-archiving-object Check and Delete an check box is offered for deletion), schedule the confirmation program . Following the write phase, this program checks whether the data was successfully written to the archive (read verification) and, if this is the case, sets the archived (confirm) status in the database for the business objects affected. This is carried out by a program that you schedule in Archive Administration using Delete . For more information, refer to the documentation on the specific archiving object.
For archiving objects that use the traditional archiving concept following the archivability check, the read verification takes place in the delete phase. In this case, you do not have to schedule a confirmation program.
Delete
You schedule the delete program that deletes the previously archived data from the database. Depending on the archiving object, one of the following delete methods can be used.
-
archiving-object-specific solution
An archiving-object-specific delete program carries out the read verification and then deletes the successfully read data from the database. You can schedule the delete program in Archive Administration .
-
cross-archiving-object solution
A delete program that runs periodically in the background deletes from the database all data that has the Deletable or Archived status.
You schedule this delete program in Archive Administration using Check/Delete based on previous Customizing. See Check and Delete .
For more information on the statuses discussed in this section, refer to Data Archiving in SAP CRM at the end of the Features section.
Result
You have written to archive files all the business objects for a specific business object type that meet the archivability and selection criteria, and have then deleted them from the database. You can use an archiving-object-specific read program to access archived business objects.
See also: