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: 058
Message text: 'hidden' must be annotated at view level
@EnterpriseSearch.hidden 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_ES058
- 'hidden' must be annotated at view level ?The SAP error message ESH_ENG_CDSVAL_ES058 indicates that a field in a Core Data Services (CDS) view is marked as 'hidden', but this annotation is not properly defined at the view level. This error typically arises when you are trying to use a field that is intended to be hidden in a way that requires it to be explicitly annotated.
Cause:
The error occurs when:
- A field in the CDS view is marked as 'hidden' but lacks the necessary annotation at the view level.
- The CDS view is being used in a context (like a query or an OData service) where the hidden field is expected to be defined.
Solution:
To resolve this error, you need to ensure that the 'hidden' annotation is correctly defined at the view level. Here are the steps to do that:
Open the CDS View: Access the CDS view in the ABAP Development Tools (ADT) or the relevant development environment.
Add the Annotation: Ensure that the field you want to hide is annotated correctly. You can do this by adding the following annotation to the field in the CDS view definition:
@AbapCatalog.sqlViewName: 'Your_SQL_View_Name' @AbapCatalog.compiler.compareFilter: true @AccessControl.authorizationCheck: #CHECK @EndUserText.label: 'Your View Description' define view Your_CDS_View_Name as select from Your_Table { key field1, field2, @AbapCatalog.hidden: true field3 }
Check for Other Annotations: Ensure that there are no conflicting annotations that might affect the visibility of the field.
Activate the CDS View: After making the changes, activate the CDS view to apply the new annotations.
Test the Changes: Run the query or the OData service again to verify that the error has been resolved.
Related Information:
By following these steps, you should be able to resolve the ESH_ENG_CDSVAL_ES058 error and ensure that your CDS view is correctly configured.
Get instant SAP help. Start your 7-day free trial now.
ESH_ENG_CDSVAL_ES057
'hidden': no ES-Connector will be generated!
What causes this issue? @EnterpriseSearch.hidden means that the data source must be hidden from the generic search UI of Enterprise Search but still ...
ESH_ENG_CDSVAL_ES056
'configurationSet' &1 does not exist (&2)
What causes this issue? Enterprise Search Configuration Set &V1& which is to be assigned to the element via @EnterpriseSearch.configurationSe...
ESH_ENG_CDSVAL_ES059
Test search error: &1
What causes this issue? To finally validate whether the view can be processed by the Enterprise Search-API, some test searches are carried out on the...
ESH_ENG_CDSVAL_ES060
View is deprecated: no ES-Connector will be generated!
What causes this issue? The view has been set as deprecated.System Response While the view still can be used as a Transient Connector, i.e. the sear...
Click on this link to search all SAP messages.