Message type: E = Error
Message class:  RSO_RES_QMSGS - Messages directly related to Query Designer. 
Message number: 254
Message text: Query cannot be used in formula mode. Check definition. &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_QMSGS254 indicates that a query cannot be used in formula mode due to issues with its definition. This typically occurs in the context of SAP BW (Business Warehouse) or SAP BI (Business Intelligence) when working with queries in BEx (Business Explorer) Analyzer or similar tools.
Cause: Query Definition Issues: The query may not be properly defined for use in formula mode. This can happen if: The query contains certain characteristics or key figures that are not compatible with formula mode. The query is based on a data source that does not support the required calculations. There are restrictions on the use of certain fields or aggregations in the query. Query Type: The query might be of a type that does not support formula calculations, such as a query that is based on a multi-provider or a query that uses certain types of variables. Technical Settings: The technical settings of the query might not
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
RSO_RES_QMSGS253 Query cannot be used in formula mode due to existing local formulas. &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_QMSGS252 Query cannot be used in formula mode due to multiple structures. &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_QMSGS255 Query cannot be used in formula mode due to existing cells. &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_QMSGS256 Query cannot be used in formula mode due to key figures missing. &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.