How To Fix KX171 - Hierarchy does not exist -> Create hierarchy first


SAP Error Message - Details

  • Message type: E = Error

  • Message class: KX - EC-EIS/EC-BP: Data basis, data collection

  • Message number: 171

  • Message text: Hierarchy does not exist -> Create hierarchy first

  • Show details Hide details
  • What causes this issue?

    For the combination of characteristic/variant that you entered, an
    external hierarchy has not yet been maintained.

    How to fix this error?

    Create an external hierarchy.

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message KX171 - Hierarchy does not exist -> Create hierarchy first ?

    The SAP error message KX171 ("Hierarchy does not exist -> Create hierarchy first") typically occurs in the context of SAP Controlling (CO) when you are trying to use a hierarchy that has not been defined or created in the system. This error is often encountered when working with cost centers, profit centers, or internal orders where hierarchical structures are required for reporting or analysis.

    Cause:

    1. Missing Hierarchy: The most common cause of this error is that the hierarchy you are trying to access or use has not been created in the system.
    2. Incorrect Hierarchy Assignment: You may be trying to assign a hierarchy that is not relevant for the specific context or is not properly configured.
    3. Authorization Issues: In some cases, the user may not have the necessary authorizations to view or create the hierarchy.

    Solution:

    1. Create the Hierarchy:

      • Navigate to the appropriate transaction code for creating hierarchies. For example, you can use transaction code KSH1 for cost center hierarchies or KSH2 for changing them.
      • Follow the prompts to create the required hierarchy. Ensure that you define the nodes and structure as needed for your reporting or analysis.
    2. Check Existing Hierarchies:

      • Use transaction codes like KSH3 to display existing hierarchies and verify if the hierarchy you need is already created.
      • If it exists but is not active or not assigned correctly, you may need to adjust its settings.
    3. Verify Configuration:

      • Ensure that the hierarchy is correctly configured and assigned to the relevant controlling area or organizational unit.
      • Check if the hierarchy is marked as active and is set up for the correct fiscal year.
    4. Authorization Check:

      • If you suspect that authorization might be an issue, check with your SAP security team to ensure you have the necessary permissions to access and create hierarchies.
    5. Consult Documentation:

      • Refer to SAP documentation or help files for specific instructions on creating and managing hierarchies in your version of SAP.

    Related Information:

    • Transaction Codes:

      • KSH1: Create Cost Center Hierarchy
      • KSH2: Change Cost Center Hierarchy
      • KSH3: Display Cost Center Hierarchy
      • KCH1: Create Profit Center Hierarchy
      • KCH2: Change Profit Center Hierarchy
      • KCH3: Display Profit Center Hierarchy
    • SAP Notes: Check SAP Notes for any known issues or patches related to hierarchy management in your version of SAP.

    • Training and Documentation: Consider training sessions or documentation on SAP Controlling to better understand how hierarchies work and how to manage them effectively.

    By following these steps, you should be able to resolve the KX171 error and successfully create or access the required hierarchy in SAP.

    • 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