Hello all...
I'm new to CRM. I have a question.
I created one table view with BTQRSrvCon. In DO_PREPARE_OUTPUT method, I retrived the data and trying to display it in the table view. there is a column service_team. if it is initial, I want to pass one default team name and display it and the table. but, there is something in my code. please find the below code
lr_qs ?= cl_crm_bol_dquery_service=>get_instance( 'BTQSrvCon' ).
ls_param-name = 'MAX_HITS'.
ls_param-value = 10.
append ls_param to lt_param.
lr_qs->set_query_parameters( lt_param ).
lr_result ?= lr_qs->get_query_result( ).
if lr_Result is bound.
lr_ent ?= lr_result->if_bol_entity_col~get_first( ).
while lr_ent is bound.
lv_srv_team = lr_ent->get_property_as_string( 'SERVICE_TEAM' ).
if lv_srv_team is initial.
lr_ent->set_property_as_string( iv_attr_name = 'SERVICE_TEAM' iv_value = 'QMF_TEAM' ) .
endif.
lr_ent ?= lr_result->if_bol_entity_col~get_next( ).
endwhile.
endif.
lr_core = cl_crm_bol_core=>get_instance( ).
lr_core->modify( ).
me->typed_context->node->collection_wrapper->set_collection( lr_result ).
but the vaule is not getting updated in the column. I dont need to save. I just want to display the column with QMF_TEAM if the record has no value for that column.
Please help me .. thank you.