Message type: E = Error
Message class: ESH_ENG_CDSVAL_ES - ES-CDS/ABAP: Validation of domain @EnterpriseSearch
Message number: 022
Message text: 'usageMode' should be annotated at some element
@Saerch.defaultSearchElement defines that an element participates in the
free-style search. @EnterpriseSearch.usageMode offers additional way to
use an element in search. In order to provide an appropriate end user
experience, it is strongly recommended to define such annotations where
applicable.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Define @EnterpriseSearch.usageMode with its values #ADVANCED_SEARCH,
'#AUTO_FACET, and #SUGGESTION where applicable. Especially the latter
value should be used with care for performance reasons.
Error message extract from SAP system. Copyright SAP SE.
ESH_ENG_CDSVAL_ES022
- 'usageMode' should be annotated at some element ?The SAP error message ESH_ENG_CDSVAL_ES022 indicates that there is a missing annotation for the usageMode in a Core Data Services (CDS) view. This error typically arises when defining a CDS view that is intended to be used in a specific context, such as for analytical purposes or for use in a specific application.
Cause: The error occurs because the CDS view is expected to have a usageMode annotation that specifies how the data should be used. The usageMode annotation helps the SAP system understand the intended use of the data, which can affect performance, data handling, and how the data is exposed to consumers.
Solution: To resolve this error, you need to add the usageMode annotation to the relevant elements in your CDS view. Here’s how you can do that: Open the CDS View Definition: Locate the CDS view where the error is occurring. Add the usageMode Annotation: You can add the annotation directly in the
Get instant SAP help. Sign up for our Free Essentials Plan.
ESH_ENG_CDSVAL_ES021
'@EnterpriseSearch' requires '@Search'
What causes this issue? @EnterpriseSearch is an extension to domain @Search; all the annotations defined there are relevant for Enterprise Search. Cu...
ESH_ENG_CDSVAL_ES020
'presentationMode' HIDDEN cannot be combined with others (&1)
What causes this issue? While the other presentation modes - like #TITLE, #SUMMARY - can be used at the same time, presentation mode #HIDDEN is mutua...
ESH_ENG_CDSVAL_ES023
'fieldGroupForSearchQuery' needs tag 'name'
What causes this issue? @EnterpriseSearch.fieldGroupForSearchQuery defines a named group; therefore it is mandatory to indicate the ID of the group.S...
ESH_ENG_CDSVAL_ES024
View is not activated for Enterprise Search
What causes this issue? Because of missing or erroneous annotations, the view in its current state is not usable in Enterprise Search. No search conn...
Click on this link to search all SAP messages.