Skip to Content

CDS DCL Authorization

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 08 at 06:59 PM
    Add comment
    10|10000 characters needed characters exceeded