Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix WS401 - All the numbers in the range object &1 have been used


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WS - Supplier Billing Document

  • Message number: 401

  • Message text: All the numbers in the range object &1 have been used

  • Show details Hide details
  • What causes this issue?

    All the numbers in range &V2& for number range object &V1& have been
    used up.

    System Response

    No document number is available and the function is terminated.

    How to fix this error?

    Contact your system administrator, who can extend the number range
    object.

    Procedure for System Administrators


    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.

    <DS:SIMG.W_WLFA_0011>Define Number Ranges</>
    ENDIF

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WS401 - All the numbers in the range object &1 have been used ?

    SAP Error Message:
    WS401 - All the numbers in the range object &1 have been used


    Cause:

    This error occurs when the number range object (identified by &1) has exhausted all available numbers in its defined interval. In SAP, number ranges are used to assign unique numbers to documents, master data, or other objects. When the system tries to assign a new number but finds that all numbers in the current number range interval are already used, it throws this error.


    Explanation:

    • Number ranges are defined with intervals specifying a range of numbers (e.g., 0000000001 to 0000001000).
    • When all numbers in the current interval are assigned, and no further intervals are available or defined, the system cannot allocate a new number.
    • This situation typically happens if:
      • The number range interval is too small.
      • No new intervals have been created or extended.
      • The number range object is not set to allow interval buffering or automatic interval extension.

    Solution:

    1. Check the Number Range Object:

      • Use transaction SNRO or SNUM to display the number range object &1.
      • Identify the number range intervals and their current status.
    2. Create or Extend Number Range Intervals:

      • If the current interval is exhausted, create a new interval with a higher number range.
      • Make sure the new interval does not overlap with existing intervals.
      • Assign the new interval to the number range object.
    3. Adjust Number Range Buffering (if applicable):

      • In some cases, buffering settings can cause issues. Adjust buffering settings if necessary.
    4. Check Customizing:

      • Go to the relevant customizing transaction (e.g., for sales documents, use VOV8; for material numbers, use OMH6 or similar).
      • Verify the number range intervals and extend them if needed.
    5. Transport Changes:

      • If changes are made in a development system, ensure they are transported to quality and production systems.
    6. Test:

      • After extending the number range, test the creation of new documents or objects to confirm the error is resolved.

    Related Information:

    • Transaction Codes:

      • SNRO – Number Range Objects
      • SNUM – Number Range Maintenance
      • Application-specific number range customizing transactions (e.g., VOV8, OMH6, FBN1)
    • Notes:

      • Always ensure number ranges are planned with sufficient intervals to avoid running out.
      • For critical business objects, consider implementing automatic number range interval extension or monitoring tools.
      • Some number ranges are internal and cannot be changed; in such cases, consult SAP support.

    Summary:

    The WS401 error indicates that the system cannot assign a new number because the number range object has no available numbers left. The fix involves extending or creating new number range intervals for the object in question using transaction SNRO or the relevant customizing transactions.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
ERPlingo simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant