Message type: E = Error
Message class: ESH_ENG_CDSVAL_ES - ES-CDS/ABAP: Validation of domain @EnterpriseSearch
Message number: 006
Message text: '@ObjectModel.semanticKey' must be annotated at view
The usually highly denormalized search-views need a key definition that
reduces the cartesian product defined by the view as such to the entity
that is actually to be found. For this purpose, annotation
@ObjectModel.semanticKey (to be annotated at the view-level) is used.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Define the actual entity key by annotation @ObjectModel.semanticKey.
Error message extract from SAP system. Copyright SAP SE.
ESH_ENG_CDSVAL_ES006
- '@ObjectModel.semanticKey' must be annotated at view ?The SAP error message ESH_ENG_CDSVAL_ES006 '@ObjectModel.semanticKey' must be annotated at view typically occurs in the context of Core Data Services (CDS) views in SAP. This error indicates that the CDS view you are working with is missing a required annotation that defines the semantic key for the view.
Cause: The error arises because the CDS view is expected to have a semantic key defined using the @ObjectModel.semanticKey annotation. This annotation is crucial for identifying the key fields of the CDS view, which are used for various purposes, including data retrieval and integration with other SAP components.
Solution: To resolve this error, you need to add the @ObjectModel.semanticKey annotation to your CDS view. Here’s how you can do that: Open the CDS View: Access the CDS view in the ABAP Development Tools (ADT) or the relevant development environment. Identify Key Fields: Determine which fields in your CDS view should be considered as the semantic key. These are
Get instant SAP help. Sign up for our Free Essentials Plan.
ESH_ENG_CDSVAL_ES005
'key' must be annotated at an element
What causes this issue? @EnterpriseSearch.key can be annotated at a view element only.System Response The system issues an error message and will no...
ESH_ENG_CDSVAL_ES004
'expand' must be annotated at an association
What causes this issue? @EnterpriseSearch.expand can be annotated at an association only.System Response The system issues an error message and will...
ESH_ENG_CDSVAL_ES007
'usageMode' must be annotated at an element
What causes this issue? @EnterpriseSearch.usageMode can be annotated at a view element only.System Response The system issues an error message and w...
ESH_ENG_CDSVAL_ES008
'presentationMode' must be annotated at an element
What causes this issue? @EnterpriseSearch.presentationMode can be annotated at a view element only.System Response The system issues an error messag...
Click on this link to search all SAP messages.