How To Fix J1B_NFE345 - Expected &1 tax rate is &2 but tax rate in XML is &3


SAP Error Message - Details

  • Message type: E = Error

  • Message class: J1B_NFE - Message class for NF-e

  • Message number: 345

  • Message text: Expected &1 tax rate is &2 but tax rate in XML is &3

  • Show details Hide details
  • What causes this issue?

    You have tried to run an invoice or NF-e simulation in <LS>SAP
    BusinessObjects Nota Fiscal Electr(nica</>. During the simulation, the
    system found an error in the incoming XML that is related to taxes.

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

    System Response

    How to fix this error?

    You can proceed as follows:
    Contact the sender of the XML and ensure that the content in the
    incoming XML is correct.
    Check your tax rate settings in Customizing for <LS>Financial Accounting
    </> under <LS>Tax on Sales/Purchases</> -> <LS>Calculation</> ->
    <LS>Settings for Tax Calculation in Brazil</> -> <LS>Tax Rates</>.

    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 J1B_NFE345 - Expected &1 tax rate is &2 but tax rate in XML is &3 ?

    The SAP error message J1B_NFE345 indicates a discrepancy between the expected tax rate and the tax rate provided in the XML file for a Brazilian Nota Fiscal Eletrônica (NF-e). This error typically arises during the validation of the XML file against the expected tax rates defined in the SAP system.

    Cause:

    1. Mismatch in Tax Rates: The tax rate defined in the SAP system for a specific product or service does not match the tax rate specified in the XML file being processed.
    2. Configuration Issues: There may be incorrect configuration in the tax settings within the SAP system, leading to the expected tax rate being set incorrectly.
    3. Changes in Legislation: Tax rates may have changed due to new legislation, and the SAP system may not have been updated accordingly.
    4. Data Entry Errors: There could be manual errors in entering tax rates either in the SAP system or in the XML file.

    Solution:

    1. Verify Tax Rate Configuration:

      • Check the tax rate configuration in the SAP system for the relevant product or service. Ensure that the expected tax rate matches the current legal requirements.
      • Use transaction codes like OB40 (for tax codes) or J1BTAX (for Brazilian tax configuration) to review and adjust the tax settings.
    2. Update XML File:

      • If the tax rate in the XML file is incorrect, update the XML file to reflect the correct tax rate as per the SAP configuration.
    3. Consult with Tax Authorities:

      • If there have been recent changes in tax legislation, consult with local tax authorities or legal advisors to ensure compliance and update the SAP system accordingly.
    4. Testing:

      • After making the necessary adjustments, perform a test run to ensure that the error does not reoccur. Validate the XML file against the updated tax rates.
    5. Documentation:

      • Document any changes made to the tax configuration or XML files for future reference and compliance audits.

    Related Information:

    • SAP Notes: Check for any relevant SAP Notes that may address this specific error or provide guidance on tax rate configurations for NF-e.
    • SAP Community: Engage with the SAP Community forums for insights from other users who may have encountered similar issues.
    • Training: Consider training sessions for users involved in tax configuration and NF-e processing to minimize errors in the future.

    By addressing the root cause of the mismatch and ensuring that both the SAP system and the XML file are aligned, you can resolve the J1B_NFE345 error effectively.

    • 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