Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to put string in <a href> tag in email body

Former Member
0 Kudos

Hi experts,

I have a requirement to give a dynamic link in the body of email.

the dynamic link may look like http://okucis96.od.cssdom.com:8001/sap/bc/webdynpro/sap/bs_ovp_bp?CREQUEST=000000000737&CRTYPE=ZCUST...

I have this link in a variable of type String.

How can i put tis in <a href> tag.

I tried the below code. Its not working.

data : OV_URL type string.


**code to get dynamic link into OV_URL


CONCATENATE '<A HREF="&OV_URL&">' OV_URL '</A>' INTO LS_OBJ_CON.

APPEND LS_OBJ_CON TO LT_OBJ_CON.

Output will be a hyperlink but the link will be something like tis-   saphtmlp://htmlviewer.sap.com/051Mei{P7jMYmAQBsfE7jG/&OV_URL&

Please suggest where im going wrong.

Thanks,

Kavya

1 ACCEPTED SOLUTION

rosenberg_eitan
Active Contributor
0 Kudos

Hi,

The mail body needs to be a text HTML.

What are you using to send the mail ?

The reason I am asking i because of this:

Wild guess

Try

CONCATENATE '<A HREF=' OV_URL '>' OV_URL '</A>' INTO LS_OBJ_CON.

Regards .

4 REPLIES 4

rosenberg_eitan
Active Contributor
0 Kudos

Hi,

The mail body needs to be a text HTML.

What are you using to send the mail ?

The reason I am asking i because of this:

Wild guess

Try

CONCATENATE '<A HREF=' OV_URL '>' OV_URL '</A>' INTO LS_OBJ_CON.

Regards .

0 Kudos

Hi,

I used this.

CONCATENATE '<A HREF="' OV_URL '">' 'CLICK HERE' '</A>' INTO LS_OBJ_CON


Its working fine now.


Thanks,

Kavya.

0 Kudos

Hi,

Very good. have fun

Regards.

Former Member
0 Kudos

Hi Kavya,

  Can you please make this thread as answered; as you get the solution.

Thanks and Regards,

Venkata