Do you have any question about this error?
Message type: E = Error
Message class: SD_CDS_ENTITY - Messages for STOBS/entities
Message number: 106
Message text: Annotation &1 should only be used once within a select list.
The following annotations should be used only once within the select or
element list of CDS objects:
@Semantics.currencyCode
@Semantics.unitOfMeasure
Elements having these annotations assigned are used as default
references for calculated elements of data type CURR/QUAN. In case of
multiple assignments it is not defined which of the elements is used as
reference.
In order to avoid this warning it is also possible to assign the
following annotations to all CURR-/QUAN-typed elements:
@Semantics.amount.currencyCode
@Semantics.quantity.unitOfMeasure
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Error message extract from SAP system. Copyright SAP SE.
SD_CDS_ENTITY106
- Annotation &1 should only be used once within a select list. ?The SAP error message SD_CDS_ENTITY106 indicates that there is an issue with the way annotations are being used in a Core Data Services (CDS) view. Specifically, the error message states that a particular annotation (denoted by
&1
) is being used more than once in the select list of the CDS view, which is not allowed.Cause:
The error occurs when:
To resolve this error, you should:
If your CDS view looks something like this:
define view Z_MY_CDS_VIEW
as select from my_table
{
key field1,
field2 @Annotation1: 'value1',
field3 @Annotation1: 'value2' // This will cause the error
}
You would need to change it to:
define view Z_MY_CDS_VIEW
as select from my_table
{
key field1,
field2 @Annotation1: 'value1',
field3 @Annotation2: 'value2' // Use a different annotation
}
By following these steps, you should be able to resolve the SD_CDS_ENTITY106 error and ensure that your CDS view is correctly defined.
Get instant SAP help. Start your 7-day free trial now.
SD_CDS_ENTITY105
Annotation &1&2&3&4 is not allowed in view entities.
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SD_CDS_ENTITY104
Error in WHERE clause of &1
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SD_CDS_ENTITY107
Feature '&1' not yet supported.
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SD_CDS_ENTITY108
Error in HAVING clause of &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.