on 08-04-2010 3:52 PM
Hi,
Is there any function that read current user's business role in CRM?
Best Regards.
Sadi
Hi Sadi,
Try something like this:
DATA ls_user_role TYPE string.
DATA lr_profile_instance TYPE REF TO if_crm_ui_profile.
*- Read User Role
lr_profile_instance = cl_crm_ui_profile=>get_instance( ).
CALL METHOD lr_profile_instance->get_profile
RECEIVING
rv_result = ls_user_role.
Kind regards,
Garcia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I am able to fetch the business role using the above code in the foreground.
But, the above code in not working when I run the job in the backgrund.
I'm getting the Business role as blank in the background.
Can you please help me on this ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The above code is correct, you can use that.
Thanks,
Shobhit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.