Archivability Check
Use
Before archiving CRM business objects, you must perform an archivability check during which the objects for archiving are given the status Archivable . This check is done via the Cross-Archiving-Object Check Program
You can also run the check using an archiving-object-specific check program. This method, however, is not recommended for using with mass data. It should only be used for tests in which small data volumes are processed.
Features
The check program checks the archivability of a business object based on specific criteria. If these criteria are fulfilled, the program sets the status of the object to Archivable . Objects that have this status can then be written to the archive using the write program. Then they can be deleted from the database using the delete program.
The archivability check is divided into the following steps:
Selection
First, a preselection of the business objects to be checked is made using a special function module. Preselection enables the system to exclude non-relevant data objects before the actual check is performed. The result is a list of object IDs that are transferred to the main program.
The main program then calls up the actual check program for the application, which checks the preselected data objects and, if applicable, sets the status Archivable .
In the preselection phase, all business objects that fulfill the following prerequisites are selected for the check program:
The business object is completed (status at header level is Completed )
The business object has fulfilled the residence time, which is set for each business object type.
In addition to these general selection criteria, business objects can also have other, individualized selection criteria for archivability. These are described in the relevant documentation for each business object.
Check
The check program checks the archivability of a business object in several steps. The following diagram is an example of what this process could look like for sales transactions:
Sales Transactions
Carrying out the Check with the Cross-Archiving-Object Check Program
The archivability check is done via the cross-archiving-object check program, which you can schedule from within Archive Administration using Check/Delete . The advantage of this program is the option to execute several check jobs simultaneously – the capacity for checked objects is greater, which improves the performance of the check. The use of this program is recommended especially for processing larger volumes of business objects.
Before you run this program make sure you have set the necessary control parameters in Cross-Archiving-Object Customizing via Check and Delete
For more information, see Cross-Archiving-Object Check Program .
The Check as a Preprocessing Program
If you want to carry out the archivability check via the preprocessing program you must enter a variant for the selection of the business objects to be checked. Enter the variant in the initial screen for planning the preprocessing program. You can call up the initial screen from archive administration. Here you have the option to choose an existing variant or create a new variant.
Via the selection criteria of the variant you can limit the selection of business objects that are to be processed by the check program. The maximum number of objects to be checked corresponds to the package size of the preselection module in Customizing for the cross-archiving-object check program.
Process control is a cross-archiving-object function. For more information see the general archiving documentation under Variant Maintenance for Archiving Jobs
Here you can also find a description of the options for setting and choosing logs and entering an archiving session note. See also Logs .
You should only generate a detail log for small volumes of data as you would have, for example, in test mode. Otherwise the program may be terminated, due to a data overload.
After you have entered the start date and the spool parameters, you can schedule the check as a background job. For more information on how to schedule a preprocessing program, see Scheduling Preprocessing Programs .
Result
After you have run the archivability check, all business objects that have met the archivability criteria will have the status Archivable . The objects with this status can then be archived using the data archiving write program, see Creating Archive Files .
For those business objects that do not fulfill the archivability criteria, the date of the check is saved. The system uses this date and the resubmission interval to calculate the earliest possible date when the business objects can be checked again. This is intended to prevent that these objects are checked and rechecked during the following check runs. The resubmission interval is only valid when you execute the program in production mode.