Preparation Program - Maintaining Variants (QM-IM)
Use
You can execute the preparation program either in the Productive Archiving variant or as an Archiving test. In Archiving test, no data is archived or deleted.
The preparation program marks inspection lots with the status Lot blocked for Archiving and deletes the respective inspection lot number from the worklist. After running the program, you can no longer change the inspection lots.
Prerequisites
An inspection lot can only be marked for archiving if:
Procedure
The standard variants maintained by SAP for Quality Management are called:
If no variants are available, choose Maintain to maintain the required variant. The variant maintenance function contains the selection criteria that you can use to select transaction date for archiving and deletion.

You can only use a variant in one job. As long as a job exists that uses this variant, it cannot be used in another job even when this job has been successfully carried out.
You use the spool parameters to control the print output of the log that has been created for the preparation program.
The Preparation screen appears again. The green traffic light indicates, that the start date and the Spool parameters were maintained.
Result
The preparation program creates a log.
See also:
Log (QM-IM)
Maintaining the Start Date and the Spool parameters