Do you have any question about this error?
Message type: E = Error
Message class: ESH_ENG_CDSVAL_ES - ES-CDS/ABAP: Validation of domain @EnterpriseSearch
Message number: 001
Message text: 'enabled' must be annotated at a view
@EnterpriseSearch.enabled can be annotated at view level only.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Remove the annotation except for the view level.
Error message extract from SAP system. Copyright SAP SE.
ESH_ENG_CDSVAL_ES001
- 'enabled' must be annotated at a view ?The SAP error message ESH_ENG_CDSVAL_ES001 indicates that a certain view in your Core Data Services (CDS) definition is missing the required annotation for the
enabled
property. This error typically arises when you are working with CDS views in the context of SAP's Enterprise Search or other applications that rely on CDS views for data retrieval.Cause:
The error occurs because the CDS view you are trying to use does not have the
@Search.enabled
annotation defined. This annotation is necessary to indicate that the view is intended to be used in search scenarios, and it must be explicitly set totrue
to enable the view for search functionalities.Solution:
To resolve this error, you need to add the
@Search.enabled
annotation to your CDS view definition. Here’s how you can do it:
Open the CDS View: Locate the CDS view in your ABAP Development Tools (ADT) or in the relevant development environment.
Add the Annotation: At the top of your CDS view definition, add the following line:
@Search.enabled: true
Example: Here’s a simple example of how your CDS view might look after adding the annotation:
@AbapCatalog.sqlViewName: 'Z_MY_CDS_VIEW' @Search.enabled: true define view Z_MY_CDS_VIEW as select from my_table { key field1, field2, field3 }
Activate the CDS View: After making the changes, activate the CDS view to ensure that the annotation is recognized by the system.
Test the View: Once activated, test the view again in the context where you encountered the error to confirm that the issue is resolved.
Related Information:
By following these steps, you should be able to resolve the ESH_ENG_CDSVAL_ES001 error and successfully enable your CDS view for search functionalities.
Get instant SAP help. Start your 7-day free trial now.
ESH_ENG_CDSVAL_ES000
CDS-Domain @EnterpriseSearch
What causes this issue? CDS: Checks on annotations of domain @EnterpriseSearchSystem Response Views annotated with this domain result in search conn...
ESH_ENG_CCMS006
&1&2&3&4
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
ESH_ENG_CDSVAL_ES002
Parameter &1: No fitting @Environment.systemField-annotation
What causes this issue? It does not make sense to use view parameters in general with search views; they are used in a generic application which cann...
ESH_ENG_CDSVAL_ES003
Annotation &1 is obsolete; use &2
What causes this issue? Meanwhile, the semantics formerly expressed by annotation &V1& of domain @EnterpriseSearch is available in a general,...
Click on this link to search all SAP messages.