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: 

Role assignment

Former Member
0 Kudos

Hi All,

Could someone give me a suggestion as to how to fix up this problem.

I want to shoot a mail whenever a new role is assigned, we have a list of critical roles and we want if any of these role is assigned to user a mail should be sent to the responsible person.

Now I am in search of such a user exit which gets triggered when role is saved successfully using su01 or su10, it can be a badi also. If I am able to find this then I will build in my required logic there in.

I am still searching but no hits found. I want to know from any one of you what should be actual approach to achieve this task.

Has anyone of you been in this kind of development.

Kindly suggest me in a right direction.

Thanks,

Mark

5 REPLIES 5

Former Member
0 Kudos

Hi

I don't know if there's an exit, but u can create a program using SUSR_BAPI_USER_PROFILES_ASSIGN to assign the roles to user and then send the mail.

Max

Former Member
0 Kudos

I guess I was not clear with my question.

I do not want to add or create the role using BAPI or function module.

Tcode su01 or su10 or PFCG will be used to add the role to a specific user.

Now I want to search for the user exit or BADI where control comes when tcode is saved.

Thanks,

Mark

0 Kudos

Hi

Yes I understood your problem, but I'm using 4.6C and no user-eixt is that transaction, so or you create a your program or your change std one.

Max

Former Member
0 Kudos

Hi,

Does anyone know about this thread???

I´m in same situation. I need a BADI or USER-EXIT for role/profile assignment. If it´s a critical role, I have to prevent the assignment.

Please let me know if you have any way to do this.

0 Kudos

Hi,

You can activate some special "user-exits" in transaction PFCG. These are not classic user-exits or BAdI's but could be helpful for your requirements. They can be activated in table with customizing parameters for PFCG.

Have a look here for details:

[http://www.kerum.pl/infodepot/00020|http://www.kerum.pl/infodepot/00020]

regards,

Kris