04-21-2009 12:16 PM
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.
04-21-2009 12:17 PM
List of authorisations for a particluar user role is displayed in transaction SU53.
Also check for SU20
04-21-2009 12:25 PM
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
04-21-2009 12:27 PM
04-21-2009 12:38 PM
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.
04-21-2009 12:42 PM
"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
04-21-2009 12:46 PM
04-21-2009 1:20 PM
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.
04-21-2009 1:22 PM
05-03-2009 10:36 AM
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
09-05-2013 8:38 AM
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