on 09-18-2022 7:35 PM
Hello Ruchi,
As Amit said, elements of a custom CDS views can only be removed if they are not used. Nevertheless, the key fields are an exception. They can usually not be removed at all due to stability reasons. What you can do is to hide them in the consumption (this is an option in the element properties). Hiding a field will make it invisible in the final consumption runtime (e.g. in an an analytical query or in an odata service). Setting the hidden property will write the @Consumption.hidden annotation to the element. Also see https://help.sap.com/doc/saphelp_nw75/7.5.5/en-US/d6/0c0bf6798a481fb7412bc89934cb8a/content.htm
Best Regards,
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ruchi
Please confirm if you have any dependency linked to your custom CDS view like a Custom Analytical Query. If yes, then you need to uncheck that specific field from your query first and then save and publish the query. Return back to the field in CDS view and see if it’s available for deletion. Please check and confirm.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amith,
It has no dependency. Still its not letting it delete. Is it because its a primary key ?
Thanks and Regards
Ruchi Kesharwani
2022-09-19-08-18-15.jpgHi Ruchi,
As you pointed out, since it's a Primary key, it does not let you delete, but you have an option to hide in the Element Properties section as depicted in my screenshot.
Hope this does the trick in your scenario. Please close the thread, if this helps!
Thanks! Amith Nair
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.