Do you have any question about this error?
Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now →
Message type: E = Error
Message class: WG - Messages for store order and investment buy
Message number: 221
Message text: Assigned number of number range object & is in critical area
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Contact your system administrator.
Error message extract from SAP system. Copyright SAP SE.
WG221
- Assigned number of number range object & is in critical area ?SAP Error Message:
WG221 - Assigned number of number range object & is in critical area
Cause:
This error occurs when the number range object (e.g., for delivery documents, billing documents, etc.) is locked or currently being processed by another user or process. SAP uses number ranges to assign unique document numbers, and to avoid conflicts, it locks the number range object during number assignment. If a user or process tries to access the number range while it is locked (in a "critical area"), this error is triggered.
In other words, the number range object is temporarily locked to ensure consistency and prevent duplicate number assignment, but another process is trying to access it simultaneously.
Explanation:
Wait and Retry:
Often, this is a temporary lock. Wait a few moments and try the transaction again.
Check for Locked Number Range Objects:
Use transaction SNRO (Number Range Objects) to check the status of the number range object:
Check for Locked Entries in Table NRIV:
The table NRIV stores number range intervals and locks. You can check if the number range object is locked here.
Release Locks Manually (if necessary):
Check for Long-Running or Stuck Jobs:
Review Custom Code or Enhancements:
Aspect | Details |
---|---|
Error | WG221 - Number range object is in critical area (locked) |
Cause | Number range object locked by another process/user during number assignment |
Solution | Wait and retry; check and release locks via SNRO, SM12; check for stuck jobs or dumps |
Tools | SNRO, SM12, NRIV table |
Precautions | Avoid manual lock deletion without BASIS knowledge; investigate root cause of lock issue |
If the problem persists after these steps, consider involving your SAP BASIS team or SAP support for deeper analysis.
Get instant SAP help. Sign up for our Free Essentials Plan.
WG220
The last number in number range object & has been assigned
What causes this issue? The system issues an error message and will not allow you to continue with this transaction until the error is resolved. Syst...
WG219
No free number in number range object &
What causes this issue? The system issues an error message and will not allow you to continue with this transaction until the error is resolved. Syst...
WG222
System error in store order sub-function. Position &
What causes this issue? The system issues an error message and will not allow you to continue with this transaction until the error is resolved. Syst...
WG223
System error combining purchase orders. Data was reset
What causes this issue? The system issues an error message and will not allow you to continue with this transaction until the error is resolved. Syst...
Click on this link to search all SAP messages.