SAP AUTHORITY-CHECK - Reference ABAP Statements

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for AUTHORITY-CHECK

AUTHORITY CHECK

ABAP Reference
ABAP Code Snippet


ABAP Syntax AUTHORITY-CHECK OBJECT auth_obj [FOR USER user]

ID id1 {FIELD val1}|DUMMY
[ID id2 {FIELD val2}|DUMMY]
...
[ID id10 {FIELD val10}|DUMMY].
ABAP Code Snippet

What does it do? Performs an authorization check for the current user or a specified user compared with the authorization object auth_obj. Either the entry in the user master record is evaluated using FIELD for the authorization field id1, ..., id10 or the check is skipped using DUMMY .

ABAP Addition FOR USER user
Checks the user entered in user.
FIELD val1, ..., FIELD val10
Compares the content of val1, ..., val10 with the values for the authorization field id1, ..., id10 in the user master record.
DUMMY
Skips the check for the authorization field id1, ..., id10 .

Return to menu