Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Authority-Check

Former Member
0 Likes
590

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

3 REPLIES 3
Read only

Former Member
0 Likes
554

Hi

U can check 2 activity

Regards

Amiya

Read only

Former Member
0 Likes
554

Hi,

Authorization Check in ABAP Programs
AUTHORITY-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

Read only

ThomasZloch
Active Contributor
0 Likes
554

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