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 T.Code in user Role

Former Member

Dear Experts,

How to check transaction code maintained for user Role.

For Example I have one User X who have Authorization of T. Code J1ID

is it possible to find out T. Code J1ID is maintained in which role, User have No of Roles in his ID I dont want to search it by open each and every Role. is there any short way to search T. Code.

Thanks,

JA

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Javeed,

There are many ways to do it.

Go to SUIM>> Roles> Complex Selection Criteria>

Enter the User ID: USERX

In the Objects enter: S_TCODE (Press Enter)

Enter the Tcode as the field value of this object.

Then click on execute, you will get the list of roles assigned to this userX having above mentioned Tcode. Let me know if you need any more information on this.

6 REPLIES 6

Former Member
0 Kudos

Hi Javeed,

There are many ways to do it.

Go to SUIM>> Roles> Complex Selection Criteria>

Enter the User ID: USERX

In the Objects enter: S_TCODE (Press Enter)

Enter the Tcode as the field value of this object.

Then click on execute, you will get the list of roles assigned to this userX having above mentioned Tcode. Let me know if you need any more information on this.

Former Member
0 Kudos

Second option is through tables.

1 - Go to SE16, table name: agr_users.

2 - Pull out all the list of roles which are assigned to userX.

3 - Now check table agr_1251> Object:S_TCODE> Enter the tcode as the field value (LOW) also enter all the role names which were pulled out in point 2.

4 - Execute it which will list out all the roles having access to that Tcode.

Let me know if you need any more information on this.

Former Member

You could also use the table AGR_TCODES.

Regards,

Chinmaya

0 Kudos

> You could also use the table AGR_TCODES.

AGR_TCODES is notouriously unreliable as it only looks in the role menu. That doesn't always match with the actual S_TCODE object entries in the role. Also with searching tables you could miss transactions hidden in S_TCODE ranges......

0 Kudos

You are right.. this would also exclude the transaction added manually in S_TCODE and I remember having my share of difficulties when roles have difference in agr_1251 and agr_tcodes.

Thanks,

CP

Former Member
0 Kudos

Closed