04-16-2018 11:12 AM
Hi Experts,
is there any way to access the Result of a DCL for an CDS-View during ABAP-Runtime?
My Requirement is to show wether the result list is filtered by a DCL or not. (Something like displaying a Message: "Attention, the Result is filtered during missing authorizations")
Normally it would be easy to read all Data and then filter on ABAP-side during a Loop and AUTHORITY-CHECK.
But this is not possible in my case because i make use of SQL-Commands LIMIT & OFFSET because of Pagination.
Was wondering if there is any Standard Implementation for this.
Any help is appreciated!
Thanks in advance,
Sascha
04-17-2018 2:25 PM
Not really an answer to your question, but:
But this is not possible in my case because i make use of SQL-Commands LIMIT & OFFSET because of Pagination.
This sounds like you're using something like ALV to display your data. If that's the case, try ALV with Integrated Data Access (IDA) It takes care of all the paging and so on.
04-17-2018 2:38 PM
Thanks for your answer.
Unfortunately im not using an ALV. The Statement is progressed in my OData Data Provider Class. 🙂
Even tried using the SADL-Framework but this doesnt give me the result of the DCL either. Seems that there is currently no way to get the Result of the DCL in the ABAP Layer.