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

Close

How To Fix WG145 - Document type contains errors. Change document cannot be determined!


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WG - Messages for store order and investment buy

  • Message number: 145

  • Message text: Document type contains errors. Change document cannot be determined!

  • Show details Hide details
  • What causes this issue?

    Unknown document category

    System Response

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.

    How to fix this error?

    Enter:
    1 for purchase requisition
    3 for purchase order
    4 for delivery
    7 for sales order

    Procedure for System Administrators


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WG145 - Document type contains errors. Change document cannot be determined! ?

    The SAP error message:

    WG145 - Document type contains errors. Change document cannot be determined!


    Cause:

    This error typically occurs when the system tries to create or change a document (such as a goods movement, delivery, or invoice) and attempts to determine the change document object for logging changes, but the document type configuration is incomplete or incorrect.

    Specifically, the error means that the document type used in the transaction does not have a properly assigned change document object or the configuration for change document determination is missing or inconsistent.


    Explanation:

    • SAP uses change documents to log changes to business objects for audit and tracking purposes.
    • Each document type (e.g., material document type, delivery document type) should be linked to a change document object.
    • If this link is missing or incorrectly maintained, SAP cannot determine how to log changes, resulting in this error.

    Common Scenarios:

    • Custom or new document types created without proper configuration.
    • Transport or system copy issues where customizing is incomplete.
    • Missing or incorrect entries in the change document object assignment tables.
    • Inconsistent or missing entries in transaction codes related to document type configuration.

    Solution:

    1. Check Document Type Configuration:

      • Identify the document type causing the error.
      • Go to the relevant customizing transaction depending on the document type:
        • For material documents: OMJJ (Material Document Types)
        • For delivery documents: OVL2 (Delivery Types)
        • For billing documents: VOFA (Billing Types)
        • For other document types, check the relevant customizing path.
    2. Verify Change Document Object Assignment:

      • Check if the document type is assigned to a change document object.
      • For material documents, the change document object is usually MATERIAL_DOCUMENT.
      • For deliveries, it might be LIKP or similar.
      • Use transaction SCDO to check change document objects and their assigned tables.
    3. Maintain or Correct the Assignment:

      • If missing, assign the correct change document object to the document type.
      • This might require consulting SAP standard documentation or SAP Notes for the correct object.
    4. Check for OSS Notes:

      • Search SAP Support Portal for notes related to WG145 and your specific module.
      • Sometimes SAP provides patches or corrections for known issues.
    5. Test the Changes:

      • After correcting the configuration, test the transaction again to ensure the error is resolved.

    Additional Information:

    • Change Documents in SAP:
      Change documents are used to track changes to important business objects. They are configured via change document objects (SCDO), which define which tables and fields are logged.

    • Relevant Tables:

      • T159N - Document types for material documents.
      • T159T - Texts for document types.
      • T159S - Change document object assignment (check if applicable).
    • Debugging:

      • If the error persists, debugging the program where the error occurs can help identify which document type and change document object are involved.

    Summary:

    Aspect Details
    Cause Document type lacks proper change document object assignment or configuration is incorrect.
    Solution Assign the correct change document object to the document type in customizing.
    Transactions OMJJ, OVL2, VOFA, SCDO
    Notes Check SAP OSS Notes for WG145 and module-specific fixes.

    If you provide the exact document type and module (MM, SD, FI, etc.), I can help you with more precise customizing paths or SAP Notes references.

    • 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