Programme SAP PLM_AUDIT_ARC_QUM_CHECK - Archiving of Audit Management Master Data: Preprocessing Program

Purpose
Is used to check archivability and set the status 'Archived'

Integration
This function is part of the archiving of archiving object PLM_QUM incomponent Audit Management (CA-AUD).

Prerequisites
To be able to mark question lists for archiving, they must have one ofthe following statuses: To Be Archived (I1805), Deletion Flag(I1810), or Completed (I1803).
The residence time for the object type Question List (QUN) isalso defined in the archiving settings. If the status is Completedthis residence time has expired. The reference date for thecalculation of the date from which an object can be marked for archivingis the change date of the question list. If a change date does notexist, the creation date of the question list is used.
You can use the BAdI Archiving ObjectPLM_QUM: Add-On for Specific Checks (ARC_PLM_QUM_CHECK) to defineadditional archivability checks.
It is possible to define different residence times for the differentaudit types in this BAdI.

Features
After the prerequisites have been checked, the business transactionMark for Archiving (AM07) and the business transactionArchive (AM08) are executed in the preprocessing program. Thecorresponding statuses To Be Archived (I1805) and Archived(I1806) are also set at this point in time.
The status Archived is set in the preprocessing program so thatit does not have to be set in the write program. If there are anyprogram errors, this avoids a time-consuming rollback.
In addition, it is assumed that the write program will be run shortlyafter the preprocessing program and that the data is then written to thearchive.

Output
A summarized or detailed log is created. You can control this via theindicator Detail Log.

Activities
Start the preprocessing program using the transaction SARA via acorresponding job for the archiving object PLM_QUM.