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

Re: How to send Email to customer when clicked on hyperlink on SAP CRM web UI

$
0
0

Hi Kavita,

 

You should leverage the design used by SAP, on the BP view the email address has the same feature implemented.

Basically you should call an event on click of the hyperlink (by coding in p getter) check GET_P_E_MAILSMT of context node STANDARDADDRESS of component/view: BP_ADDR/StandardAddress . In the view controller class you can see the method EH_ONEMAIL which has the code to open standard Email activity view in CRM.

 

Alternatively if you looking for easier solution & to open that email with your mail client use below code in P getter.

 

CASE iv_property.     WHEN if_bsp_wd_model_setter_getter~fp_fieldtype.       IF IV_DISPLAY_MODE = abap_true.         rv_value = cl_bsp_dlc_view_descriptor=>field_type_link.       ELSE.         rv_value = cl_bsp_dlc_view_descriptor=>field_type_input.       ENDIF.     WHEN if_bsp_wd_model_setter_getter=>fp_onclick.       me->collection_wrapper->find( iv_index = iv_index ).       me->collection_wrapper->get_current( ).       lv_string = me->GET_<<attribute_name>>( attribute_path = '<<attribute_name>>' ).       CONCATENATE 'mailto:' lv_string INTO lv_string.       rv_value = lv_string.                                  ENDCASE.


Hope it will help.


Regards,

Shobhit


Viewing all articles
Browse latest Browse all 7775

Trending Articles