Generating Batch Records (PP-PI) 
Use
Every batch record has a header record that manages the version data of a batch record, its status, the data about batch record approval, and the links to the archive documents. To archive and approve a batch record, you must first generate this header record. You can carry out this function as follows:
You can schedule the background job as follows:
Prerequisites
The system sets this status when you create a process order with an approved master recipe, use the function Read master data to transfer an approved master recipe to the order, or approve the order in a single approval.
The system sets this status when you release the order, provided that the Batch record required indicator is set in the order type-dependent parameters in Customizing.
Procedure
Defining Background Jobs for Generating
A dialog box appears from which you can call up the activities Define Selection Variant and Define Background Job.
For more information on how to proceed, see Customizing for Batch Records, section Define Background Jobs for Processing.
Generating Batch Records Online
. The system creates a worklist containing the batches that match your selection criteria and meet the requirements listed above. The batches along with their R/3 objects are displayed in an overview tree.
If not all batches within the selection range have been included in the worklist for some reason, the
Selection log pushbutton is activated. This means that a selection log exists. Evaluate the selection log if required (see
Evaluating Selection Logs).
You can use the following functions available in the context menus of the overview tree to make your decision (see Displaying and Printing Batch Records):
Batch record. Result
The system generates the batch records of the batches you have selected. This means, their header records are created, the documents are, however, not archived yet.
The batch records are assigned the status Created.
The batches are deleted from the worklist of batch records to be generated.