Skip to Content
0
Former Member
Sep 14, 2011 at 05:52 AM

Not able to get changed values in the SAVE EVENT in ServHPartnerDet view

15 Views

Hi Experts,

I am new CRM WEB IC, i have requirement like need to access four IBASE fields from BupaIbaseDetail and need to display those fiedls in ServHPartnerDet view. I am able display the fields and its values in the target view. But when user press change button and changes those four fields and press save button not able get the changed values in to the SAVE EVENT.Anyone please help me in this.

IBHEADER , IBASEADDRESS are the CONTEXT NODE CREATED in target view. I have binded IBHEADER to CuCoIbase custom controller and getting four fields data from IBASEADDRESS. below is the code for CREATE_CONTEXT_NODES.

METHOD create_ibaseaddress.

DATA:

model TYPE REF TO if_bsp_model,

coll_wrapper TYPE REF TO cl_bsp_wd_collection_wrapper,

entity TYPE REF TO cl_crm_bol_entity, "#EC *

entity_col TYPE REF TO if_bol_entity_col. "#EC *

model = owner->create_model(

class_name = 'ZL_CRM_IC_SERVHPDET_CN00'

model_id = 'IBaseAddress' ). "#EC NOTEXT

ibaseaddress ?= model.

CLEAR model.

coll_wrapper =

ibheader->get_collection_wrapper( ).

TRY.

entity ?= coll_wrapper->get_current( ).

CATCH cx_sy_move_cast_error.

ENDTRY.

IF entity IS BOUND.

TRY.

entity_col = entity->get_related_entities(

iv_relation_name = 'FirstLevelComponent' ).

CATCH cx_crm_genil_model_error.

ENDTRY.

TRY.

entity ?= entity_col->get_current( ).

CATCH cx_sy_move_cast_error.

ENDTRY.

CLEAR entity_col.

IF entity IS BOUND.

TRY.

entity_col = entity->get_related_entities(

iv_relation_name = 'ComponentAddress' ).

ibaseaddress->set_collection( entity_col ).

CATCH cx_crm_genil_model_error.

ENDTRY.

ENDIF.

ENDIF.

ENDMETHOD.