How To Fix ESH_ENG_CDSVAL_ES012 - @EnterpriseSearch-annotations require 'enabled' for the view


ESH_ENG_CDSVAL_ES012 - Overview

  • Message type: E = Error

  • Message class: ESH_ENG_CDSVAL_ES - ES-CDS/ABAP: Validation of domain @EnterpriseSearch

  • Message number: 012

  • Message text: @EnterpriseSearch-annotations require 'enabled' for the view

  • Show details Hide details
  • What causes this issue?

    There is some annotation of domain @EnterpriseSearch, but the view
    itself does not carry the annotation @EnterpriseSearch.enabled.

    System Response

    The system ignores all element-level annotations of @EnterpriseSearch;
    they are not even validated. No Enterprise Search connector is activated
    from this view.

    How to fix this error?

    If you want the view to be consumable by Enterprise Search, then add
    annotation @EnterpriseSearch.enabled on the view-level.
    If you do not want the view to be consumable by Enterprise Search, then
    remove all annotations of domain @EnterpriseSearch or annotate the view
    explicitly with @EnterpriseSearch.enabled: false.

    Procedure for System Administrators

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


    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message ESH_ENG_CDSVAL_ES012 - @EnterpriseSearch-annotations require 'enabled' for the view ?
    The SAP error message ESH_ENG_CDSVAL_ES012 indicates that the Enterprise Search annotations are not enabled for a specific Core Data Service (CDS) view. This error typically arises when you are trying to use a CDS view in the context of Enterprise Search, but the necessary annotations that allow the view to be searchable are not properly configured.
    
    Cause: The error occurs because the CDS view lacks the required annotations that enable it for Enterprise Search. Specifically, the annotation @Search.searchable or similar annotations that indicate the view is intended for search purposes are missing or not set to 'enabled'.
    Solution: To resolve this error, you need to ensure that the CDS view is properly annotated for Enterprise Search. Here are the steps to do this: Open the CDS View: Use the ABAP Development Tools (ADT) in Eclipse or the SAP GUI to access the CDS view that is causing the error. Add Annotations: Ensure that the following annotations

    Already have an account? Login here!




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


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
ERPlingo's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker