Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2801

Re: Authorization Mechanism : OData service development using CDS via Referenced Data Sources

$
0
0

Hi Jibin,

 

you can define authorization checks within your CDS view.

 

ABAP Keyword Documentation

 

The new CDS authorization concept exists alongside the classic authorization concept and can be used independently or in combination with the classic concept (Authority-check).

 

The DCLs (data control language) are an extension of the DDL document that is used to define the CDS view.

 

A typical example would be the following:

 

@EndUserText.label: 'Role to view translation objects by language'

@MappingRole: 'true'

ROLE demo_documents {   

grant SELECT on demo_translation     

WHERE ( targetLang, textType ) = ASPECT pfcg_auth         

( S_TRANSLAT, TLANGUAGE, TRANOBJ, ACTVT = '02'); }


 

See also the blog from Horst Keller

ABAP News for Release 7.50 - ABAP CDS Access Control

 

Best Regards

Andre


Viewing all articles
Browse latest Browse all 2801

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>