as Arden suggested you can implement the COM_PARTNER_BADI. you can use below code to read user role.
lo_profile ?= cl_crm_ui_profile=>get_instance( ).
lv_role = lo_profile->if_crm_ui_profile~get_profile( ).
as Arden suggested you can implement the COM_PARTNER_BADI. you can use below code to read user role.
lo_profile ?= cl_crm_ui_profile=>get_instance( ).
lv_role = lo_profile->if_crm_ui_profile~get_profile( ).