2008 Aug 25 2:20 PM
Hi,
I want to Check the ACTVT status of a field for a user whether he has access to '02' change or '03' Display.
AUTHORITY-CHECK OBJECT 'S_TABU_DIS'
ID 'DICBERCLS' FIELD 'XXXXXX'
ID 'ACTVT' FIELD '02'.
ID 'ACTVT' FIELD '03'.
can i use the above statement , will it check for both '02' and '03' or if '02' fails it wont check for '03'.
Please share your experiences and suggest any other approach.
regards,
Ry
Hi,
I want to Check the ACTVT status of a field for a user whether he has access to '02' change or '03' Display.
AUTHORITY-CHECK OBJECT 'S_TABU_DIS'
ID 'DICBERCLS' FIELD 'XXXXXX'
ID 'ACTVT' FIELD '02'.
ID 'ACTVT' FIELD '03'.
can i use the above statement , will it check for both '02' and '03' or if '02' fails it wont check for '03'.
Please share your experiences and suggest any other approach.
regards,
Ry
2008 Aug 25 2:22 PM
2008 Aug 25 2:32 PM
Hi,
Authorization Check in ABAP ProgramsAUTHORITY-CHECK OBJECT <object>
ID <name1> FIELD <f1>
ID <name2> FIELD <f2>
...
ID <namen> FIELD <fn>.<object> is the name of an authorization object. With <name1>, <name2>, and so on, you must list all fields of the authorization object <object>. With <f1>, <f2>, and so on, you must specify the values that the system is to check against the entries in the relevant authorization of the user master record. The AUTHORITY-CHECK statement searches for the specified object in the user profile and checks the useru2019s authorizations for all values of <fi>.
for more detail go through this link:
http://help.sap.com/saphelp_nw04/Helpdata/EN/9f/dbaccb35c111d1829f0000e829fbfe/content.htm
Regards
Adil
2008 Aug 25 2:35 PM
You probably want to check the activities separately, or you would not know whether the user is allowed to change or display the data (or both, or none of the two, for that matter).
Thomas