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

Email URL as link

Hi,

Am using the following code to generate the emails. The URL is displaying as normal text , But i would to display it as a 'link' tht can be actioned by an user. Any suggestion on this pls.

Data: lt_objtxt type table of solisti1.

wa_objtxt = 'http://test.................................'. <-- URL link

append wa_objtxt to lt_objtxt.

*then using the fm

*Sending the document

CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

EXPORTING

document_data = wa_doc_chng

put_in_outbox = 'X'

commit_work = 'X'

TABLES

packing_list = lt_objpack

object_header = lt_objhead

contents_bin = lt_objbin

contents_txt = lt_objtxt

receivers = lt_reclist

EXCEPTIONS

too_many_receivers = 1

document_not_sent = 2

operation_no_authorization = 4

OTHERS = 99.

Regards,

Kumar

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Sep 23, 2009 at 11:25 AM

    You can use this to display

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2009 at 11:32 AM

    Hi Kumar,

    You can use this Method :-

    cl_gui_frontend_services=>execute

    exporting

    document = url.

    Regards,

    Prakash

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2009 at 11:34 AM

    in the message body table, pass a HTML code.

    like <a href ... >

    it will work

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2009 at 11:42 AM

    Hi, Try this way.

    wa_objtxt = '<a href="https://forums.sdn.sap.com/post!reply.jspa?messageID=8198866" target="_new"><color font=red>your link name</font></a>'.
    Thanks Venkat.O

    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.