Number Range Reorganizing and Resetting the Buffer
The purpose of this page is describing how to reorganize/ reset an accounting document buffer.
After change a buffering method, change the interval limits, change the current number level. The reason is that if you deactivate buffering the system does not automatically delete the entries in NRIV_LOKAL and NRIVSHADOW. The system does not automatically initialize the main memory buffer.
In some cases doing a wrong transport is necessary reorganize the buffer also.
For more details about number range buffering in accounting documents please check
Reorganizing the buffer
If you use Parallel buffering (table NRIVSHADOW) you can use program NK_REORGANIZE to reset the buffer for object RF_BELEG.
Transaction SNRO to reorganize NRIV_LOKAL or NRIVSHADOW.
As a result, all the buffers of NRIV_LOKAL (NRIVSHADOW) for the interval are transferred to the table NRIV_RESTE and can still be documented.
If the interval is not used up, the reorganization is more complex. In this case, proceed as follows:
First, ensure that no numbers are used during the execution.
Make a note of the current number level (NRIV-NRLEVEL).
Set NRLEVEL to the highest value (corresponds to TONUMMER). Choose "Range -> Reorganize". In this case, all the processes can be documented.
Set the NRLEVEL value in the interval to its original state (of which you previously made a note).
Reset option is also available in SNRO.
Resetting the buffer
Reset the number range buffer in SM56 should be used in the following scenarios:
- If you customize the intervals directly in the system, our programs ensure that the buffer is always updated. However, if you transport the intervals from other systems (TABU NRIV), we cannot recognize this. Ensure that the year-dependent intervals are always buffered, irrespective of whether the number range object itself is buffered or not.
- After you perform a Customizing action in connection with number ranges (for example, you change the number range status, you change the range limit or insert new year-dependent intervals), the system continues to return the "old" numbers or gets numbers from the incorrect year-dependent interval.
- During main memory buffering.
Use transaction SM56 to reset the number range buffer:
- Call transaction SM56
2. Choose the menu option "Number Range Buffer -> Reset"
A dialog box in which you can enter all the information is displayed.
Caution: The generic entry is blank, not '*'.
You must also set the "Global Reset" indicator; as a result, the system synchronizes all instances.
If you use Parallel buffering (table NRIVSHADOW)
you can use program NK_REORGANIZE of SAP note 1244898 to reset the buffer for object RF_BELEG.
Please avoid FI documents generation if possible during the run of the report. You need to run the report with following parameters:
Object = RF_BELEG
Subobject -> keep as blank
Buffering type -> parallel buffering
Since the report may take time, please schedule it as a job.
After reorganization buffer tables will be filled again based on SNRO configuration.
Related SAP Notes/KBAs
SAP Note 741698 : Number range: Buffer reorganization
SAP Note 1019692 : NRIV: Incorrect numbers, incorrect year