How To Fix KZ022 - Cost object not linked to complete hierarchy


SAP Error Message - Details

  • Message type: E = Error

  • Message class: KZ - Cost Object Repetitive Mfg / Process Mfg

  • Message number: 022

  • Message text: Cost object not linked to complete hierarchy

  • Show details Hide details
  • What causes this issue?

    The cost object ID is not yet in a complete hierarchy, because
    you have not entered a cost object ID as a higher-level cost
    object or
    you have not indicated which of the cost objects in the higher-level
    hierarchy is the highest hierarchy node by entering '*' in the "Higher-
    level cost object" field.

    How to fix this error?

    To create a valid cost object hierarchy, do the following:
    Enter a higher-level cost object for each cost object ID
    Indicate that one of these cost object IDs is the highest node
    in the hierarchy by entering '*' for its higher-level cost object.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message KZ022 - Cost object not linked to complete hierarchy ?

    The SAP error message KZ022, which states "Cost object not linked to complete hierarchy," typically occurs in the context of controlling (CO) when you are trying to post costs or perform transactions related to cost objects (like cost centers, internal orders, etc.) that are not properly linked to the relevant hierarchy in the system.

    Cause:

    1. Missing Hierarchical Link: The cost object you are trying to use is not linked to the complete hierarchy of cost elements or cost centers. This can happen if the cost object is newly created and has not been assigned to the necessary groups or hierarchies.
    2. Incorrect Configuration: There may be issues with the configuration of the controlling area, cost centers, or internal orders that prevent the cost object from being recognized in the hierarchy.
    3. Master Data Issues: The master data for the cost object may be incomplete or incorrectly set up, leading to the error when attempting to post transactions.

    Solution:

    1. Check Hierarchy Assignment:

      • Go to the relevant configuration in SAP (e.g., SPRO) and check the assignment of the cost object to the appropriate hierarchy. Ensure that the cost object is linked to the correct cost center or internal order hierarchy.
    2. Review Master Data:

      • Verify the master data for the cost object. Ensure that all necessary fields are filled out correctly and that the object is active.
      • For cost centers, check if they are assigned to the correct controlling area and if they are valid for the period in which you are trying to post.
    3. Update Configuration:

      • If you find that the cost object is not linked correctly, you may need to update the configuration settings in the system to include the cost object in the appropriate hierarchy.
    4. Consult Documentation:

      • Review SAP documentation or help resources for specific steps related to your version of SAP, as the process may vary slightly depending on the system configuration.
    5. Testing:

      • After making the necessary changes, perform a test transaction to ensure that the error does not occur again.

    Related Information:

    • Transaction Codes: You may use transaction codes like KS01 (Create Cost Center), KSO1 (Create Internal Order), or KSH1 (Create Cost Element) to manage cost objects.
    • SAP Notes: Check SAP Notes for any known issues or patches related to this error message.
    • User Roles and Authorizations: Ensure that the user has the necessary authorizations to access and modify the cost objects and their hierarchies.

    If the issue persists after following these steps, it may be beneficial to consult with your SAP support team or a consultant who specializes in SAP Controlling (CO) for further assistance.

    • 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