cancel
Showing results for 
Search instead for 
Did you mean: 

Hyperlink in Email using Send Mail Activity

rajesh_akarte2
Active Participant
0 Kudos

Hi,

I have a requirement, in which I need to send the hyperlink in a Email for displaying the CRM quotation document.

I have pasted the link like this <A href="googlehttp://www.google.com">google</A> in Send Mail activity.

My requirement is only google should appear in the Email and when the user clicks on that it should open the link www.google.com.

I am able to see google as per my requirement and able to open the link from SOST but in Email it appears as <A href="googlehttp://www.google.com">google</A>.

Please suggest how can I format this URL.

I don't want to write the logic using SO_NEW_DOCUMENT_ATT_SEND_API1 FM, I want to use only standard Send Mail acitvity.

Regards,

Rajesh Akarte

Accepted Solutions (1)

Accepted Solutions (1)

suresh_subramanian2
Active Contributor
0 Kudos

Hello Rajesh !

           Change the format as follows :

                       <A HREF="http://www.google.com">

                       www.google.com

                       </A>

Regards,

S.Suresh.

rajesh_akarte2
Active Participant
0 Kudos

Hi Suresh,

.

Thanks for the reply. But is not the solution. I have tried to do the following thing and upto certain exten it worked.

I have maintained the Output format for RAW text as HTM in SCOT transaction.

Now the format is coming correctly. But now new problem arised. Complete mail is coming in one line.

any clue.

suresh_subramanian2
Active Contributor
0 Kudos

Hello !

       Please try the following format :

             <a href="www.google.com">Google</a>

       It should work now. The complete mail in one line could be due to change in the RAW text output format for SAP documents. Change the RAW text to TXT.

Regards,

S.Suresh.

rajesh_akarte2
Active Participant
0 Kudos

Hi,

I have finish this requirement and have followed below process to to achieve this.

Mail IN HTML with Hyperlink

1. Mail sent by send mail activity is in text format.

  SCOT setting should be maintained for converting the RAW text to HTM format.

Procedure to maintain the above setting is as below.

i.              Go the transaction SCOT and click on SMTP.

ii.             Click on SET button opposite to Internet.

iii.            Select drop down entry as HTM for RAW text.

iv.            If HTM option is not available in the drop down list then, maintain the entry for this in the table SXCONVERT2.

v.             Save and come out of the transaction.

2. Above setting in SCOT will convert the text mail into HTML, but it will come in a single line.

To do the alignment we write the complete mail in send mail activity in HTML format.

Open the sap script editor for writing the mail .

i.e.

*   <html>

*   <body>

*   Hi,<(><<)>br>

*   <(><<)>br>

*   Please Approve the Quotation &QUOTATION.OBJECT_ID& .<(><<)>br>

*                                                                          

*   &HYPERLINK1&

=   &HYPERLINK2&

=   &HYPERLINK3&

=   &HYPERLINK4&<(><<)>br>

*   <(><<)>br>

*   Regards<(><<)>br>

*   System Admin<(><<)>br>

*   <(><<)>br>

*   </body>

*   </html>

&HYPERLINK1& 2,3 and 4 are variables which contains the weblink for displaying the quotation.

Hyperlink I had to display contained more that 255 chars so I divided the address into 4 variables each variable has the length 72.

For displaying the hyperlink in a mail as only one text use the format as below

<a href="www.google.com">Google</a>

This way we can send the hyperlink through send mail activity.

I hope it will solve many peoples problem.

Regards,

Rajesh Akarte

Jocelyn_Dart
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Rajesh,

More people will see this if you write a blog post so I would encourage you to do that.  Then you can explain more clearly why your site wanted this and what challenges you faced in getting this working.

rajesh_akarte2
Active Participant
0 Kudos

Yes Jocelyn, I will surely do that.

naresh_bammidi
Contributor
0 Kudos

Hi Rajesh,

We have created a webdynpro application which creates costcenter.when i click on submit button it should trigger work flow with a mail, which contains the url of application.For that i am using the FM SAP_WAPI_CREATE_EVENT and passing url through the input  container.But in work flow i am not getting the URL value which i passed.can u please tell me  what would be the issue.

Thanks

Naresh

rajesh_akarte2
Active Participant
0 Kudos

Hi Naresh,

Check the below link for, it may help.

http://beepdf.com/doc/104680/complete_guide_for_events_in_workflows_in_sap_ecc_6_0.html

If it doesn't help then, let me know how r u passing the value to the container.

naresh_bammidi
Contributor
0 Kudos

Thanks for your input,

I haven't binded the event parameter to workflow container element.Issue resolved

Thanks

Naresh Bammidi

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Rajesh,

I followed your steps but the HTML tags still got displayed.

And my link that are less than 100 characters still gets truncated.

What might went wrong?

Thanks.

0 Kudos

Hi Rajesh,

I need an urgent help from you. This is about your reply in SDN.

I need to display hyperlink in email.

But I got hyperlink as below.

I have seen your reply for the hyperlink issue in

Then I added new value 'HTM' to the table SXCONVERT2

But I am getting error message in SOST

when i changed the RAW TYPE to HTM in SCOT.

Coding relevant to hyperlink

But In SOST, hyperlink is working successfully.

I dont know the reason why mail is not getting triggered now.