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

Reg attaching hyperlink

Dear Friends,

I am sending mail to users for my requirement. In the message body I need to give some hyper links for example, i have to give some word like "my-hyperlink" in hyperlink and when user click on that link it has to open some URL like "www.sdn.sap.com". Pls let me know how to achieve this functionality?

and its very urgent for me.

Thanks,

Bharath

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 11:33 AM

    Hi,

    Check out this code , just give the link as http://www.sdn.sap.com..

    doc_chng-obj_descr = 'Reminder – MP Signoff'.

    doc_chng-sensitivty = 'P'.

    • Fill the content of the mail

    objcont = 'Dear all,'.

    APPEND objcont.

    CLEAR objcont.

    APPEND objcont.

    CLEAR objcont.

    objcont =

    'The manpower sign-off is pending for the list of employees as per th' &

    'e attached sheet.'

    .

    APPEND objcont.

    CLEAR objcont.

    APPEND objcont.

    CLEAR objcont.

    objcont =

    'Please click on the following link for the manpower sign-off:'.

    APPEND objcont.

    CLEAR objcont.

    CASE syst-sysid.

    WHEN 'GRD'.

    CONCATENATE

    'http://sapbwepdev.geometric.local:50200/irj/servlet/prt/portal/prtro' &

    'ot/pcd!3aportal_content!2fcom.gssl.folders.FL_GSSL_Content!'

    '2fcom.gssl.folders.FL_GSSL_Pages!2fcom.gssl.folders.FL_Deb_Pages!2fc' &

    'om.gssl.pages.Fl_MSS_Page!2fcom.gssl.pages.PG_MSO'

    INTO objcont.

    WHEN 'GRQ'.

    CONCATENATE

    'http://sapbwepdev.geometric.local:50200/irj/servlet/prt/portal/prtro' &

    'ot/pcd!3aportal_content!2fcom.gssl.folders.FL_GSSL_Content!'

    '2fcom.gssl.folders.FL_GSSL_Pages!2fcom.gssl.folders.FL_Deb_Pages!2fc' &

    'om.gssl.pages.Fl_MSS_Page!2fcom.gssl.pages.PG_MSO2'

    INTO objcont.

    WHEN 'GRP'.

    CONCATENATE

    'https://giden.geometricsoftware.com/irj/servlet/prt/portal/prtroot/p' &

    'cd!3aportal_content!2fcom.gssl.folders.FL_GSSL_Content!'

    '2fcom.gssl.folders.FL_GSSL_Pages!2fcom.gssl.folders.FL_Deb_Pages!2fc' &

    'om.gssl.pages.Fl_MSS_Page!2fcom.gssl.pages.PG_MSO'

    INTO objcont.

    ENDCASE.

    APPEND objcont.

    CLEAR objcont.

    DESCRIBE TABLE objcont LINES entries.

    READ TABLE objcont INDEX entries.

    doc_chng-doc_size = ( entries - 1 ) * 255 + STRLEN( objcont ).

    • Creating the entry for the compressed document

    CLEAR objpack-transf_bin.

    objpack-head_start = 1.

    objpack-head_num = 0.

    objpack-body_start = 1.

    objpack-body_num = entries.

    objpack-doc_type = 'RAW'.

    APPEND objpack.

    • Creating the document attachment

    • (Assume the data in OBJBIN are given in BMP format)

    LOOP AT v_joboutput-otfdata INTO wa_otfdata.

    APPEND wa_otfdata TO objbin.

    CLEAR wa_otfdata.

    ENDLOOP.

    DESCRIBE TABLE objbin LINES tab_lines.

    objhead = 'NonSignerDetails.otf'. APPEND objhead.

    • Creating the entry for the compressed attachment

    objpack-transf_bin = 'X'.

    objpack-head_start = 1.

    objpack-head_num = 1.

    objpack-body_start = 1.

    objpack-body_num = tab_lines.

    objpack-doc_type = 'OTF'.

    objpack-obj_name = 'ATTACHMENT'.

    objpack-obj_descr = 'NonSignerDetails'.

    objpack-doc_size = tab_lines * 255.

    APPEND objpack.

    • Sending the document

    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

    EXPORTING

    document_data = doc_chng

    put_in_outbox = 'X'

    commit_work = 'X'

    TABLES

    packing_list = objpack

    object_header = objhead

    contents_bin = objbin

    contents_txt = objcont

    receivers = reclist

    EXCEPTIONS

    too_many_receivers = 1

    document_not_sent = 2

    operation_no_authorization = 4

    OTHERS = 99.

    CASE sy-subrc.

    WHEN 0.

    WRITE: / 'Manpower Sign-off pending Mail: succesfully sent.'.

    WHEN 1.

    WRITE: / 'no authorization to send to the specified number of'.

    "'recipients!'.

    WHEN 2.

    WRITE: / 'document could not be sent to any of the recipients!'.

    WHEN 4.

    WRITE: / 'no authorization to send !'.

    WHEN OTHERS.

    WRITE: / 'error occurred during sending !'.

    ENDCASE.

    regards,

    Santosh thorat

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 01:06 PM

    Hi,

    Thanks for your reply. But i am not displaying my link directly to user instead giving something like "Link" as hyperlink and when user clicks on link it has to go to URL "www.sdn.sap.com".

    Thanks,

    Bharath

    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.