Message type: E = Error
Message class: /EACC/DM_QUERY -
Message number: 021
Message text: Exception aggregation: Non-permitted selection condition for ref. fld &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
/EACC/DM_QUERY021 Exception aggregation: Non-permitted selection condition for ref. fld &1
typically occurs in the context of SAP Analytics Cloud (SAC) or SAP BW (Business Warehouse) when working with exception aggregation in queries. This error indicates that there is a problem with the selection conditions applied to a reference field in the context of exception aggregation.Cause:
Invalid Selection Condition: The error is triggered when a selection condition is applied to a reference field that is not allowed in the context of exception aggregation. This can happen if the reference field is not part of the aggregation logic or if the selection condition contradicts the aggregation rules.
Aggregation Logic: The aggregation logic defined in the query may not support the selection condition applied to the reference field. For example, if the reference field is meant to be aggregated in a certain way, applying a filter that contradicts this logic can lead to this error.
Field Characteristics: The characteristics of the reference field may not be compatible with the exception aggregation settings. This can include issues related to data types, hierarchies, or other field properties.
Solution:
Review Selection Conditions: Check the selection conditions applied to the reference field in your query. Ensure that they are valid and do not contradict the aggregation logic.
Adjust Aggregation Logic: If necessary, modify the aggregation logic in your query to accommodate the selection conditions. This may involve changing how the reference field is aggregated or removing conflicting conditions.
Field Configuration: Verify the configuration of the reference field in the data model. Ensure that it is set up correctly for use with exception aggregation and that its properties align with the intended use in the query.
Consult Documentation: Refer to SAP documentation or help resources for guidance on exception aggregation and the specific requirements for reference fields. This can provide insights into best practices and common pitfalls.
Testing: After making adjustments, test the query again to see if the error persists. It may be helpful to simplify the query to isolate the issue.
Related Information:
By following these steps, you should be able to identify the cause of the error and implement a solution to resolve it.
/EACC/DM_QUERY020 No provider for actual data by current structure for view &1 / &2
Self-Explanatory Message Since SAP believes that this specific error message is ...
/EACC/DM_QUERY019 No provider for actual data as posted for view &1 / &2
Self-Explanatory Message Since SAP believes that this specific error message is ...
/EACC/DR000 Fatal error
Self-Explanatory Message Since SAP believes that this specific error message is ...
/EACC/DR001 Handle &1 is not assigned to a derivation step
Self-Explanatory Message Since SAP believes that this specific error message is ...
SAP messages fall into 3 different categories: Error messages
(message type = E), Warnings (W) or Informational (I) messages.
An error message will prevent you from continuing your work - it is a hard stop and you need to fix the error before you can proceed. A warning message will stop your work, however, you can then bypass the warning by pressing the Enter key on your keyboard. That said, it is still good practice to investigate the cause of the warning message and address it. An information message will not stop your work and is truly just for informational purposes.
Click on this link to search all SAP messages.