cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CDS Access control with Class/function Module ?

vijay_sharma_purushottam_51
Product and Topic Expert
Product and Topic Expert
0 Likes
530

Can we create CDS entity Access control comparing the Value of CDS entity with class/Function module value

Accepted Solutions (0)

Answers (1)

Answers (1)

Monsores
Active Participant
0 Likes

Hi Vijay.

Not directly.

But maybe you can change a bit your class method or function module to validate an auth object and then use it also in your CDS Access Control with 'aspect pfcg_auth'.

Or you can also turn your CDS data definition into a parameterized one and send the method/function name when calling it. Then you can play a bit with CASE and other SQL functions in your CDS to restrict the data you want to show.

Regards,

Marcelo Monsores