Symptom
The number range is not in sequence in Reservation documents.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Go to Manage Manual Reservations app.
- Click in Go button.
You can see that there are gaps in the Reservation numbers.
Cause
This is the correct behavior of the system. The assignment of reservation numbers is not made upon the document posting, but before that.
For Reservation objects, the number range is set as Main Memory buffering. It means that a buffer will be set on demand in the main memory of the instance where the program asking for a number runs. After the program finishes, there may be still unused numbers in the buffer, which can be used at a later time by a program running in the same instance and needing numbers from the same interval.
It is important to note that:
- Even skipping and jumping, the same number is never allocated twice;
- If the instance is restarted, all numbers of all intervals which are loaded there are lost;
- Even if a number drawn is not used by the program due to a rollback or application design, it is not returned to the buffer and therefore it is lost.
The Reservation document number ranges are delivered this way because this is the most optimal way from a system performance perspective.
Resolution
In the SAP S/4HANA Cloud Public Edition the buffering settings are part of the delivered solution/delivered content. There is no SSCI / CBC customizing available to change the buffering settings for the number ranges.
Keywords
Gap, Jump, Missing Number, not in sequence, Reservation, reservation number , KBA , MM-FIO-IM-SGM-2CL , Fiori UI for Stock and Goods Movements (Public Cloud) , How To
SAP Knowledge Base Article - Public