How To Fix SADL_GW_DT_CDS072 - CDS view &1 with annotation &2 must not be draft enabled.


SAP Error Message - Details

  • Message type: E = Error

  • Message class: SADL_GW_DT_CDS - Messages CDS Checks

  • Message number: 072

  • Message text: CDS view &1 with annotation &2 must not be draft enabled.

  • 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 SADL_GW_DT_CDS072 - CDS view &1 with annotation &2 must not be draft enabled. ?

    The SAP error message SADL_GW_DT_CDS072 indicates that a Core Data Services (CDS) view is draft-enabled, which is not allowed for certain annotations or scenarios. This error typically arises when you are trying to use a CDS view that has been marked as draft-enabled in a context where draft functionality is not supported or required.

    Cause:

    1. Draft-Enabled CDS View: The CDS view in question has been defined with draft capabilities, which means it is intended to support draft scenarios (like saving partially completed data).
    2. Incompatibility with Annotations: The specific annotation (indicated by &2 in the error message) may not be compatible with draft-enabled views. Certain annotations are designed for use with standard views and do not support draft functionality.

    Solution:

    1. Check the Annotations: Review the annotations used in the CDS view. If the annotation is not compatible with draft-enabled views, consider removing or replacing it with a compatible one.
    2. Disable Draft Functionality: If the draft functionality is not required for your use case, you can modify the CDS view definition to remove the draft-enabled annotation. This can be done by:
      • Removing the @UI.draftEnabled: true annotation from the CDS view definition.
      • Ensuring that the view is not intended for draft scenarios.
    3. Consult Documentation: Refer to the SAP documentation for the specific annotations you are using to understand their compatibility with draft-enabled views.

    Related Information:

    • CDS Views: Core Data Services (CDS) are a framework for defining semantically rich data models in SAP. They allow for the creation of views that can be consumed by various applications.
    • Draft Handling: Draft handling in SAP is a feature that allows users to create and edit data without immediately saving it to the database. It is commonly used in Fiori applications.
    • Annotations: Annotations in CDS views provide metadata that can influence the behavior of the view in applications, such as UI behavior, data binding, and more.

    Example:

    If your CDS view is defined as follows:

    @AbapCatalog.sqlViewName: 'Z_MY_CDS_VIEW'
    @AccessControl.authorizationCheck: #CHECK
    @UI.draftEnabled: true
    define view Z_MY_CDS_VIEW as select from my_table
    {
        key field1,
        field2
    }

    You may need to change it to:

    @AbapCatalog.sqlViewName: 'Z_MY_CDS_VIEW'
    @AccessControl.authorizationCheck: #CHECK
    define view Z_MY_CDS_VIEW as select from my_table
    {
        key field1,
        field2
    }

    By removing the @UI.draftEnabled: true annotation, you can resolve the error if draft functionality is not needed.

    Conclusion:

    To resolve the SADL_GW_DT_CDS072 error, you need to ensure that the annotations used in your CDS view are compatible with draft functionality or remove the draft capability if it is not necessary for your application. Always refer to the latest SAP documentation for guidance on annotations and their compatibility.

    • 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