Message type: E = Error
Message class:  RSO_RES_QMSGS - Messages directly related to Query Designer. 
Message number: 126
Message text: Hierarchy not supported for target object. &1
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 RSO_RES_QMSGS126 indicates that a hierarchy is not supported for the target object specified in the error message. This typically occurs in the context of SAP BW (Business Warehouse) when working with queries, InfoObjects, or data models that involve hierarchies.
Cause: Hierarchy Not Defined: The target object (e.g., InfoObject, query) does not have a hierarchy defined or the hierarchy is not activated. Incompatible Hierarchy: The hierarchy being used is not compatible with the target object. For example, if the target object is a characteristic that does not support hierarchies. Incorrect Query Design: The query might be designed in a way that it expects a hierarchy, but the underlying data model does not support it. Transport Issues: If the object was transported from one system to another, the hierarchy might not have been transported correctly.
Solution: Check Hierarchy Definition: Ensure that the hierarchy is defined and activated for the target InfoObject. You can do this
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
RSO_RES_QMSGS125 Mapping definition is incomplete.
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
RSO_RES_QMSGS124 Could not find a suitable target object for &1.
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
RSO_RES_QMSGS127 Hierarchy cannot be used for assigned target object. &1
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
RSO_RES_QMSGS128 Attribute cannot be used for assigned target object. &1
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.