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

Close

How To Fix WS797 - No entry defined for country &1


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WS - Supplier Billing Document

  • Message number: 797

  • Message text: No entry defined for country &1

  • 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 WS797 - No entry defined for country &1 ?

    SAP Error Message:
    WS797 No entry defined for country &1


    Cause:

    This error occurs when the system tries to process or validate data related to a country code that is not defined or maintained in the relevant SAP customizing tables. Essentially, the system expects a country entry in its configuration, but it cannot find one for the country code provided (represented by &1).

    Common scenarios where this error appears include:

    • When creating or processing vendor/customer master data with a country code not maintained in the system.
    • During tax or address validations where country-specific settings are required.
    • When using country-dependent configuration in logistics, finance, or HR modules.

    Solution:

    To resolve this error, you need to ensure that the country code in question is properly maintained in the SAP system.

    Steps to fix:

    1. Check the country code:
      Verify the country code that caused the error (the &1 placeholder will be replaced by the actual country code in the error message).

    2. Maintain country codes in SAP:

      • Go to transaction OBY6 (or SPRO ? SAP Reference IMG ? Enterprise Structure ? Definition ? Logistics General ? Define Countries).
      • Alternatively, use transaction SM30 to maintain table T005 (Country Codes).
      • Check if the country code exists. If not, add the country code with the correct description.
    3. Maintain related country-dependent settings:
      Depending on the module, you may also need to maintain additional country-specific data, such as:

      • Tax codes and tax jurisdiction (FI)
      • Address formats (SD, MM)
      • Country grouping for pricing or tax (SD)
      • Bank key information (FI)
      • Country-specific settings in HR or payroll
    4. Check master data:
      If the error occurs during master data creation or update, ensure the country code entered is valid and matches the entries in the customizing tables.

    5. Transport changes:
      If you add or change country codes in a development system, make sure to transport these changes to quality and production systems.


    Related Information:

    • Table T005: Contains country codes and descriptions.
    • Transaction OBY6: Used to maintain country codes and related settings.
    • SAP Note: Sometimes SAP releases notes related to country-specific configurations or updates.
    • Country-dependent configuration: Many SAP modules require country-specific settings; missing these can cause errors.
    • Error message class WS7: This message belongs to the message class WS7, which is related to country and region settings.

    Summary:

    The error "WS797 No entry defined for country &1" means the system cannot find the specified country code in its configuration tables. To fix it, maintain the missing country code in table T005 and ensure all related country-dependent settings are properly configured.


    If you provide the exact country code or the context (module, transaction), I can help with more specific instructions.

    • 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