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

Close

How To Fix WS404 - The same document number has been assigned more than once


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WS - Supplier Billing Document

  • Message number: 404

  • Message text: The same document number has been assigned more than once

  • Show details Hide details
  • What causes this issue?

    Document number &V1& has been assigned more than once.

    System Response

    No document number is available and the function is terminated.

    How to fix this error?

    Contact your system administrator.

    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.


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WS404 - The same document number has been assigned more than once ?

    Certainly! Here's a detailed explanation for the SAP error message WS404: "The same document number has been assigned more than once":


    Error Message: WS404

    Text: The same document number has been assigned more than once.


    Cause:

    This error occurs when SAP detects that a document number, which should be unique within a certain context (such as a company code, fiscal year, or document type), has been assigned multiple times. This typically happens during document posting or number assignment processes.

    Common causes include:

    • Number Range Overlap or Misconfiguration: The number range intervals for document numbers are overlapping or incorrectly maintained, causing duplicate numbers to be generated.
    • Manual Number Assignment: When users manually enter document numbers, they might reuse an existing number.
    • Parallel Posting or Batch Jobs: Simultaneous postings or batch jobs might try to assign the same document number if the number range object is not properly locked or synchronized.
    • Custom Code or User Exits: Custom developments or user exits that manipulate document numbers might cause duplicates.
    • Database Inconsistencies: Rarely, database inconsistencies or failed postings might leave gaps or duplicates in the document number assignment.

    Solution:

    1. Check Number Range Configuration:

      • Go to transaction SNRO or FBN1 (for FI documents) and verify the number range intervals for the relevant document type and company code.
      • Ensure that number ranges do not overlap and are correctly assigned.
      • If necessary, create new number ranges or adjust existing ones to avoid conflicts.
    2. Check Document Number Assignment Logic:

      • If manual document number entry is allowed, train users to avoid reusing numbers.
      • Consider restricting manual number entry if possible.
    3. Lock Number Range Objects:

      • Ensure that number range objects are properly locked during document posting to prevent parallel processes from assigning the same number.
      • Check for any custom code that might bypass standard locking mechanisms.
    4. Review Custom Code/User Exits:

      • Analyze any custom developments that influence document number assignment.
      • Debug or review user exits/BADIs that might cause duplicate number assignment.
    5. Check for Database Inconsistencies:

      • Run consistency checks on document tables (e.g., BKPF for FI documents).
      • If inconsistencies are found, coordinate with your Basis/DBA team to resolve them.
    6. Repost or Correct Documents:

      • If duplicates have already been posted, you may need to reverse or correct the documents.
      • Use transaction codes like FBRA (Reset Cleared Items) or FB08 (Cancel Document) as appropriate.

    Related Information:

    • Transactions:

      • SNRO – Number Range Objects maintenance.
      • FBN1 – Number ranges for accounting documents.
      • FB03 – Display Document.
      • FB08 – Cancel Document.
      • FBRA – Reset Cleared Items.
    • Tables:

      • NRIV – Number range intervals.
      • BKPF – Accounting Document Header.
      • BSEG – Accounting Document Segment.
    • Notes and SAP Help:

      • Check SAP Notes related to number range issues for your SAP version.
      • SAP Help Portal documentation on number range objects and document posting.

    Summary:

    Aspect Details
    Cause Duplicate document number assignment due to overlapping number ranges, manual entry, parallel posting, or custom code.
    Solution Verify and correct number range configuration, restrict manual entries, ensure locking, review custom code, and fix inconsistencies.
    Related Transactions SNRO, FBN1, FB03, FB08; Tables NRIV, BKPF; SAP Notes on number range management.

    If you provide the specific module or transaction where this error occurs, I can give more tailored advice.

    • 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