Hi Dou,
lr_window = me->get_window( ).
lr_entity = lr_window->if_bsp_wd_history_state_descr~get_main_entity( ).
IF NOT lr_entity IS BOUND.
CALL METHOD cl_crm_uiu_bp_tools=>get_current_comp_attribute
EXPORTING
iv_comp_controller = me->comp_controller
iv_node_name = 'PARTNER'
IMPORTING
ev_current = lr_current.
lr_entity ?= lr_current.
ENDIF.
Could you please check if this works.
Thanks,
Anil