'searchable' must be annotated at views

Message type: E = Error

Message class: ESH_ENG_CDSVAL_SRCH - ES-CDS/ABAP: Validation of domain @Search

Message number: 005

Message text: 'searchable' must be annotated at views



What causes this issue?

@Search.searchable has to be annotated at the view itself.


System Response

The system issues an error message and will not allow you to continue with this transaction until the error is resolved.



How to fix this error?

If you want the view to be searchable, move the annotation to the
view-level.
If you do not want the view to be searchable, remove all
@Search-annotations.


Procedure for System Administrators


Error message extract from SAP system. Copyright SAP SE.