SAP NEWS-775-UPDATE



Get Example source ABAP code based on a different SAP table
  



Updates in ABAP Release 7.75
ITOC

ABAP_MODIFICATION_NN Authorization Checks in Updates

No authorization checks must be made in updates.
This rule was not always applied before ABAP_RELEASE 7.75:
The statement AUTHORITY-CHECK only omitted authorization checks in update sessions and always set sy-subrc to 0 here.
In local updates, on the other hand, AUTHORITY-CHECK made an authorization check.
When using AB_SQL to access a CDS entity for which a CDS role is defined, implicit CDS access control was applied in local updates and in update sessions by default.
The following applies to local updates and to update sessions from ABAP_RELEASE 7.75:
In updates, the statement AUTHORITY-CHECK always sets the value sy-subrc to 0 and does not make any authorization checks.
CDS access control cannot take place. If the AB-SQL statement SELECT is used in an update to access a CDS entity for which access control is not disabled using the value #NOT_ALLOWED for the annotation @AccessControl.authorizationCheck or using the addition WITH PRIVILEGED ACCESS in the FROM clause, the runtime error SYSTEM_UPDATE_TASK_ILL_STMT occurs.