You can use function module exit EXIT_SAPLV01Z_012 in SAP enhancement SAPLV1ZN when assigning characteristic values to batches. You use this to determine the type of classification (online or in the background, for example) when creating a new batch with the central function module VB_CREATE_BATCH.
When creating the batch with regard to a reference batch, the assigned values of the corresponding characteristics are copied.
The batch material, or at least one batch of the material must be assigned to a class so that the batch may be classified.
In the exit, you can use a communication structure with the application data for the respective business transaction (for example, plant or material type). If you require further information, you must obtain it yourself in one of the user exits (such as time, user name, or date, for example).
Unlike modifications, enhancements are release-insensitive as they are not located in the SAP original but in a name range reserved for customers.
For information on the general procedure for creating enhancements, choose "Utilities - Manual".
Each enhancement is documented. To access this documentation, choose "Display SAP doc" in the enhancement.