The authority handler method has the following parameters:
KEYS
Requested_authorizations
Result
Example: Instance Authorization Check
The code example shows the implementation of an instance base authority check. The check itself is done with the ABAP statement AUTHORITY-CHECK.
First, the method uses importing parameter keys, to read the data of all entity instances for which the authority check is to be performed.
It then performs the authorization check for each data set (entity instance) in turn. If the user does not have the requested authorization, the logic adds a row to parameter result that contains the key of the entity instance and flags for the disallowed operations.