Hi Srinivas,
As we don't have direct relationship between the two components..I am not able to read the data using above logic.
But I used global context data and read the business partner data it's working as expected.
But you understood the requirment correctly.
Thanks for your reply on this.
data:
lr_gdc TYPE REF TO if_crm_ui_data_context,
lr_bp_entity TYPE REF TO if_bol_bo_property_access,
lr_gdc ?= cl_crm_ui_data_context_srv=>get_instance( me ).
lr_bp_entity ?= lr_gdc->get_entity( 'CURRENTCUSTOMER' ).
IF lr_bp_entity IS BOUND.
CALL METHOD lr_bp_entity->get_property_as_value
EXPORTING
iv_attr_name = 'BP_NUMBER'
IMPORTING
ev_result = lv_partner.
Thanks,
Sara.