Symptom
There is an issue with Purchase Order number sequence. System generates PO number is ascending and descending order in some of the cases.
Environment
SAP S/4HANA Cloud
Reproducing the Issue
- Create a Purchase Order in app Manage Purchase Order.
- The PO is created and the document number "450000009" is generated.
- Create a copy of the PO 450000009.
- The document number of the copied PO is "450000001".
Cause
Standard system design.
Resolution
In general, system assigns the Purchase Order number range in the sequence itself. If user deletes any purchase orders, then those numbers will not be there in the system and thus sequence number cannot be maintained.
For Purchase Orders, system does not guarantee the sequential numbering or no gap numbering. But system assures that there will be no duplicate numbering. Since 'In Preparation' Purchase Orders can always be deleted, the 'No Gap' requirement cannot be fulfilled. So, the lost number can be allocated at any point of time in future randomly.
See Also
62077 - Info: Internal number assignment has gaps.
1855914 - Possible reasons for gaps in material document number range - SAP ERP & SAP S/4 HANA
Keywords
Purchase order number range, MM-FIO-PUR-PO, document number, S4HC, X4BC, S4_1C, S4_PC, PO, sequential, gaps in document number, PO , KBA , MM-FIO-PUR-PO , Fiori UI for Purchase Orders , Problem