Hi CRM Experts,
I am using the Comp Workbench tool (BSP_WD_CMPWB) to create a Z** enhancement for BP_ADDR component on the StandardAddress view. It created a Z* Impl class, Z*CTXT class & Z* CN01 Context Node class.
I am now trying to read the STANDARDADDRESS context node & i need to update the Country & REGION fields on that view.
I have the code as below in DO_PREPARE_OUT which is not all working because i see that lr_entity is always initialDATA : lr_entity TYPE REFTO cl_crm_bol_entity, "(also used if_bol_bo_property_access)
ls_line type REF TO CL_BP_ADDR_STANDARDADDRES_CN01.
lr_entity ?= me->typed_context->standardaddress->collection_wrapper->get_current().
IF lr_entity IS NOT INITIAL. -->I se its always initial
lr_entity->set_property( iv_attr_name = 'STRUCT.REGION' iv_value = 'US' ).
ENDIF.
Also i need to use the method ON_NEW_FOCUS after this.
Pls suggest.