Do you have any question about this error?
Message type: E = Error
Message class: SADL_GW_DT_CDS - Messages CDS Checks
Message number: 036
Message text: The draft table &1 exists for this CDS view and must not be renamed.
A draft table still exists for the CDS view.
It is not allowed to exchange or rename the draft table.
Use the previous name <(>&<)>1 for the draft table.
Contact the corresponding developer of the CDS view to correct the
error.
Error message extract from SAP system. Copyright SAP SE.
SADL_GW_DT_CDS036
- The draft table &1 exists for this CDS view and must not be renamed. ?The SAP error message SADL_GW_DT_CDS036 indicates that there is a draft table associated with a Core Data Services (CDS) view, and this draft table cannot be renamed. This error typically arises when you attempt to rename a CDS view that has an associated draft table, which is used for managing draft data in applications that support the draft functionality.
Cause:
The primary cause of this error is that the CDS view you are trying to rename has an existing draft table. In SAP, draft tables are used to store temporary data for applications that allow users to create or edit data without immediately saving it to the database. When a CDS view is created with draft capabilities, a corresponding draft table is automatically generated. Renaming the CDS view without addressing the draft table leads to this error.
Solution:
To resolve this error, you can follow these steps:
Check Draft Table: Identify the draft table associated with the CDS view. You can do this by checking the definition of the CDS view in the ABAP Development Tools (ADT) or in the SAP GUI.
Remove Draft Capability: If you do not need the draft functionality for the CDS view, you can remove the draft capability from the CDS view definition. This can be done by modifying the CDS view and removing the annotations related to draft handling.
Rename the Draft Table: If you need to rename the CDS view and keep the draft functionality, you may need to rename the draft table first. This can be complex and may require additional steps to ensure that all references to the draft table are updated accordingly.
Create a New CDS View: If renaming is not feasible, consider creating a new CDS view with the desired name and copying the logic from the existing view. Ensure that you also handle the draft table appropriately.
Consult Documentation: Refer to the SAP documentation for more details on managing draft tables and CDS views. This can provide insights into best practices and potential impacts of changes.
Related Information:
@ObjectModel.draftEnabled
).By following these steps, you should be able to resolve the error and manage your CDS views and draft tables effectively.
Get instant SAP help. Start your 7-day free trial now.
SADL_GW_DT_CDS035
Annotation '&1: &2' must not be used here.
What causes this issue? The annotation <(>&<)>1 with the value <(>&<)>2 is used in a non-analytical CDS view, which i...
SADL_GW_DT_CDS034
Element &1 cannot be used in annotation &2 because of annotation &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_CDS037
Syntax of CDS view &1 is not supported. Correct the syntax.
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_CDS038
Key fields must be identical to key fields in transactional CDS view.
What causes this issue? The key fields in the consumption CDS view must be identical to the key fields in the transactional CDS view. All key fields ...
Click on this link to search all SAP messages.