Performing Deviation Analyses (PP-PI) 
Use
You can perform a deviation analysis to detect irregularities that may have occurred when a batch was manufactured (for example, deviations from tolerance limits in the PI sheet or a usage decision with the valuation Rejection in quality management). Which events are regarded as deviations is specified for each material and plant in Customizing for Batch Records.
The deviations the system determines are compiled in a document that you archive as part of the batch record. You can use this document as a basis for batch record approval. The document is assigned to the current version of the batch record. If the current version has already been approved, the system creates a new, unapproved version of the batch record when you enter the batch record transaction in the change mode. It transfers the old version to the history of the batch record.
You can start the deviation analysis as follows:
You can repeat the manual deviation analysis as often as you want. The sections below describe how you must proceed here.
Prerequisites
The batch record has been generated (see
Generating Batch Records).Procedure
Deviations.The system checks the R/3 objects that belong to the batch record. If it detects any deviations, it collects them in a document.
Depending on your Customizing settings, the document is either archived immediately or is first displayed in a dialog box.
If the Deviations document is archived immediately:
Display the document if required. To do so, double-click the document in the overview tree.
If the Deviations document is displayed before archiving:
Check the document and decide whether you want to archive it.
If you want to archive the document, choose
.
If you do not want to archive the document, choose
.
Result
If the system has found deviations, the current version of the batch record is assigned status Batch record contains deviations.