Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Re: in objects result ,if user select any object and if i click the custom button on result directly open to service request creation page in sap crm ?

$
0
0

Hi Sumeeth,

 

i have copied  above code into my event handler method, now proble

 

  1. lr_query_service = cl_crm_bol_dquery_service=>get_instance( 'BTQSrvReq' ). "#EC NOTEXT 
  2. *   Provide search parameters for the query 
  3.      lr_query_service->add_selection_param( iv_attr_name = 'REFOBJ_IOBJECT_ID' 
  4.                                             iv_option    = 'EQ' 
  5.                                             iv_sign      = 'I' 
  6.                                             iv_low       = lv_product_id ). 
  7.      lr_query_service->add_selection_param( iv_attr_name = 'OBJECT_TYPE' 
  8.                                             iv_option    = 'EQ' 
  9.                                             iv_sign      = 'I' 
  10.                                             iv_low       = ' BUS2000223' ). 
  11. *   Fire the query and get the result 
  12.      lr_result = lr_query_service->get_query_result( ). 
  13. lr_entity ?= lr_result->get_first( ).
  14. while lr_entity is bound.
  15. call method lr_entity->if_bol_bo_property_access~get_proeprty_as_value
  16. exporting
  17. iv_attr_name = 'PROCESS_TYPE
  18. importing
  19. ev_result = ;v_process.
  20. if lv_process = 'ZSRS'.
  21. call method lr_entity->if_bol_bo_property_access~get_proeprty_as_value
  22. exporting
  23. iv_attr_name = 'REF_PRODUCT_ID
  24. importing
  25. ev_result = ;v_product .
  26. endif.
  27. lr_entity ?= lr_result->get_next( ).
  28. 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

 

 


Viewing all articles
Browse latest Browse all 7775

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>