cancel
Showing results for 
Search instead for 
Did you mean: 

different button for different bussniess roles

0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member210661
Active Contributor
0 Kudos

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.

Answers (2)

Answers (2)

0 Kudos

Done Srinivas, Thanks for your reply..

Former Member
0 Kudos

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