Application Development 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: 

How to find Authorization object from Field name & value

Former Member
0 Kudos

Hi Experts,

I have a set of authorization objects. Now i need to get the list of users who were assigned to a particular AO.

I have field name & its value as input to get the AO.

How to find the AO? and the list of users who are assigned with that AO.

Thank you.

10 REPLIES 10

Former Member
0 Kudos

List of authorisations for a particluar user role is displayed in transaction SU53.

Also check for SU20

Former Member
0 Kudos

hi,

Please check this link

http://help.sap.com/saphelp_nw70/helpdata/en/52/671285439b11d1896f0000e8322d00/content.htm

SU21 is the tcode for authorization objects.

sample code

authority-check object 'V_VBAK_VKO'

id 'VKORG' field it_salesorg-vkorg

id 'VTWEG' dummy "FIELD '*'

id 'SPART' dummy "FIELD '*'

id 'ACTVT' dummy.

*If the user is not authorised

if sy-subrc 0.

*Give the error message.

endif.

hope it will help you.

regards,

lokesh

ThomasZloch
Active Contributor
0 Kudos

Try tx S_BCE_68001397 (part of tx SUIM).

Thomas

Former Member
0 Kudos

Thanks for all ur replies.

I dont know the AO name or the user name also.

I only have a field name & its value from them i need to get the list of users.

Example: Field name: country

Field value: India

from the above values i should search for the users for whom the value is maintained as 'India' for field 'Country' in a particulat AO which is assigned to that user.

Any function modules available to search for the above?

Hope the question is clear.

Thank you.

0 Kudos

"country" could appear in multiple authorization objects.

Try tx S_BCE_68001412 in this case, then the other one I suggested above.

Check out the whole SUIM report tree, it has almost every analysis that could be needed.

Thomas

0 Kudos

hi,

check in table TSTCA.

regards,

Lokesh

0 Kudos

Thanks for ur reply.

From TSTCA, i got the AO name based on the field name & value.

Now i need to get the list of roles, for which this AO is assigned.

Please help me in this.

Thank you.

0 Kudos

Use these tables.

AGR_USERS,USR04,USR12.

Former Member
0 Kudos

Thanks a lot for your quick answer ... But is there is any way to assign the transaction variant to a user or a user group . So then a user could see the net price and another user wouldn't see it

Thanks in advanced

Former Member
0 Kudos

Hi Mytri,

1) By using SUIM tcode you can find the list of users who are assigned to authorization object.

2) Check TSTCA Table.

3) Using SU24 you can find the authorization objects related to the tcode.

Thanks,

Venkatesh