SAP NEWS-785-CDS ACCESS CONTROL
Get Example source ABAP code based on a different SAP table
ABAP_CDS Access Control in ABAP Release 7.85
ITOC
ABAP_MODIFICATION_NN
From this release on, authors of access controls can mark a subset of the CDS elements used in their access conditions as optional, so that CDS entities which inherit their access conditions are not affected by a <(>Day-1-impact<)> any more.
element1 DEFAULT (TRUE|FALSE), ...) WHERE ...>
ABAP_MODIFICATION_NN
At all locations of access controls, references to authorization objects, authorization fields, and SACF scenario names can be written in identifier syntax when they comply with it and in string syntax with single apostrophes as an alternative.
Before:
Now allowed:
ABAP_MODIFICATION_NN
When using user-defined aspects, these can now denominate an arbitrary set of their elements (path expressions are supported) as filter element. These filter elements can by referenced when using the user-defined aspect in an access condition.
WITH USER ELEMENT ...
WITH FILTER ELEMENTS ( element1, element2 AS alias2 )
{
...
}
WHERE ( ... ) = ASPECT ... FILTER BY ( element1 = 'X' OR
alias2 IS NOT NULL ) >
ABAP_MODIFICATION_NN
The
is now also available for role-based inheritance
ABAP_MODIFICATION_NN
The
ELEMENT Element1OfSource WITH Element1OfTarget,
ELEMENT Assoc1OfSource WITH Assoc1[r = 4].Assoc2OfTarget,
ELEMENT Assoc2(p : $parameters.p1)[ q = 1].Field WITH MyShortField } >
ABAP_MODIFICATION_NN
Respecting settings in the switchable authorization framework (SACF) was already possible for dedicated PFCG conditions:
Now, those settings can be used to enable or disable entire condition sets:
WHERE
SACF_CHECK_IN_USE (NAME => NEW_AUTH_SWITCH ) IS INITIAL
AND
( element ) = ASPECT PFCG_AUTH( OLD_AUTH, F )
OR
SACF_CHECK_IN_USE( NAME => NEW_AUTH_SWITCH ) IS NOT INITIAL
AND
( element ) = ASPECT PFCG_AUTH( NEW_AUTH, F ); >
ABAP_MODIFICATION_NN
For CDS hierarchies, access control was restricted to the use of conditions not resulting in database filtering. Now elements located in the declared hierarchy directory ABAP Addition FILTER BY>>
can be used to formulate such conditions.
ABAP_MODIFICATION_NN
When operating the system with the emergency user
During processing of an update task, PFCG conditions are now considered as fully authorized.
ABAP_MODIFICATION_NN
The following new