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

Close

How To Fix WHT_BR021 - Nota Fiscal is not found for document &, type &


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WHT_BR - Messages Brazilian Withholding Tax Calculation

  • Message number: 021

  • Message text: Nota Fiscal is not found for document &, type &

  • 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 WHT_BR021 - Nota Fiscal is not found for document &, type & ?

    Certainly! Here's a detailed explanation for the SAP error message:


    SAP Error Message:

    WHT_BR021 Nota Fiscal is not found for document &, type &


    Meaning / Cause:

    This error occurs in the context of Withholding Tax (WHT) processing in SAP, specifically related to Brazilian localization where Nota Fiscal (Brazilian tax invoice) information is mandatory for tax withholding documents.

    • The system is trying to find the Nota Fiscal document linked to a particular accounting or withholding tax document but cannot find it.
    • This usually happens when the withholding tax document references a Nota Fiscal that has not been created, not been properly linked, or the linkage data is missing or inconsistent.
    • The placeholders & represent the document number and document type for which the Nota Fiscal is missing.

    When does it occur?

    • During withholding tax determination or posting.
    • When generating withholding tax documents or reports.
    • When integrating with Brazilian tax reporting or electronic invoicing (SPED, eSocial).
    • When the Nota Fiscal data is required but not maintained or linked.

    Common Causes:

    1. Missing Nota Fiscal Document: The Nota Fiscal has not been created or entered in the system for the referenced document.
    2. Incorrect or Missing Linkage: The withholding tax document does not have a proper reference to the Nota Fiscal.
    3. Data Inconsistency: Master data or transactional data inconsistencies, such as missing tax codes or incorrect document types.
    4. Configuration Issues: Incorrect configuration in the Brazilian localization settings for withholding tax or Nota Fiscal integration.
    5. Customizing or User Exits: Custom code or user exits that handle Nota Fiscal linkage might be incomplete or faulty.

    Solution / How to Fix:

    1. Verify Nota Fiscal Document:

      • Check if the Nota Fiscal document exists for the referenced document number and type.
      • Use transaction codes like MIR4 (Invoice Verification), NF-e related transactions, or Brazilian localization reports to verify Nota Fiscal data.
    2. Maintain or Create Nota Fiscal:

      • If missing, create the Nota Fiscal document properly.
      • Ensure that the Nota Fiscal is correctly linked to the accounting or withholding tax document.
    3. Check Linkage and References:

      • Verify the linkage between the withholding tax document and the Nota Fiscal.
      • Use tables like WHT_DOCS or Brazilian-specific tables to check references.
    4. Review Configuration:

      • Check the withholding tax configuration in SPRO under Financial Accounting > Withholding Tax > Brazil.
      • Ensure that the Nota Fiscal integration settings are correct.
    5. Check Master Data:

      • Verify vendor/customer master data for correct tax information.
      • Ensure tax codes and document types are properly maintained.
    6. Debug or Review Custom Code:

      • If custom enhancements or user exits are used for Nota Fiscal processing, review them for correctness.
    7. Consult SAP Notes:

      • Search for SAP Notes related to WHT_BR021 for any patches or known issues.

    Related Information:

    • Brazilian Localization: The Nota Fiscal is a mandatory tax document in Brazil, and SAP Brazil localization includes specific handling for it.
    • Withholding Tax (WHT): Brazil requires withholding tax on certain transactions, and the Nota Fiscal is often required for tax reporting.
    • Transactions to Check:
      • MIR4 - Display Invoice Document
      • J1BNFE - Brazilian Nota Fiscal processing
      • J1B3N - Withholding Tax Document display
    • Tables:
      • WHT_DOCS - Withholding tax documents
      • J_1BNFE - Nota Fiscal documents
    • SAP Notes: Check SAP Support Portal for notes related to WHT_BR021.

    If you provide the exact document number and type, I can help you 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
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