SAP Materials Management
Batch generated using Goods movement transactions can be assigned to a internal number or an external number or entered manually during document creation.
Internal and external numbering is controlled by configuration. Separate number ranges can be maintained for internal and external numbering.
Internal Number Range:
For batch numbers to be generated internally Internal batch number activation configuration should be activated.
Internal batch number assignment setup is relevant if batch number is to be created for account assigned goods receipts. This is specific to plant.
Number range should be maintained for object : BATCH_CLT specific for internal numbering.
Batch Management and Number generation Logic
2. How the batch is created during goods movement is determined by Movement Type configuration
Note :
Whenever the number range assignment is internal Exits : EXIT_SAPLV01Z_001, EXIT_SAPLV01Z_002 are called.
With External number ranges exits : EXIT_SAPLV01Z_003 , EXIT_SAPLV01Z_004 are called.
Enhancements for Batch Number assignment
Configure Customer Exits for Intern. Batch Number Assignment
You can use SAP enhancement SAPLV01Z for internal batch number assignment. This enhancement contains two function module exits that you can use to define number ranges or templates for batch numbers:
Set Up Customer Exits for External Batch Number Assignment
As part of the external batch number assignment, the following two function module exits are available in the SAP enhancement SAPLV1ZE for checking a new batch number that has been entered.