Message type: E = Error
Message class:  KU - Costing: Rollup 
Message number: 305
Message text: Hierarchy error: & already contained in the hierarchy
Criterion &v1& already exists in the hierarchy.  It may not occur more
than once.
Delete your entry.
Error message extract from SAP system. Copyright SAP SE.
The SAP error message KU305, which states "Hierarchy error: & already contained in the hierarchy," typically occurs in the context of SAP's Controlling (CO) module, particularly when dealing with cost center hierarchies or other hierarchical structures.
Cause: This error usually arises when you attempt to add a node (such as a cost center or a profit center) to a hierarchy that already contains that node. The system does not allow duplicate entries in a hierarchy, which is why you receive this error message.
Solution: To resolve the KU305 error, you can follow these steps: Check the Hierarchy Structure: Navigate to the hierarchy in question and review its structure to confirm whether the node you are trying to add is already present. You can do this by using transaction codes like KSH1 (for cost center hierarchy) or KSH2 (for displaying cost center hierarchy). Remove Duplicate Entries: If you find that the node is indeed already part of the hierarchy, you
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
KU304 Hierarchy error: Number of fields (&) exceeds maximum (&)
What causes this issue?  You have entered a hierarchy whose number of levels (fields) exceeds the maximum permissible number. The maximum number of le...
KU303 Hierarchy error: Total hierarchy length (&) exceeds max. length (&)
What causes this issue?  The total hierarchy length (controlling area + nodes) exceeds the maximum length. The maximum length was defined in Customizi...
KU306 Characteristic & has an invalid format
What causes this issue?  The characteristic's format is invalid. The characteristic cannot be included in the hierarchy as a summarization charac...
KU307 Characteristic & invalid because of value names
What causes this issue?  Value names exist for the allowed values of characteristic &v1&. It is not possible to use such characteristics in a ...
Click on this link to search all SAP messages.