How To Fix WS798 - Negative gross amount is not allowed for country &1 and company code &2


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WS - Supplier Billing Document

  • Message number: 798

  • Message text: Negative gross amount is not allowed for country &1 and company code &2

  • 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 WS798 - Negative gross amount is not allowed for country &1 and company code &2 ?

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


    SAP Error Message:

    WS798 - Negative gross amount is not allowed for country &1 and company code &2


    Cause:

    This error occurs when you try to post a document (usually in Financial Accounting or Logistics) with a negative gross amount in a country and company code combination where negative gross amounts are not permitted by the system configuration or legal requirements.

    • The system checks the country-specific and company code-specific settings for document postings.
    • For certain countries and company codes, SAP enforces a rule that the gross amount (total amount before taxes or deductions) must not be negative.
    • This is often due to legal or tax regulations that prohibit negative gross amounts in invoices or accounting documents.
    • The error is triggered when the document you are trying to post contains a negative gross amount, violating this rule.

    Solution:

    To resolve this error, consider the following steps:

    1. Check the Document Amounts:

      • Verify the amounts entered in the document.
      • Ensure that the gross amount is positive.
      • If you intended to post a credit or reversal, use the appropriate transaction or document type designed for that purpose.
    2. Review Country and Company Code Settings:

      • Check the configuration in Financial Accounting (FI) for the country and company code.
      • The setting controlling this behavior is often related to tax or invoice posting rules.
      • Consult with your SAP FI consultant or check the IMG path related to country-specific settings.
    3. Use Correct Document Types:

      • For credit memos or returns, use document types that allow negative amounts or reversals.
      • Posting a negative gross amount in a standard invoice document type may not be allowed.
    4. Adjust Configuration (if legally permissible):

      • If business requirements demand posting negative gross amounts, and it is legally allowed, the system configuration might need adjustment.
      • This involves changing the country-specific settings or tax procedure to allow negative gross amounts.
      • This should be done carefully and in consultation with legal and SAP FI experts.
    5. Consult SAP Notes and Documentation:

      • Check SAP Notes for any known issues or patches related to this error.
      • Review SAP Help Portal documentation for country-specific posting rules.

    Related Information:

    • Transaction Codes:

      • FB60, FB70, MIRO, or other invoice posting transactions where this error might occur.
    • Configuration Paths:

      • SPRO ? Financial Accounting ? Financial Accounting Global Settings ? Tax on Sales/Purchases ? Basic Settings ? Check Country-Specific Settings.
      • Or country-specific tax procedure settings.
    • Legal Requirements:

      • Some countries have strict rules about invoice postings, disallowing negative gross amounts to prevent tax evasion or incorrect tax reporting.
    • SAP Notes:

      • Search SAP Support Portal for notes related to WS798 or negative gross amounts for your specific country.

    Summary:

    The error WS798 indicates that posting a negative gross amount is not allowed for the specified country and company code due to system or legal restrictions. To fix it, ensure the gross amount is positive, use appropriate document types for reversals, and review or adjust configuration settings if necessary and legally allowed.


    If you provide the specific country and company code, I can help you find more tailored advice or configuration details.

    • 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's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker