Skip to Content
author's profile photo Former Member
Former Member

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

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=ZCUSTCRE&ACTION=CREATE&IS_CREQ_MODE=X&WDCONFIGURATIONID=BS_OVP_CU_CL&SAP-CLIENT=100&SAP-LANGUAGE=EN

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Nov 13, 2015 at 01:32 PM

    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 .


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 16, 2015 at 06:25 AM

    Hi Kavya,

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

    Thanks and Regards,

    Venkata

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.