2007 Jul 06 10:20 AM
Hi,
I want to find out when a particular profile was added to a role. I can see that a particular role exists for a profile from AGR_PROF table, but I want to know who did this and when? Is it possible to get this info from anywhere?
Thanks,
Saravanan
2007 Jul 06 10:24 AM
Hi
Check the Tcodes SUIM, SU21 and PFCG
also check the tables
AGR_USERS
AGR_TCODES
AGR_1252
AGR_1250
USR10
USR12
Reward points for useful Answers
Regards
Anji
Hi,
I want to find out when a particular profile was added to a role. I can see that a particular role exists for a profile from AGR_PROF table, but I want to know who did this and when? Is it possible to get this info from anywhere?
Thanks,
Saravanan
2007 Jul 06 10:24 AM
Hi
Check the Tcodes SUIM, SU21 and PFCG
also check the tables
AGR_USERS
AGR_TCODES
AGR_1252
AGR_1250
USR10
USR12
Reward points for useful Answers
Regards
Anji
2007 Jul 06 10:52 AM
Anji,
That's great...Many Thanks.... I used SUIM and got the info!!
Thanks Again,
Saravanan
2007 Jul 06 10:24 AM
Hi,
U can find this in T-code-RZ11.
Pls reward points.
Regards,
Ameet
2007 Jul 06 10:27 AM
Hi,
For assigning roles you can use following bapi's :
first get all roles user currently has
CALL FUNCTION 'BAPI_USER_GET_DETAIL' destination destination
EXPORTING
username = uname
TABLES
activitygroups = ta_agr
RETURN = ta_bapiret.
then add the new role to ta_agr
append wa_agr to ta_agr.
Then assign all these roles to the user :
CALL FUNCTION 'BAPI_USER_ACTGROUPS_ASSIGN' destination destination
EXPORTING
username = uname
tables
activitygroups = ta_agr
return = ta_bapiret
For assigning profiles :
CALL FUNCTION 'BAPI_USER_PROFILES_ASSIGN'
EXPORTING
username = uname
TABLES
profiles = ta_profiles
return = ta_return.
I hope this is what you were looking for
<b>Reward points</b>
Regrads
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |