Skip to Content

CRM hyperlink issue. unable to send mail by clikcing on hyperlink.

Dear All, we have installed CRM in our organization. In CRM whenever i am going in Account -> account management -> search party name and then trying  to send him mail by clicking on hyperlink but outlook window is not pop-up on that time. can any buddy tell me how to do that configuration.please help me...

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jan 02, 2015 at 09:21 AM

    Hi Parikshit,

    By default the below shows up on click of hyperlink of email.

    Do you have problem in opening this ? Kindly explain your problem in a bit detail.

    Thanks,

    Ritu


    mail.png (30.1 kB)
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Parikshit Galande

      HI Parikshit,

      Open Component BP_ADDR->view BP_ADDR/StandardAddress and put a debugger in EH_ONEMAIL event on line 51.


      IF lv_dyn_nav_supported = abap_true.

      Check if the above line evaluates to true or false.

      Thanks,

      Ritu

  • Jan 02, 2015 at 01:07 PM

    Hello Ritu,

    we have only following code in BP_ADDR component.


    BP_ADDR SNAP.jpg (299.0 kB)
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Parkshit,

      See the below screenshot to find the EH_ONEMAIL event for BP_ADDR component.

      Put a debugger on line 51.


      IF lv_dyn_nav_supported = abap_true.

      Check if the above line evaluates to true or false.

      Thanks,

      Ritu

      Untitled.png (55.6 kB)
  • Jan 05, 2015 at 12:19 PM

    Hello Parkshit,

    to achieve your goal you'll need to redefine a get_p-method of the appropriate field. I can guess you're talking about STRUCT.E_MAILSMT field from STANDARDADDRESS context node of BP_ADDR/StandardAddress view. So go ahead and completely redefine the GET_P_E_MAILSMT method with the code below. It will switch to client-side click instead of server-side and also will provide correct onclick value (as "mailto:" concatenated with email address) which will make an outlook new mail popup when pressed.

      CONSTANTS mc_protocol TYPE string VALUE 'mailto:'.
    
      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. "cl_bsp_dlc_view_descriptor=>field_type_event_link.
          ELSE.
            rv_value = cl_bsp_dlc_view_descriptor=>field_type_input.
          ENDIF.
        WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
          " rv_value = 'email'. "#EC NOTEXT
    rv_value = me->collection_wrapper->get_current( )->get_propery_as_string( iv_attr_name = 'E_MAILSMT' ).   
                    IF NOT rv_value CP |{ mc_protocol }*| AND rv_value IS NOT INITIAL.
                                    rv_value  = mc_protocol && rv_value .
                    ENDIF.
      ENDCASE.
    

    Hope this will help you.

    Add comment
    10|10000 characters needed characters exceeded