&1 is calculated in view &2 and should not be used in conditions
Message type: E = Error
Message class: DD_CDS_ANALYSIS - CDS code inspector messages
Message number: 301
Message text: &1 is calculated in view &2 and should not be used in conditions
Self-Explanatory Message
SAP has defined this message as ‘self-explanatory’ and therefore, has not provided any further details for it.
All messages in SAP have a message text (shown above). However, the message text is not always useful enough to understand or resolve the issue.
Therefore, most messages in the SAP system provide additional long text with details about what caused the issue, how it can be resolved, what actions to take or configuration changes to make, etc
Unfortunately, this specific error message does not provide such additional information.
What else can you do?
Even though this error message does not provide any useful or additional message details, you can still try to solve the issue by searching on SAP’s support portal. In many cases, there could be an SAP support note that provides further error explanations or even directions for resolving the error.
Related Error Messages
DD_CDS_ANALYSIS300 Key Definitions of &1 and &2 are different, &3 is missing in key of &1
DD_CDS_ANALYSIS252 $$projection cannot be used as an alias
DD_CDS_ANALYSIS302 Cardinality &2 of Association &1 does not match to the ON-condition
DD_CDS_ANALYSIS303 Cardinality &2 of Association &1 does not match to the ON-condition