Do you have any question about this error?
Message type: E = Error
Message class: RSRTS_CDS - Messages Transient CDS Queries
Message number: 046
Message text: Calc. measure, pos. &2: Invalid default agg. &1 - only #FORMULA allowed
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.
RSRTS_CDS046
- Calc. measure, pos. &2: Invalid default agg. &1 - only #FORMULA allowed ?The SAP error message RSRTS_CDS046 typically occurs in the context of SAP BW (Business Warehouse) or SAP HANA when working with Calculation Views or Composite Providers. This error indicates that there is an issue with the aggregation type of a calculated measure in your data model.
Cause:
The error message "Calc. measure, pos. &2: Invalid default agg. &1 - only #FORMULA allowed" suggests that the default aggregation type specified for a calculated measure is not valid. Specifically, it indicates that the aggregation type must be set to
#FORMULA
, which means that the measure is expected to be calculated using a formula rather than a standard aggregation method (like SUM, AVG, etc.).Solution:
To resolve this error, you can follow these steps:
Check the Calculation View or Composite Provider:
- Open the Calculation View or Composite Provider where the error is occurring.
- Locate the calculated measure that is causing the issue.
Review the Aggregation Type:
- Ensure that the aggregation type for the calculated measure is set to
#FORMULA
.- If it is set to a different aggregation type (like SUM, COUNT, etc.), change it to
#FORMULA
.Define the Formula:
- If you have set the aggregation type to
#FORMULA
, ensure that you have defined a valid formula for the calculated measure.- The formula should be correctly defined to perform the necessary calculations.
Validate the Model:
- After making changes, validate the Calculation View or Composite Provider to ensure there are no other errors.
- Activate the model if necessary.
Test the Query:
- Run the query or report that uses the Calculation View or Composite Provider to ensure that the error has been resolved.
Related Information:
By following these steps, you should be able to resolve the RSRTS_CDS046 error and ensure that your calculated measures are correctly configured.
Get instant SAP help. Start your 7-day free trial now.
RSRTS_CDS045
Restricted measure, pos. &2: Invalid default agg. &1 - only &3 allowed
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
RSRTS_CDS044
CDS Feature &1 not supported for BW Query (at &2)
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
RSRTS_CDS047
Default aggregation not supported (at position &1)
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
RSRTS_CDS048
Error while opening CDS-based query &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.