How To Fix RU159 - Internal assignment of doc. no. error record: last number assigned


SAP Error Message - Details

  • Message type: E = Error

  • Message class: RU - Messages for order completion confirmation

  • Message number: 159

  • Message text: Internal assignment of doc. no. error record: last number assigned

  • Show details Hide details
  • What causes this issue?

    The last number has been assigned in the number range "01" for object
    AFFW_NR. Any further number assignment would cause a termination,
    unlessyou manually change the definition of the number range.

    How to fix this error?

    You can either increase the upper limit of the number range, or or
    reset the number range. You should, however, make sure that the same
    number is not assigned twice.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message RU159 - Internal assignment of doc. no. error record: last number assigned ?

    The SAP error message RU159, which states "Internal assignment of doc. no. error record: last number assigned," typically occurs when there is an issue with the document number assignment in the SAP system. This error can arise in various modules, such as Financial Accounting (FI) or Controlling (CO), when the system attempts to generate a document number for a transaction but encounters a problem with the number range.

    Causes:

    1. Exhausted Number Range: The number range for the document type you are trying to use has been exhausted. This means that all available document numbers in the defined range have been used up.
    2. Incorrect Number Range Configuration: The number range may not be properly configured in the system, leading to issues in document number assignment.
    3. Authorization Issues: The user may not have the necessary authorizations to access or use the number range.
    4. System Configuration Changes: Recent changes in the configuration of number ranges or document types may have led to inconsistencies.

    Solutions:

    1. Check Number Range Status:

      • Go to the transaction code SNRO (Number Range Objects) and check the status of the number range object related to the document type you are using. Ensure that there are available numbers in the range.
    2. Extend Number Range:

      • If the number range is exhausted, you can extend it by going to the transaction code OBA7 (for FI) or OKB9 (for CO) and adjusting the number range intervals to include more numbers.
    3. Review Configuration:

      • Ensure that the number range is correctly configured for the document type in question. Check the settings in the relevant configuration transaction (e.g., OBAR for FI document types).
    4. Check Authorizations:

      • Verify that the user has the necessary authorizations to create documents using the specified number range. This can be checked in the user roles and profiles.
    5. Consult SAP Notes:

      • Look for any relevant SAP Notes that may address this specific error. Sometimes, there are known issues or patches that can resolve the problem.
    6. System Restart:

      • In some cases, a system restart or a refresh of the number range buffer may resolve temporary issues.

    Related Information:

    • Transaction Codes: Familiarize yourself with transaction codes like SNRO, OBA7, OKB9, and OBAR for managing number ranges.
    • Documentation: Review SAP documentation related to number range management for a deeper understanding of how to configure and troubleshoot number ranges.
    • SAP Community: Engage with the SAP Community forums for insights from other users who may have encountered similar issues.

    If the problem persists after trying the above solutions, it may be necessary to involve your SAP Basis or technical team for further investigation.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


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's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker