Hi Sumeeth,
i have copied above code into my event handler method, now proble
- lr_query_service = cl_crm_bol_dquery_service=>get_instance( 'BTQSrvReq' ). "#EC NOTEXT
- * Provide search parameters for the query
- lr_query_service->add_selection_param( iv_attr_name = 'REFOBJ_IOBJECT_ID'
- iv_option = 'EQ'
- iv_sign = 'I'
- iv_low = lv_product_id ).
- lr_query_service->add_selection_param( iv_attr_name = 'OBJECT_TYPE'
- iv_option = 'EQ'
- iv_sign = 'I'
- iv_low = ' BUS2000223' ).
- * Fire the query and get the result
- lr_result = lr_query_service->get_query_result( ).
- lr_entity ?= lr_result->get_first( ).
- while lr_entity is bound.
- call method lr_entity->if_bol_bo_property_access~get_proeprty_as_value
- exporting
- iv_attr_name = 'PROCESS_TYPE
- importing
- ev_result = ;v_process.
- if lv_process = 'ZSRS'.
- call method lr_entity->if_bol_bo_property_access~get_proeprty_as_value
- exporting
- iv_attr_name = 'REF_PRODUCT_ID
- importing
- ev_result = ;v_product .
- endif.
- lr_entity ?= lr_result->get_next( ).
- endwhile.
Navigation ui path - CRM_SRQM_INCIDENT maintained.
but here problem is iam getting dump class cl_crm_bol_entity is not compaitable ,for the purpose of assignment ,with target type \class_cl_bsp_wd_value_node. .
and one more thing here the line,
lr_result = lr_query_service->get_query_result( ).
i am getting all service requests entities,with data is coming..here my requirement is ,Result view-result list -if user select any result value ,and click on zbutton(it is added on result view) what ever u selected object same obect is going to sit in service request creation page of place header level of objectid(product id)..here it is set automatically, then user enter other details manually and he will save the service request .thats it...
Navigation ui path - CRM_SRQM_INCIDENT
iv_ui_object_action - D is for create page of service request.
could you please provide me any comments here.
Thanks & Regards
Kalpana