创建一个cds Access Control
@EndUserText.label: 'check ztest_cds quthority'
@MappingRole: true
define role ZAUTH_CHECK {
grant
select
on
ztest_cds//CDS 视图名
where
( carrid ) =
aspect pfcg_auth( S_carrid, carrid, actvt = '03');
} //AUTHORITY-CHECK OBJECT 'S_carrid'
// ID 'ACTVT' FIELD '03'
// ID 'CARRID' FIELD carrid.
用T-code:stauthtrace测试是否check
测试检查成功。
到此结束。