cancel
Showing results for 
Search instead for 
Did you mean: 

Authorization in BOPF generated through CDS

Seph
Discoverer
0 Kudos

Hello,

I can not find a documentation for this.

I want to use the generic authorization concept of BOPF to save me a lot of work for implementing authorizations into my application.

A easy way to work with BOPF is to generate them out of an cds view with the ObjectModel annotation.  I created an cds view with these annotation and it generated an BOPF. No I want to assign an authorization object to the generated BOPF. The only option I can see in ADT is the authorization tab. I can add an authorization class there but these results in this error: "Authorization check class specified, but relevance flag not marked."

Also in SAP in transaction BOBX the option “Businessw Object has Authorization checks” is not chooseable.

Is this not possible because cds view authorization works over access controls?

But my understanding is that these only work for read access. But I need to authorization for all crud operations. Is there something I missed?

Thanks for the help.

 

View Entire Topic
bmayhs
Advisor
Advisor
0 Kudos

Hi Seph,

You can only maintain the authorization class for generated business objects.

The details are mentioned in the help documentation : https://help.sap.com/docs/ABAP_PLATFORM_NEW/cc0c305d2fab47bd808adcad3ca7ee9d/11682c24ecca4ce4a793937...

Thanks and Regards,

Shyam

Seph
Discoverer
0 Kudos

Hi Shyam,

Thank you for your answer. I couldn’t find this site by myself.

Seph