How To Fix WS320 - Recompilation of statistics for many settlement mgmt docs (see long text)


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WS - Supplier Billing Document

  • Message number: 320

  • Message text: Recompilation of statistics for many settlement mgmt docs (see long text)

  • Show details Hide details
  • What causes this issue?

    Because of the selection criteria, the recompilation of statistical data
    may involve a large number of settlement management documents.
    You are advised to run the report in the background.

    How to fix this error?

    If you want to process the documents online, answer <LS>Yes</> to the
    prompt.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WS320 - Recompilation of statistics for many settlement mgmt docs (see long text) ?

    Certainly! Here's a detailed explanation regarding the SAP error message WS320:


    SAP Error Message: WS320

    Message Text:
    Recompilation of statistics for many settlement management documents (see long text)


    Cause

    The error message WS320 typically occurs during the processing of settlement management documents in SAP, especially when there is a need to recompile or update statistical data related to many settlement documents at once.

    Common causes include:

    • Inconsistencies or missing statistical data for settlement management documents.
    • A large volume of settlement documents requiring statistical recalculation or recompilation.
    • System inconsistencies due to incomplete or interrupted settlement runs.
    • Data corruption or missing entries in tables related to settlement statistics.
    • Custom developments or user exits that interfere with the standard settlement processing.

    Explanation / Long Text

    The long text of WS320 usually explains that the system has detected the need to recompile statistical data for many settlement management documents. This recompilation is necessary to ensure that the statistical information used for reporting, controlling, or further processing is accurate and consistent.


    Solution / Recommended Actions

    1. Run the Recompilation Program:

      SAP provides a standard report/program to recompile the statistics for settlement management documents. This program recalculates and updates the statistical data to ensure consistency.

      • Transaction: S_ALR_87012993 (Settlement Management: Recompile Statistics)
      • Or execute the relevant report/program (e.g., RWSSTAT or a similar report depending on your SAP version).
    2. Check for Data Inconsistencies:

      • Use transaction SE16/SE16N to check tables related to settlement management statistics (e.g., COSP, COEP, or settlement-specific tables).
      • Look for missing or inconsistent entries.
    3. Review Recent Settlement Runs:

      • Check if any settlement runs were interrupted or failed.
      • Re-run or complete any incomplete settlement processes.
    4. Check for Custom Code:

      • Review any user exits, BADIs, or custom programs that might affect settlement processing.
      • Temporarily disable or debug custom code to isolate the issue.
    5. SAP Notes and Support:

      • Search for SAP Notes related to WS320 or settlement management statistics recompilation.
      • Apply any relevant patches or corrections provided by SAP.
    6. System Performance:

      • Since recompilation can be resource-intensive, schedule the recompilation during off-peak hours.
      • Monitor system performance during the process.

    Related Information

    • Settlement Management (CO-OM-CCA-SM): The module responsible for managing internal cost settlements.
    • Statistical Data in Controlling: Used for reporting and analysis; must be consistent for accurate controlling.
    • SAP Notes: Check SAP Service Marketplace or SAP ONE Support Launchpad for notes related to WS320 or settlement statistics recompilation.
    • Transaction Codes:
      • KO88 - Actual Settlement
      • KSU5 - Recompilation of Statistical Data (depending on system/version)
      • S_ALR_87012993 - Settlement Management Reports

    Summary

    Aspect Details
    Cause Need to recompile statistical data for many settlement management documents due to inconsistencies or volume.
    Solution Run the standard recompilation program/report, check data consistency, review settlement runs, and verify custom code.
    Related Settlement Management module, controlling statistics, SAP Notes, and relevant transactions like KO88, KSU5.

    If you provide your SAP system version or more context (e.g., when the error occurs), I can help you find the exact report or SAP Note to resolve the issue.

    • 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
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author