How To Fix WS311 - Document currency of document & missing (no statistics update)


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WS - Supplier Billing Document

  • Message number: 311

  • Message text: Document currency of document & missing (no statistics update)

  • Show details Hide details
  • What causes this issue?

    The statistical update for document &V1& was terminated as the document
    currency is missing.

    System Response

    The statistical update is terminated to prevent statistical data being
    damaged.

    How to fix this error?

    Please contact your system administrator as this message is due to a
    program error.
    The error occurred in function module &V2&.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WS311 - Document currency of document & missing (no statistics update) ?

    The SAP error message WS311: Document currency of document & missing (no statistics update) typically occurs during financial document processing, especially in the context of posting or updating accounting documents.


    Cause

    • The error indicates that the document currency field in the accounting document is either missing or not properly maintained.
    • This missing currency information prevents the system from updating statistical data related to the document.
    • It often happens when:
      • The currency field is left blank during document entry.
      • The currency is not determined correctly due to configuration issues.
      • The document is created via a custom program or interface that does not populate the currency field.
      • The document type or transaction does not have a default currency assigned or the currency is not passed correctly.

    Solution

    1. Check Document Currency Field:

      • Verify that the document currency is entered correctly in the accounting document.
      • If posting manually, ensure the currency field is filled.
      • If posting via interface or program, check the data mapping to ensure currency is passed.
    2. Review Configuration:

      • Check the currency settings in the company code master data (transaction OBY6).
      • Ensure the company code has a default currency assigned.
      • Verify the document type configuration to ensure currency is handled properly.
    3. Correct the Document:

      • If the document is already posted but missing currency, you may need to reverse and repost with correct currency.
      • Alternatively, use transaction FB02 to check document details (though currency field is usually not editable after posting).
    4. Check Custom Code or Interfaces:

      • If the document is created via custom programs or interfaces (IDocs, BAPIs), ensure the currency field is correctly populated.
      • Debug or analyze the program to fix missing currency assignment.
    5. Update Statistics:

      • Once the currency is correctly maintained, the system can update the statistical data without error.

    Related Information

    • Transaction Codes:

      • FB03 – Display Document
      • FB02 – Change Document
      • OBY6 – Company Code Global Parameters (including currency)
      • FAGL_FC_VAL – Foreign currency valuation (related to currency handling)
    • Notes and SAP Help:

      • Check SAP Notes related to currency handling and document posting errors.
      • Review SAP Financial Accounting (FI) documentation on document currency and company code currency.
    • Common Scenarios:

      • Posting documents in foreign currency without specifying currency.
      • Integration errors between submodules (e.g., MM, SD) and FI where currency is not passed.
      • Issues in parallel currencies or multiple currency valuation.

    Summary

    Aspect Details
    Error WS311 Document currency missing (no statistics update)
    Cause Document currency field is empty or not maintained
    Effect System cannot update statistical data for document
    Solution Ensure currency is entered; check company code currency; fix interfaces/custom code
    Related TCodes FB02, FB03, OBY6

    If you provide more context (e.g., transaction used, document type, whether this is during posting or batch processing), I can help with more specific troubleshooting steps.

    • 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