Do you have any question about this error?
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.
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.
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.
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:
- 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).
- 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:
- 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.
- 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.
- Consult Documentation: Refer to the SAP documentation for the specific annotations you are using to understand their compatibility with draft-enabled views.
Related Information:
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.
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.
Get instant SAP help. Start your 7-day free trial now.
SADL_GW_DT_CDS071
Association &1 is not draft-enabled in transactional view &2.
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SADL_GW_DT_CDS070
The root of a composition cannot be of type '&'.
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SADL_GW_DT_CDS073
Annotation &1 requires annotation &2 or &3.
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SADL_GW_DT_CDS074
At least one element of annotation &1 or &2 must be a key element.
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.