on 01-11-2021 11:19 AM
Hi All,
I have created CDS view, now I want to restrict access to it based on the roles defined for standard transaction VA05.
Only users maintained in VA05 roles should be able to access it.
Kindly suggest how can we achieve this type of authorization restrictions in CDS.
Thanks
Hi Abdul/ Sanil,
I am not looking for authorization check on records. I want to allow certain amount of users to access CDS and see the contents.
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
The below blog might be useful.
https://blogs.sap.com/2020/04/09/implementing-dcl-with-cds-views-and-roles/
Thanks & regards
Sanil Bhandari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Example:
@MappingRole: true
define role ZC_SalesOrder {
grant select on ZC_SalesOrder
where ( SalesOrderType ) =
aspect pfcg_auth ( V_VBAK_AAT,
AUART,
ACTVT = '03' );
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To apply authorization checks on records from the database, you should leverage the CDS access controls.
You can create access control for the CDS View with required VA05 authorization objects, fields, and activity.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Frederic, Thanks for your input.
S_DEVELOP with ACTVT = 16 should be good but how to assign this to CDS view. Any suggestions?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.