For everybody who is as lost as me in the ABAP djungle, here is an Example to read Values from authority Objects.
***read cost center of a user call function 'GET_AUTH_VALUES' exporting
object1 = 'Z_AUTH_OBJ'
user = sy-uname tables
values = lt_auth_values exceptions
user_doesnt_exist = 1 others = 2. if sy-subrc = 0. read table lt_auth_values into ls_auth_value with key field = 'ZZ_COST_CENTER'.
"Do something here endif.
It
is a pretty example for binding Values to user Roles instead of User
Parameters. This way they can be shared and redistributed.
Serkan AKKAVAK Computer Engineer SAP Department Deputy Manager Contact : serkurumsal@yandex.com
Social Plugin