Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Result of DCL during ABAP Runtime

sascha_weidlich2
Participant
0 Kudos

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

2 REPLIES 2

former_member284740
Participant
0 Kudos

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.

0 Kudos

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.