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

Close

How To Fix WS358 - Document numbers copied from run &


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WS - Supplier Billing Document

  • Message number: 358

  • Message text: Document numbers copied from run &

  • Show details Hide details
  • What causes this issue?

    You entered an existing run name which is still to be restarted. The
    document numbers are copied from the run.

    System Response

    It is not possible to change the document numbers.

    How to fix this error?

    Please check whether the additional selection criteria are compatible
    with the document numbers. You are advised to 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 WS358 - Document numbers copied from run & ?

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


    1. Cause of the Error

    The error message WS358 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 in the current context.

    More specifically:

    • SAP uses number ranges to assign unique document numbers for financial postings.
    • When a document number is copied from a previous run (i.e., the system tries to reuse or duplicate document numbers), it can cause inconsistencies or conflicts.
    • This error often arises if the number range intervals are not properly maintained or if the document number assignment logic is disrupted.
    • It can also happen if a user tries to manually enter a document number that has already been used or if the system’s number range buffer is out of sync.

    2. Solution

    To resolve the WS358 error, consider the following steps:

    a) Check Number Range Intervals

    • Go to transaction FBN1 (for FI document number ranges) or the relevant number range maintenance transaction for the module you are working with.
    • Verify that the number range intervals are correctly defined and do not overlap.
    • Ensure that the current number range interval is valid and has not been exhausted.

    b) Synchronize Number Range Buffer

    • Sometimes the number range buffer in SAP gets out of sync with the database.
    • You can synchronize the number range buffer by:
      • Using transaction SNRO (Number Range Objects).
      • Enter the relevant number range object (e.g., FI_DOC for FI documents).
      • Use the "Number Range Buffer" function to refresh or reset the buffer.

    c) Avoid Manual Document Number Entry

    • If the error occurs because of manual entry of document numbers, avoid entering document numbers manually unless absolutely necessary.
    • Let the system assign document numbers automatically to prevent duplication.

    d) Check for Custom Code or User Exits

    • If custom developments or user exits are involved in document number assignment, verify that they do not interfere with standard number range logic.
    • Debug or review custom code to ensure it respects number range rules.

    e) Check for Parallel Number Range Usage

    • In some cases, parallel number ranges or multiple users posting simultaneously can cause conflicts.
    • Review the posting process to avoid simultaneous number range conflicts.

    3. Related Information

    • Number Range Objects: SAP uses number range objects to manage document numbering. For FI documents, the object is usually FI_DOC.
    • Transactions:
      • FBN1 – Maintain Number Ranges for Accounting Documents
      • SNRO – Number Range Objects
      • FB02 – Change Document (to check document numbers)
    • Notes and SAP Help:
      • SAP Notes related to number range inconsistencies can provide additional guidance.
      • SAP Help Portal documentation on number ranges and document posting.

    Summary

    Aspect Details
    Error WS358 - Document numbers copied from run &
    Cause Attempt to reuse or copy document numbers from a previous number range run; number range buffer out of sync; manual entry of duplicate document numbers.
    Solution Check and correct number range intervals (FBN1), synchronize number range buffer (SNRO), avoid manual document number entry, review custom code, and ensure no parallel conflicts.
    Related Info Number range objects (FI_DOC), transactions FBN1, SNRO, FB02, SAP Notes on number ranges.

    If you provide the exact context (module, transaction, or process) where the 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'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