Do you have any question about this error?
Message type: E = Error
Message class: SADL_GW_DT_CDS - Messages CDS Checks
Message number: 010
Message text: Do not use annotation &1 on subnode.
The superfluous annotation is used in the CDS view of a subnode, but the
annotation can only be added to the CDS view of the root node. The
annotation in the CDS view of the root node affects the complete
composition.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
You can remove the annotation from the CDS view of the subnode.
Contact the corresponding developer of the CDS view to correct the
error.
Error message extract from SAP system. Copyright SAP SE.
SADL_GW_DT_CDS010
- Do not use annotation &1 on subnode. ?The SAP error message SADL_GW_DT_CDS010 typically occurs in the context of SAP Gateway and Core Data Services (CDS) when there is an issue with the annotations used in your CDS views, particularly when they are applied to subnodes.
Cause:
The error message indicates that there is an inappropriate use of an annotation on a subnode in your CDS view. Annotations are metadata that provide additional information about the data model, and certain annotations are not allowed on subnodes. This can happen if:
- You are trying to apply an annotation that is meant for the main entity to a subnode.
- There is a misconfiguration in the CDS view definition.
- The structure of the CDS view does not align with the expected model for the annotations being used.
Solution:
To resolve the error, you can follow these steps:
Review the Annotations: Check the annotations applied to the subnode in your CDS view. Ensure that you are not using annotations that are not allowed on subnodes. Refer to the SAP documentation for the specific annotations and their valid contexts.
Modify the CDS View: If you find that an annotation is incorrectly applied, you will need to remove or relocate it. Ensure that annotations meant for the main entity are only applied at the appropriate level.
Check the CDS View Structure: Ensure that the structure of your CDS view is correctly defined. If you have nested entities, make sure that the annotations are applied correctly according to the hierarchy.
Test the Changes: After making the necessary adjustments, activate the CDS view and test it to ensure that the error is resolved.
Consult Documentation: If you are unsure about which annotations are valid for your specific use case, consult the official SAP documentation or the SAP Community for guidance.
Related Information:
By following these steps, you should be able to identify the cause of the error and implement a solution to resolve it.
Get instant SAP help. Start your 7-day free trial now.
SADL_GW_DT_CDS009
&1: Annotation &2 is missing. Add the annotation to the CDS view.
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_CDS008
Do not use the virtual element &1 in the association definition.
What causes this issue? In the consumption CDS view, a virtual element is used in an association definition. This is not allowed.System Response The...
SADL_GW_DT_CDS011
Annotation '@ObjectModel.semanticKey' is required for UUID-based models.
What causes this issue? If you use a UUID-based model, a semantic key is required in the CDS view.System Response The system issues an error message...
SADL_GW_DT_CDS012
Semantic key element &1 is unknown or hidden.
What causes this issue? The element used in the semantic key annotation is invalid. Only elements that are exposed in the CDS view and that are not a...
Click on this link to search all SAP messages.