How To Fix WS349 - Document numbers copied from run &


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WS - Supplier Billing Document

  • Message number: 349

  • Message text: Document numbers copied from run &

  • Show details Hide details
  • What causes this issue?

    You entered an existing run name that still has to be continued. The
    document numbers are taken from the run.

    System Response

    It is not possible to change the document numbers.

    How to fix this error?

    Check whether the further selection criteria are compatible with the
    document numbers. SAP recommends that you save the selection criteria
    in a variant.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WS349 - Document numbers copied from run & ?

    SAP Error Message:
    WS349 - Document numbers copied from run &


    1. Cause of the Error

    The error message WS349 typically occurs during document posting or number assignment processes in SAP Financial Accounting (FI) or related modules. It indicates that the system has detected that document numbers are being copied or reused from a previous number range run, which is not allowed or expected.

    More specifically:

    • SAP uses number ranges to assign unique document numbers.
    • When a number range run is performed, SAP reserves a block of document numbers.
    • If the system detects that document numbers are being copied or reused from a previous run (e.g., due to a manual intervention, incorrect number range configuration, or system inconsistency), it raises this error.
    • This is a safeguard to prevent duplicate document numbers, which can cause data inconsistencies.

    2. When Does It Occur?

    • During posting of accounting documents.
    • When number ranges are set to external assignment but the same number is reused.
    • When number range intervals overlap or are incorrectly maintained.
    • After a system copy or client copy where number range objects were not properly adjusted.
    • When a user tries to manually enter a document number that was already used or reserved.

    3. Solution

    Step-by-step approach to resolve WS349:

    1. Check Number Range Intervals:

      • Transaction: FBN1 (for FI document number ranges)
      • Verify that number ranges do not overlap.
      • Ensure that the current number range interval is correctly maintained and does not conflict with previous intervals.
    2. Check Number Range Status:

      • Ensure that the number range intervals are not exhausted or incorrectly set.
      • If the number range is internal, SAP automatically assigns numbers; if external, users must enter unique numbers.
    3. Check Document Number Assignment:

      • If external number assignment is used, ensure users are not entering duplicate document numbers.
      • Educate users on correct number assignment procedures.
    4. Reset Number Range Buffer:

      • Sometimes the number range buffer gets out of sync.
      • Use transaction SNRO to reset or reinitialize the number range buffer for the relevant object (e.g., BKPF for accounting documents).
    5. Check for System or Client Copy Issues:

      • If the error appeared after a system/client copy, verify that number ranges were adjusted properly.
      • Recreate or adjust number ranges if necessary.
    6. Check for Custom Code or User Exits:

      • Sometimes custom developments interfere with document number assignment.
      • Review any user exits or BAdIs related to document posting.
    7. SAP Notes and Support:

      • Search SAP Support Portal for notes related to WS349.
      • Apply any relevant patches or corrections.

    4. Related Information

    • Number Range Objects:
      Document numbers in SAP are controlled by number range objects (e.g., BKPF for accounting documents). Proper maintenance of these is critical.

    • Transactions:

      • FBN1 - Maintain Number Ranges for Accounting Documents
      • SNRO - Number Range Objects (buffer reset)
      • FB02 - Change Document (to check existing documents)
      • OBAR - Number Range Maintenance for FI Documents (depending on SAP version)
    • SAP Notes:
      Check SAP Notes for your specific SAP version if the problem persists.

    • Best Practices:

      • Avoid manual document number entry unless necessary.
      • Regularly monitor number range intervals.
      • Ensure proper authorization and training for users handling document postings.

    Summary

    Aspect Details
    Error WS349 - Document numbers copied from run &
    Cause Duplicate or reused document numbers due to number range overlap, manual entry, or buffer issues
    Solution Check and correct number ranges (FBN1), reset buffer (SNRO), avoid manual duplicates, verify system copies
    Related Info Number range objects (BKPF), SAP Notes, user training, transaction codes (FBN1, SNRO)

    If you provide the exact context (module, transaction, or process), I can help with 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