How To Fix 9J1UFDI341 - Company Codes are different in XML and accounting document (&1 vs. &2).


SAP Error Message - Details

  • Message type: E = Error

  • Message class: 9J1UFDI - Messages for Ukraine E-Invoices

  • Message number: 341

  • Message text: Company Codes are different in XML and accounting document (&1 vs. &2).

  • Show details Hide details
  • What causes this issue?

    You have tried to link an accounting document to an XML file with
    different Company Codes.

    System Response

    You can only link accounting documents to XML files with the same
    Company Code.

    How to fix this error?

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

    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 9J1UFDI341 - Company Codes are different in XML and accounting document (&1 vs. &2). ?

    The SAP error message 9J1UFDI341 indicates that there is a mismatch between the company codes in the XML file and the accounting document being processed. Specifically, the error message states that the company code in the XML file is different from the company code in the accounting document, which can lead to issues in data consistency and processing.

    Cause:

    1. Mismatch in Company Codes: The primary cause of this error is that the XML file being uploaded or processed contains a company code that does not match the company code in the corresponding accounting document. This can happen due to:
      • Incorrect data entry in the XML file.
      • An error in the configuration or mapping of company codes.
      • The use of an outdated or incorrect XML file that does not correspond to the current accounting document.

    Solution:

    To resolve this error, you can take the following steps:

    1. Verify XML File: Check the XML file to ensure that the company code specified in the file matches the company code in the accounting document. You can do this by:

      • Opening the XML file in a text editor or XML viewer.
      • Locating the company code element and comparing it with the company code in the accounting document.
    2. Correct the Company Code: If you find that the company code in the XML file is incorrect, update it to match the company code in the accounting document.

    3. Check Configuration: If the XML file is generated by a system or process, ensure that the configuration for generating the XML file is correct and that it is pulling the right company code.

    4. Reprocess the Document: After making the necessary corrections, reprocess the XML file to see if the error persists.

    5. Consult Documentation: If you are unsure about the correct company codes or how to modify the XML file, consult your SAP documentation or reach out to your SAP support team for assistance.

    Related Information:

    • Transaction Codes: You may want to use transaction codes like SE11 (Data Dictionary) or SE80 (Object Navigator) to analyze the structure of the XML and the accounting document.
    • Debugging: If the issue is complex, consider debugging the process to see where the mismatch occurs.
    • SAP Notes: Check for any relevant SAP Notes that might address this specific error or provide additional guidance on handling XML imports and accounting document processing.

    By following these steps, you should be able to identify and resolve the cause of the error message 9J1UFDI341.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


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