Use the keyword PRIVILEGED
to provide write access using privileged mode.
After open bonus calculations have been retrieved, the bonus calculation action calculatebonus
is triggered in the Bonus Calculation business object with privileged access. By using the keyword PRIVILEGED
after the behavior definitionz_i_bonus_calculation
, you enable privileged mode. As a result, the bonus calculation is executed without further authorization checks in the RAP authorization control.
In the example used in this documentation, you can use the following code:
MODIFY ENTITIES OF z_i_bonus_calculation PRIVILEGED ENTITY calculation EXECUTE calculatebonus FROM CORRESPONDING #( lt_bonus_calculation ) RESULT DATA(result) REPORTED DATA(reported) FAILED DATA(failed).