How To Fix SADL_GW_DT_CDS035 - Annotation '&1: &2' must not be used here.


SAP Error Message - Details

  • Message type: E = Error

  • Message class: SADL_GW_DT_CDS - Messages CDS Checks

  • Message number: 035

  • Message text: Annotation '&1: &2' must not be used here.

  • Show details Hide details
  • What causes this issue?

    The annotation <(>&<)>1 with the value <(>&<)>2 is used in a
    non-analytical CDS view, which is not supported.

    System Response

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.

    How to fix this error?

    Either remove the annotation or use a valid annotation value.

    Procedure for System Administrators

    Contact the corresponding developer of the CDS view to correct the
    error.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message SADL_GW_DT_CDS035 - Annotation '&1: &2' must not be used here. ?

    The SAP error message SADL_GW_DT_CDS035 typically indicates that there is an issue with the annotations used in a Core Data Services (CDS) view or in the context of a service definition. The message states that a specific annotation (denoted by &1: &2) is not allowed in the current context.

    Cause:

    1. Incorrect Annotation Usage: The annotation being referenced is not valid for the context in which it is being used. This could be due to:

      • Using an annotation that is not supported in the specific type of CDS view (e.g., using a UI annotation in a non-UI context).
      • Misplacing the annotation in the CDS definition (e.g., placing it at the wrong level or in the wrong section).
    2. Version Compatibility: The annotation might be valid in a different version of SAP or in a different context, but not in the current version you are working with.

    3. Syntax Errors: There could be syntax errors in the CDS view definition that lead to misinterpretation of the annotations.

    Solution:

    1. Review Annotation Context: Check the documentation for the specific annotation you are using to ensure it is appropriate for the context of your CDS view. Make sure you are using the correct annotations for the type of CDS view you are defining.

    2. Correct Placement: Ensure that the annotation is placed correctly within the CDS view definition. Annotations should be placed at the appropriate level (e.g., entity level, field level) as required.

    3. Check for Typos: Look for any typographical errors in the annotation names or values. Ensure that they are spelled correctly and conform to the expected format.

    4. Consult SAP Documentation: Refer to the official SAP documentation or the SAP Help Portal for the specific version you are using to understand the valid annotations and their contexts.

    5. Update or Patch: If you suspect that the issue is related to version compatibility, check if there are any updates or patches available for your SAP system that might resolve the issue.

    6. Testing: After making changes, test the CDS view again to see if the error persists.

    Related Information:

    • SAP Notes: Check SAP Notes for any known issues related to the error message SADL_GW_DT_CDS035. SAP Notes often provide solutions or workarounds for specific issues.
    • SAP Community: Engage with the SAP Community forums to see if other users have encountered similar issues and what solutions they have found.
    • CDS Annotations Documentation: Familiarize yourself with the various annotations available in SAP CDS and their intended use cases. This can help prevent similar issues in the future.

    By following these steps, you should be able to identify the cause of the error and implement a solution to resolve it.

    • 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
The AI Support Assistant is great. It provides comprehensive assistance even on the most difficult issues. I highly recommend this service.
Rate 1
John Jordan
SAP Consultant & Author