Black Friday is ending this Friday! 40% off with coupon CYBER40 - Sign up here

Close

How To Fix ESH_ENG_CDSVAL_SRCH005 - 'searchable' must be annotated at views


ESH_ENG_CDSVAL_SRCH005 - Overview

  • 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

  • Show details Hide details
  • 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.


ESH_ENG_CDSVAL_SRCH005 - Details

  • The SAP error message ESH_ENG_CDSVAL_SRCH005 indicates that a certain field in a Core Data Services (CDS) view is expected to be annotated as 'searchable' but is not. This error typically arises when you are trying to use a CDS view in a search context, such as in SAP Fiori applications or when integrating with SAP Enterprise Search, and the system requires specific annotations to enable search functionality.
    
    Cause: The error occurs because: The CDS view is being used in a context where search capabilities are required. One or more fields that are expected to be searchable do not have the appropriate annotation (@Search.searchable: true). The CDS view may not be properly defined to support search operations.
    Solution: To resolve this error, you need to ensure that the relevant fields in your CDS view are annotated correctly. Here are the steps to do this: Open the CDS View: Access the CDS view in the ABAP Development Tools (ADT) or

    Already have an account? Login here!




Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


ESH_ENG_CDSVAL_SRCH005 - Related SAP Errors

Click on this link to search all SAP messages.


Rating
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author