How To Fix AR139 - Country key & is not defined


SAP Error Message - Details

  • Message type: E = Error

  • Message class: AR - SSRV function module messages

  • Message number: 139

  • Message text: Country key & is not defined

  • 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 AR139 - Country key & is not defined ?

    The SAP error message AR139, which states "Country key & is not defined," typically occurs when the system encounters a country key that has not been configured in the system. This can happen in various contexts, such as when creating a customer or vendor master record, or during transactions that involve country-specific data.

    Cause:

    1. Missing Country Key Configuration: The country key specified in the transaction or master data is not defined in the system.
    2. Incorrect Country Key: The country key entered may be misspelled or incorrect.
    3. Data Migration Issues: If data has been migrated from another system, the country keys may not have been properly set up in the SAP system.
    4. Custom Development: If there are custom programs or enhancements, they may be referencing a country key that is not defined.

    Solution:

    1. Check Country Key Configuration:

      • Go to the transaction code OBY6 (or SPRO -> Financial Accounting -> Financial Accounting Global Settings -> Country-specific Settings -> Define Countries).
      • Verify if the country key in question is listed. If it is not, you will need to create it.
    2. Create Missing Country Key:

      • If the country key is missing, you can create it by clicking on the "New Entries" button and filling in the required details (Country Key, Country Name, etc.).
    3. Verify Input:

      • Double-check the input for any typos or errors in the country key. Ensure that the correct country key is being used.
    4. Check Custom Code:

      • If the error arises from custom developments, review the code to ensure it is referencing valid country keys.
    5. Data Migration Review:

      • If this issue arose after a data migration, review the migration process to ensure that all necessary country keys were included.
    6. Consult Documentation:

      • Refer to SAP documentation or help resources for additional guidance on country key configuration.

    Related Information:

    • Transaction Codes:

      • OBY6: To define countries.
      • SPRO: To access the SAP Reference IMG for configuration.
    • Country Key Usage: Country keys are used in various modules, including Financial Accounting (FI), Sales and Distribution (SD), and Materials Management (MM), to determine country-specific settings and regulations.

    • SAP Notes: Check SAP Notes for any known issues or patches related to this error message.

    By following these steps, you should be able to resolve the AR139 error and ensure that the country key is properly defined in your SAP system.

    • 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
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