2025 Feb 12 9:42 AM
Hi community,
we have an CDS Projection View which I want to restrict using an Access Control. This does unfortunately not work, Eclipse throws an error. The Access Control works fine in the underlying root view.
I cannot find anything in the Documentation on Access Controls or Projection Views.
Does anyone know how to use AC with Projection Views?
Any input is much appreciated!
2025 Feb 14 2:44 PM
Hi @axel_brke3, regarding the error in Eclipse: we recommend to open a ServiceNow ticket with the following component: BC-DWB-AIE-CDS. Our colleagues can then work on the problem more efficiently and try to find a solution for it. Best regards!
2025 Feb 14 6:24 PM - edited 2025 Feb 16 4:28 PM
Hi,
access control can be defined for projection view:
@EndUserText.label: 'Access mgr 3'
@MappingRole: true
define role ZACI_EMP {
grant
select
on
ZI_EMP
where
Mgr = 3;
}
@EndUserText.label: 'Mgr 3'
@MappingRole: true
define role ZACC_EMP {
grant
select
on ZC_EMP where inheriting conditions from entity ZI_EMP;
}
Please check the new feauture for Version 7.58
https://help.sap.com/doc/abapdocu_latest_index_htm/latest/en-US/index.htm?file=abencds_dcl_role_proj...