on 04-01-2015 11:14 AM
Hi All,
I have 4 bussiness roles having same role config key, When the user login with these roles, they can see the same screen, same assignment block, same data, but the button appears on assignment block and overview page is different. (i have requirement to show different button for different bussniess roles).
Need help?
Regards,
Kapil
Hi Kapil,
get the business role at run time based on that restrict the button declaration for each person.
ex:
lv_profile = cl_crm_ui_profile=>get_instance( ).
IF lv_profile IS NOT INITIAL.
lv_role = lv_profile->get_profile( ).
ENDIF.
if lv_role = 'firstrole'.
button declaration.
elseif. lv_role = 'secondrole'.
button declaration..
elseif.....
endif.
try this logic.
Thanks & Regards,
Srinivas.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Done Srinivas, Thanks for your reply..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kapil
Assign a unique Role Config Key per Business Role. This is one of the key reasons the Role Config Key is made available.
Regards
Arden
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
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.