Skip to Content
Sep 03, 2020 at 09:22 AM

Custom Queries and authorisations



I want to create a new specific report. I will create a custom CDS, then a custom query and finally a custom app. It works all right.

For instance, I've created an app to analyse the customer open items with some criteria available in the sales document.

Now, I would like to restrict the access to this data depending on some criteria. Let say that I would like to create athorisation profiles depending on the company code.

In the description of the root CDS i'm using, the documentation says:

To create the new app, I must specify a catalog. I look for a catalog that makes sense for this CDS: SAP_FIN_BC_GL_ANALYTICS_PC.

This catalog handles some restrictions types:

And I see no restriction type that would match the CDS prerequisites.

My question is: how will the system determine what data a user will be allowed to display? How the link between the CDS prerequisite and the catalog restriction types is made?

Thanks in advance for any enlightment you may give me.



31064-image.png (12.5 kB)
31065-image.png (87.8 kB)