You can create a batch from within process control by sending a message of category PI_BT_CR to destination PI14.
You need this function if you want to create a batch during production. You can also create batches as follows:
From within the process order during planning
After posting a goods issue when production has been completed (see Goods Issue Posting ).
You can use process instructions in the process control system or PI sheet to request process messages for batch creation. You can define the following process instructions, for example:
A process data request for the PI sheet, which you can use to request a process message for the batch of a specific material
A process message subscription for process control systems, which you can use to request process messages for all batches created during production
Customizing of the SAP reference client contains several sample process instruction categories for batch creation. For general information on process instructions, see process instructions .
The material for which you want to create a batch has been defined as being subject to batch management in its master record ( Work scheduling view or Storage view).
Batch numbers can be assigned internally by the system or externally by the user.
If required, activate internal batch number assignment in Customizing for Batch Management (see IMG, section
). If you do so, you can still assign numbers externally.When creating the message, note the following:
Material
For the system to be able to create a batch, you must at least include the corresponding material number in your process message. If the material number is missing, the system writes a corresponding system message to the process message log when processing the message; the message itself receives status Destination error .
Batch
If required, transfer a new batch number for external number assignment in the process message. If the process message contains no batch number and you have activated internal number assignment, the system assigns the number when it creates the batch.
If the process message contains a batch number that already exists in the system, the system writes a corresponding system message to the process message log; the message itself receives status Destination error .
Plant
If the plant has been defined as the batch level in Customizing for Batch Management , the system requires a plant to create a batch. It first searches for the plant in the process message. If it does not find it there, it searches for it in the order item.
Process Order and Order Item
You must only include the order number and item in the process message, if you want to use the customer exits for batch number assignment and batch valuation (see IMG, section
).Consistency Checks:
When processing the process message, the system checks whether the values contained in it are valid and consistent with one another. If the system discovers an inconsistency (for example, an invalid order number or a material number that is not contained in the order), it:
Writes a corresponding system message to the message log
Sets the status of the process message to Destination error