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

Close

How To Fix WS_EA020 - Document & created with reference to &2 (account determination incorrect)


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WS_EA - Settlement Management Messages (Add-On)

  • Message number: 020

  • Message text: Document & created with reference to &2 (account determination incorrect)

  • Show details Hide details


  • Self-Explanatory Message

    Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.

    To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.

    Unfortunately, there isn't any extra information in this error notice.



    What else can you do?

    First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).

    Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.

    You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WS_EA020 - Document & created with reference to &2 (account determination incorrect) ?

    The SAP error message:

    WS_EA020: Document & created with reference to &2 (account determination incorrect)


    Meaning / Cause:

    This error occurs during the posting of a document (usually in Sales and Distribution or Financial Accounting) when the system tries to create a document with reference to another document, but the account determination (automatic account assignment) is incorrect or missing.

    In other words, the system cannot find the correct G/L account to post the transaction because the account determination configuration is incomplete or incorrect for the given condition.

    Common scenarios where this happens:

    • Billing document creation referencing a sales order or delivery, but the system cannot determine the revenue or tax account.
    • Automatic postings in SD-FI integration where account determination tables (e.g., VKOA) are not properly maintained.
    • Missing or incorrect entries in account determination customizing (e.g., for revenue accounts, tax accounts, or account keys).

    Detailed Cause:

    • The system uses condition technique and account determination tables (like VKOA) to find the correct G/L accounts.
    • If the combination of sales area, account key, customer account group, or other relevant fields does not exist in the account determination tables, the system cannot find the account.
    • This leads to the error when posting the document referencing another document.

    Solution / How to Fix:

    1. Check Account Determination Configuration:

      • Go to transaction VKOA (Account Determination).
      • Verify that the relevant entries exist for the combination of:
        • Sales organization
        • Distribution channel
        • Division
        • Account key (e.g., for revenue, tax)
        • Customer account group or other relevant fields
      • If missing, create or correct the entries.
    2. Check Condition Records:

      • Ensure that pricing conditions and account keys are correctly maintained.
      • Use transaction VK11/VK12 to check pricing conditions.
    3. Check Customer Master Data:

      • Verify that the customer master data is complete and correct, especially the reconciliation account in FI.
      • Use transaction XD03 or FD03.
    4. Check Sales Document and Billing Document:

      • Verify that the sales order or delivery document has correct data that influences account determination.
      • Check if the reference document is valid and complete.
    5. Check Tax Configuration:

      • If the error relates to tax accounts, verify tax codes and tax account determination in transaction OB40 or FTXP.
    6. Debugging / Logs:

      • If the above steps do not resolve the issue, debugging the account determination logic or checking application logs (transaction SLG1) may help identify the missing link.

    Related Information:

    • VKOA - Account determination for SD-FI integration.
    • OBYC - Automatic account determination for MM (may be relevant if material postings are involved).
    • VK11/VK12 - Pricing condition maintenance.
    • XD03/FD03 - Customer master data display.
    • SAP Notes related to account determination errors.
    • Check OSS notes for specific SAP versions if the problem persists.

    Summary:

    Aspect Details
    Error Message WS_EA020 Document & created with reference to &2 (account determination incorrect)
    Cause Missing or incorrect account determination entries for the referenced document
    Solution Maintain correct account determination entries in VKOA, verify customer master, pricing, and tax configuration
    Transactions to Check VKOA, VK11/VK12, XD03/FD03, OB40, FTXP

    If you provide the exact document types or scenario (e.g., billing document creation, sales order posting), I can help you with more precise 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
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