Message type: E = Error
Message class:  KU - Costing: Rollup 
Message number: 336
Message text: Hierarchy error: Value for characteristic is too long
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.
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.
The SAP error message KU336, which states "Hierarchy error: Value for characteristic is too long," typically occurs in the context of SAP's CO (Controlling) module, particularly when dealing with characteristics in a hierarchy structure. This error indicates that the value being assigned to a characteristic exceeds the maximum length allowed for that characteristic in the hierarchy.
Cause: Exceeding Characteristic Length: Each characteristic in SAP has a defined maximum length. If the value you are trying to assign to a characteristic exceeds this length, the system will throw this error. Incorrect Data Entry: Sometimes, the error can occur due to incorrect data entry or formatting issues, such as leading or trailing spaces. Hierarchy Configuration: The hierarchy itself may be configured incorrectly, leading to issues when trying to assign values.
Solution: Check Characteristic Length: Verify the maximum length defined for the characteristic in the hierarchy. You can do this by checking the configuration settings in the SAP system. Navigate
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
KU335 Hierarchy error: Term for portion must be blank
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
KU334 Name of selection routine & structured incorrectly
What causes this issue?  A system error occurred.How to fix this error?  Please inform your system administrator or contact the SAP hotline with detai...
KU337 Highest node in the hierarchy reached
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
KU338 Last node in the hierarchy reached
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.