Hi Experts,
I creates a value node ZBP and it has one attribute called BP which I created while creating value node.
I want to access the value of BP. For this I wrote below code :
DATA : lv_wrapper_c TYPE REF TO cl_bsp_wd_collection_wrapper,
entity TYPE REF TO cl_crm_bol_entity.
lv_wrapper_c = ztyped_context->zbp->get_collection_wrapper( ).
lv_entity_c ?= lv_wrapper_c->get_current( ).
But at line lv_entity_c ?= lv_wrapper_c->get_current( ) it is throwing below exception :
During a 'CAST' operation ('?=' oder 'MOVE ? TO')a type conflict occurred. The source type '\CLASS=CL_BSP_WD_VALUE_NODE' is not compatible for assigning with the target type '\CLASS=CL_CRM_BOL_ENTITY'.
Please help to remove this exception.
Thanks & Regards,
Akhilesh Bhagat.