Symptom
When a new batch is created automatically, the batch number range maintained in the 'Define Batch Number Ranges by Plant' activity (BATCH_PLT) is not considered. Instead, the batch number is generated based on the 'Define Batch Number Ranges' activity (BATCH_CLT).
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Go to 'Post Goods Movements' app.
- Post a goods movements.
- The batch created is not according to 'Define Batch Number Ranges by Plant' activity (BATCH_PLT).
Cause
The S/4HANA Cloud Public Edition is by default having the number range from activity 'Define Batch Number Ranges' (BATCH_CLT).
Resolution
By default, the S/4HANA Cloud Public Edition assigns the batch number from the 'Define Batch Number Ranges' activity (BATCH_CLT).
To bypass the default, extensibility can be used, which involves a cloud BADI.
With the cloud BADI LOBM_BEFORE_BATCH_NUMBER_INT, the number range can be overruled.
A precondition is that BATCH_PLT must already be configured.
More details can be found in the following SAP Help link:
See Also
Keywords
SAP S/4HANA Cloud Public Edition, Batch Management, Specify Batch Level, Activate Status Management, Configuration, Plant Level Batch Activation, Batch unique at material level, Define Batch Number Ranges by Plant, activity, BATCH_PLT, BATCH_CLT, batch number, creation , KBA , LO-BM-2CL , Batch Management (Public Cloud) , Problem