hi geeth kns
i didnt get u what u said...
i think when u click EDIT button will be displayed as editable mode otherwise it will be display mode right..
i have an idea just follow...
first u need to get the custom controller class instance based on that u need to get a context node and then collection wrapper...then ur view will be editable along with header view...
example code...:
method EH_ONEDIT.
data : lr_cuco type ref to CL_BT111H_O_OPPTDETAILSCU_IMPL,
lr_btadminh type ref to cl_crm_bol_entity.
lr_cuco ?= get_custom_controller( controller_id = 'BT111H_OPPT/OpptDetailsCuCo' ).
lr_btadminh ?= lr_cuco->typed_context->btadminh->collection_wrapper->get_current( ).
if lr_btadminh->lock( ) = abap_true.
view_group_context->SET_VIEW_EDITABLE( iv_view_controller = me ).
endif.
endmethod.