CAST expression cannot be used as a parameter of aggregate functions
Message type: E = Error
Message class: SDDL_PARSER_MSG - Message Class for DDL Parser
Message number: 376
Message text: CAST expression cannot be used as a parameter of aggregate functions
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
SDDL_PARSER_MSG375 Expressions cannot be used as parameters of aggregate functions
SDDL_PARSER_MSG374 Client field does not need to be specified in client-specific CDS view
SDDL_PARSER_MSG377 Function expression "&1" cannot be used as aggregate function parameters
SDDL_PARSER_MSG378 Client field in association ON condition (filter or default filter)