DATA: lr_profile TYPE REF TO cl_crm_ui_profile ,
lv_role TYPE string .
lr_profile ?= cl_crm_ui_profile=>get_instance( ).
IF lr_profile IS BOUND.
CALL METHOD lr_profile->if_crm_ui_profile~get_profile
RECEIVING
rv_result = lv_role.
ENDIF.
You will get the business role, in lv_role variable.
lv_role TYPE string .
lr_profile ?= cl_crm_ui_profile=>get_instance( ).
IF lr_profile IS BOUND.
CALL METHOD lr_profile->if_crm_ui_profile~get_profile
RECEIVING
rv_result = lv_role.
ENDIF.
You will get the business role, in lv_role variable.
No comments:
Post a Comment