SAP AUTHORITY DURING UPDATE



Get Example source ABAP code based on a different SAP table
  


VERSION 5 OUT

Authorization Checks During an Update
No authorization checks can be performed during an update, that is, when processing an update function module triggered by COMMIT WORK).
During an update, the statement AUTHORITY-CHECK always sets the value sy-subrc to 0 and does not perform any authorization checks.
During an update, CDS access control is not allowed. If the AB-SQL statement SELECT is used during an update to access a CDS entity for which access control is not disabled, the runtime error SYSTEM_UPDATE_TASK_ILL_STMT occurs. Access control can be disabled as follows:
In the CDS entity: Using the value #NOT_ALLOWED for the annotation @AccessControl.authorizationCheck.
In ABAP SQL: Using the addition WITH PRIVILEGED ACCESS in the FROM clause.
This applies to local updates and update sessions.