Symptom
The data preview function for CDS views in Eclipse / ADT / HANA Studio is not working after an upgrade to Public Cloud release 2502, and shows the following error message:
"The use of element XXXXX of CDS entity YYYYY is not permitted"
Environment
S/4HANA Public Cloud 2502
Reproducing the Issue
- Logon to Public Cloud release 2502
- Open a CDS view
- Error will be shown
Resolution
Some customers were chosen for an Emergency Patch of this fix due to the urgency of the issue. This fix was applied over the weekend of Feb. 22nd-23rd.
In any other case, the bug fix will be available as part of Hotfix Collection 5. It is expected to be applied on March 1st-2nd. This KBA will be updated accordingly.
For the time being, if the issue persists, the following workarounds are available:
- Create a Service Definition + Service Binding (OData UI) on top of the view and use the Service Binding preview to view the data.
- The ideal situation would be, that the user accessing ADT is not provided with Key-User roles. Separating Key-User roles from that of accessing and using ADT will allow the user to view the data in Data Preview tool.
Keywords
data preview, upgrade, 2502, CDS view, CDS, The use of element is not permitted, Public Cloud 2502, custom CDS view, ADT, table , KBA , BC-DWB-AIE-DP , Data Preview in ABAP Development Tools in Eclipse , Problem