Hello,
I have requierment to confirm account on dispute selection
Wrote below code but getting dump CALL METHOD lr_entity->if_bol_bo_property_access~set_property
DATA:
lr_entity TYPE REF TO cl_crm_bol_entity.
lr_gdc ?= cl_crm_ui_data_context_srv=>get_instance( ).
TRY.
CALL METHOD lr_entity->if_bol_bo_property_access~set_property
EXPORTING
iv_value = lv_guid
iv_attr_name = 'BP_GUID'.
CATCH cx_sy_move_cast_error.
ENDTRY.
lr_gdc->set_entity( name = 'CURRENTCUSTOMER' value = lr_entity ).
When i confirmed account from account identification view then i am able to read account by below code
* get bp
lr_bdc = cl_crm_ui_data_context_srv=>get_instance( me ).
IF lr_bdc IS BOUND.
lr_bp = lr_bdc->get_entity( name = 'CURRENTCUSTOMER' ).
IF lr_bp IS BOUND.
* BP_NUMBER
* Get contact person number
CALL METHOD lr_bp->get_property_as_value
EXPORTING
iv_attr_name = 'BP_NUMBER'
IMPORTING
ev_result = lv_customer.
ENDIF.
ENDIF.
But where i am wrong on setting the global parameter of account.
Pls help me