How To Fix ESH_ENG_CDSVAL_ES020 - 'presentationMode' HIDDEN cannot be combined with others (&1)


SAP Error Message - Details

  • Message type: E = Error

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

  • Message number: 020

  • Message text: 'presentationMode' HIDDEN cannot be combined with others (&1)

  • Show details Hide details
  • What causes this issue?

    While the other presentation modes - like #TITLE, #SUMMARY - can be used
    at the same time, presentation mode #HIDDEN is mutually exclusive with
    all other presentation modes. Its meaning is to push the attribute to
    the client, but to hide it from being displayed at the UI.

    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 attribute to be displayed, remove presentation mode
    #HIDDEN.
    If you want the attribute not to be displayed, remove the other
    presentation modes annotated at the respective element.

    Procedure for System Administrators


    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_ES020 - 'presentationMode' HIDDEN cannot be combined with others (&1) ?

    The SAP error message ESH_ENG_CDSVAL_ES020 typically occurs in the context of SAP's Enterprise Search or when working with Core Data Services (CDS) views. This error indicates that there is a conflict in the presentation mode settings of the CDS view, specifically that the HIDDEN presentation mode cannot be combined with other modes.

    Cause:

    The error arises when you attempt to define a field in a CDS view with the HIDDEN presentation mode while also trying to use other presentation modes (like DEFAULT, FILTER, etc.) for the same field or in the same context. The HIDDEN mode is intended to make a field invisible in the user interface, and it cannot coexist with other modes that imply visibility or interaction.

    Solution:

    To resolve this error, you should review the definition of your CDS view and the presentation modes assigned to the fields. Here are steps you can take:

    1. Check Field Definitions: Look at the fields in your CDS view and identify which ones are set to HIDDEN. Ensure that no other presentation modes are being applied to the same fields.

    2. Modify Presentation Modes: If you need a field to be HIDDEN, ensure that it is not combined with other presentation modes. If you need the field to be visible or interactive, consider removing the HIDDEN mode.

    3. Review Annotations: If you are using annotations to define presentation modes, ensure that they are correctly specified and do not conflict with each other.

    4. Test Changes: After making the necessary adjustments, activate the CDS view and test it to ensure that the error is resolved.

    Related Information:

    • CDS Views: Core Data Services (CDS) are a way to define semantically rich data models in SAP. They allow for the definition of data models that can be consumed by various applications.
    • Presentation Modes: In CDS views, presentation modes control how fields are displayed in the user interface. Common modes include DEFAULT, FILTER, HIDDEN, etc.
    • SAP Documentation: For more detailed information, refer to the official SAP documentation on CDS views and their annotations, which provides guidelines on how to properly define presentation modes.

    If you continue to experience issues after following these steps, consider reaching out to your SAP support team or consulting the SAP Community for further assistance.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


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 simplifies finding the accurate answers to SAP message errors. I now use every week. A must have tool for anyone working with SAP! Highly recommended!
Rate 1
Kent Bettisworth
Executive SAP Consultant