Authority Check – SAP GUI –


*Authority-Check

data lv_uname type syuname.

authority-check object ‘Y_ROLE’

              for user lv_uname

              id ‘P_ACTV’      field ’03’

              id ‘P_USERGROUP’ field ’02’.

if sysubrc <> 0.

  message ‘No Authorization!’ type ‘E’.

endif.

Leave a comment

Your email address will not be published. Required fields are marked *