You need to call the relevant authority object and if the sy-subrc eq 0, then the user has authorization.
For e.g
AUTHORITY-CHECK OBJECT 'F_KNA1_BUK'
ID 'BUKRS' FIELD '1000'
ID 'ACTVT' FIELD '03'. =>displau
More info on the permitted activities can be found in the authority object definition.
also look at the ABAP key word documentation for
AUTHORITY-CHECK
Regards
Raja
Add a comment