How To Fix F5091 - Country key & was deleted; recreate it


SAP Error Message - Details

  • Message type: E = Error

  • Message class: F5 - Document Editing

  • Message number: 091

  • Message text: Country key & was deleted; recreate it

  • 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 F5091 - Country key & was deleted; recreate it ?

    The SAP error message F5091 indicates that a country key has been deleted from the system, and it needs to be recreated for the system to function correctly. This error typically arises in the context of financial transactions, particularly when dealing with country-specific settings in the SAP system.

    Cause:

    1. Deletion of Country Key: The country key in question has been deleted from the system, which can happen due to data maintenance activities or incorrect configuration.
    2. Configuration Issues: The country key may have been removed during a system upgrade or migration, or it may not have been properly configured in the first place.
    3. Data Integrity Issues: There may be inconsistencies in the master data or configuration settings that lead to the country key being flagged as deleted.

    Solution:

    1. Recreate the Country Key:

      • Go to the transaction code OBY6 (for country-specific settings) or SPRO (to access the SAP Reference IMG).
      • Navigate to Financial Accounting (New) > Financial Accounting Global Settings (New) > Countries > Define Countries.
      • Check if the country key is listed. If it is not, you will need to create it again.
      • Enter the necessary details for the country key, including the country name, currency, and any other relevant settings.
    2. Check for Dependencies:

      • Ensure that there are no dependent objects or configurations that might be affected by the deletion of the country key.
      • Review any related master data (like customer or vendor records) to ensure they are correctly configured with the new country key.
    3. Data Consistency Check:

      • Run data consistency checks to ensure that there are no other issues in the system that could lead to similar errors.
      • Use transaction codes like SE16 or SE11 to check the relevant tables for any inconsistencies.
    4. Transport Requests:

      • If the deletion was part of a transport request, ensure that the transport is correctly configured and that all necessary objects are included.
    5. Consult Documentation:

      • Review SAP documentation or notes related to the specific country key and its configuration to ensure compliance with any legal or regulatory requirements.

    Related Information:

    • Transaction Codes: Familiarize yourself with relevant transaction codes such as OBY6, SPRO, SE16, and SE11 for configuration and data checks.
    • SAP Notes: Check SAP Notes for any known issues or patches related to the country key and the error message F5091.
    • User Roles and Authorizations: Ensure that you have the necessary authorizations to make changes to country configurations in the SAP system.

    If the issue persists after following these steps, it may be beneficial to consult with your SAP Basis or functional team for further investigation and resolution.

    • 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