Message type: E = Error
Message class:  RSO_RES_QMSGS - Messages directly related to Query Designer. 
Message number: 253
Message text: Query cannot be used in formula mode due to existing local formulas. &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_QMSGS253 indicates that a query cannot be used in formula mode because there are existing local formulas defined in the query. This typically occurs in SAP BW (Business Warehouse) when you are trying to use a query that has local formulas, which are not compatible with the formula mode you are attempting to use.
Cause: The primary cause of this error is the presence of local formulas in the query. Local formulas are calculations or derived values that are defined within the query itself, and they can conflict with the use of formula mode, which is intended for more complex calculations or aggregations.
Solution: To resolve this error, you can take the following steps: Check for Local Formulas: Open the query in the Query Designer. Look for any local formulas that have been defined in the query. These are typically found in the "Calculated Key Figures" or "Restricted Key Figures" sections. Remove or Modify
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
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_QMSGS251 Query cannot be used in formula mode due to existing exceptions. &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_QMSGS254 Query cannot be used in formula mode. Check definition. &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...
Click on this link to search all SAP messages.