Skip to Content
0

CDS DCL Authorization

Mar 08 at 06:31 PM

51

avatar image

Hello,

first of all as a Student I am brand new in ABAP and any programming language.

I created a simple ALV-Grid with authority check and it was'nt a big of a deal. Now i try to convert the "old" program into a cds view.

I managed to code the Data Definition and now I stuck with the authorization:

Here the Code from my DCL Source:

@EndUserText.label:'CDS_TEST'
@MappingRole:true
 define role Z_PSP_TEST{
 grant select on Z_PSP
 where(c.werks) =
 aspectpfcg_auth(ZCO_MDP,
 werks,
 actvt='03');
}

My issue now is in line 4: I named the define role the same way I did it with my define view but it says that no unique key was defined for entity

any advise?

greeting Dustin

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Horst Keller
Mar 08 at 06:59 PM
0
Share
10 |10000 characters needed characters left characters exceeded