How To Fix CFD_REGISTRY_CHECK159 - CDS View is used as Redirect View and must be set to invisible


SAP Error Message - Details

  • Message type: E = Error

  • Message class: CFD_REGISTRY_CHECK - Custom Fields: Messages for Registry Check

  • Message number: 159

  • Message text: CDS View is used as Redirect View and must be set to invisible

  • Show details Hide details


  • Self-Explanatory Message

    Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.

    To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.

    Unfortunately, there isn't any extra information in this error notice.



    What else can you do?

    First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).

    Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.

    You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.


Smart SAP Assistant

  • What is the cause and solution for SAP error message CFD_REGISTRY_CHECK159 - CDS View is used as Redirect View and must be set to invisible ?

    The SAP error message "CFD_REGISTRY_CHECK159: CDS View is used as Redirect View and must be set to invisible" typically occurs in the context of Core Data Services (CDS) views in SAP, particularly when dealing with Fiori applications or SAP Gateway services. This error indicates that a CDS view is being used as a redirect view, but it has not been configured to be invisible, which is a requirement for redirect views.

    Cause:

    1. Redirect View Configuration: The CDS view is intended to act as a redirect view, which means it should not be directly visible to the end-users. Instead, it should redirect to another view or service.
    2. Visibility Setting: The visibility of the CDS view is not set to "invisible." This is typically done in the CDS view definition using the @AbapCatalog.sqlViewAppendName annotation or similar annotations.

    Solution:

    To resolve this error, you need to modify the CDS view definition to set its visibility to invisible. Here’s how you can do that:

    1. Open the CDS View: Access the CDS view in the ABAP Development Tools (ADT) or the relevant development environment.

    2. Modify the Annotations: Add or modify the annotation to set the view as invisible. You can do this by adding the following annotation to your CDS view definition:

      @AbapCatalog.sqlViewName: 'YOUR_SQL_VIEW_NAME'
      @AbapCatalog.compiler.compareFilter: true
      @AccessControl.authorizationCheck: #CHECK
      @EndUserText.label: 'Your CDS View Description'
      @OData.publish: true
      @UI: { lineItem: [ ... ] }
      @UI: { selectionField: [ ... ] }
      @Analytics.dataCategory: #CUBE
      @ObjectModel: { 
          useCreate: true, 
          useUpdate: true, 
          useDelete: true 
      }
      @ObjectModel.usage: #INVISIBLE
      define view Your_CDS_View as select from ...

      Make sure to replace Your_CDS_View and other placeholders with your actual view name and relevant details.

    3. Activate the CDS View: After making the changes, activate the CDS view to apply the new settings.

    4. Test the Changes: After activation, test the application or service that was previously throwing the error to ensure that the issue is resolved.

    Related Information:

    • CDS Views: Core Data Services (CDS) is a framework for defining semantically rich data models in SAP. CDS views can be used to create complex queries and are often used in Fiori applications.
    • Redirect Views: These are special types of views that do not directly expose data but instead redirect to other views or services. They are often used to manage access and visibility in applications.
    • SAP Documentation: For more detailed information, refer to the official SAP documentation on CDS views and annotations, which provides comprehensive guidelines on how to define and manage CDS views effectively.

    By following these steps, you should be able to resolve the CFD_REGISTRY_CHECK159 error and ensure that your CDS view is correctly configured as a redirect view.

    • 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'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