How To Fix KU154 - Hierarchy contains invalid hierarchy codes


KU154 - Overview

  • Message type: E = Error

  • Message class: KU - Costing: Rollup

  • Message number: 154

  • Message text: Hierarchy contains invalid hierarchy codes

  • Show details Hide details
  • What causes this issue?

    The hierarchy contains at least one invalid hierarchy code. A hierarchy
    code is invalid if a blank subcode is followed by non-blank subcodes.

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

    Example:
    Suppose the following hierarchy structure has been defined:
    Level 1: Controlling area
    Level 2: Order type
    Level 3: Plant
    Level 4: Responsible cost center
    There are three orders in the system with the following characteristic
    values:
    Order | CO area | Type | Plant | Cost center
    --------|---------|--------|---------|------------
    7710 | 0001 | 0100 | blank | K1
    7711 | 0001 | PP01 | 0001 | K2
    7712 | 0001 | 0200 | blank | blank
    These three orders carry the following hierarchy codes:
    Code-1: 0001.0100.____.K1
    This is an invalid combination because the third subcode has no value
    while the fourth subcode has a value. There is no hierarchy level and
    node to which the associated order could be assigned.
    Code-2: 0001.PP01.0001.K2
    This is a valid combination because all subcodes have values. The
    associated order is assigned to node 0001.PP01.0001.K2 (level 4).
    Code-3: 0001.0200.____.__
    This is a valid combination. Although the third subcode has no value,
    none of the following subcodes have values, either. The associated
    order is assigned directly to node 0001.0200 (level 2).

    System Response

    Invalid hierarchy codes cannot be included in summarization - the
    associated orders (or projects) are skipped.

    How to fix this error?

    If you want to include in summarization those orders or projects that
    have invalid hierarchy codes, you can do either of the following:
    Assign values to the blank subcodes
    If you perform summarization with a detailed message log, all invalid
    hierarchy codes will be printed out.
    Then select the orders or projects that have these invalid
    characteristics, and valuate the orders or projects.
    Assign them to a node <not assigned>
    When you define the summarization hierarchy levels, set the field to
    "blank". This replaces blank characteristics with special characters
    and generates an additional node <not assigned> at this level.

    Error message extract from SAP system. Copyright SAP SE.


KU154 - Details

  • The SAP error message KU154, which states "Hierarchy contains invalid hierarchy codes," typically occurs in the context of SAP's Controlling (CO) module, particularly when dealing with cost center hierarchies or other hierarchical structures. This error indicates that there are references to hierarchy codes that do not exist or are not valid within the specified hierarchy.
    Causes:
    
    Invalid Hierarchy Codes: The hierarchy may reference codes that have been deleted or do not exist in the system.
    Incorrect Configuration: The hierarchy may not be properly configured, leading to inconsistencies in the hierarchy structure.
    Data Migration Issues: If data has been migrated from another system, there may be discrepancies in the hierarchy codes.
    Changes in Hierarchy Structure: If the hierarchy has been modified (e.g., nodes added or removed), it may lead to references to non-existent codes.
    
    Solutions:
    
    Check Hierarchy Codes: Verify that all hierarchy codes referenced in the hierarchy are valid and exist in the system. You can do this

    Already have an account? Login here!




Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


KU154 - Related SAP Errors

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