2012 Mar 15 6:37 AM
Hi,
I am trying to send a mail, the contents of which include a link, which is more than 255 characters in length. I want the link to appear unbroken when the recipient receives the mail. Even if the link appears in more than 1 line in the inbox, I require that it should be a complete hyperlink, so that once the user clicks on it, it should direct to the appropriate site.
I am using the Function Module: SO_NEW_DOCUMENT_ATT_SEND_API1
The problem here is that, the link is breaking up at 255 characters due to the limitation of the ‘CONTENTS_TXT’ table. I tried using the ‘CONTENTS_HEX’ table instead, but I don’t want the link as an attachment, but in the mail body itself.
Please help.
Thanx in advance.
Hi,
I am trying to send a mail, the contents of which include a link, which is more than 255 characters in length. I want the link to appear unbroken when the recipient receives the mail. Even if the link appears in more than 1 line in the inbox, I require that it should be a complete hyperlink, so that once the user clicks on it, it should direct to the appropriate site.
I am using the Function Module: SO_NEW_DOCUMENT_ATT_SEND_API1
The problem here is that, the link is breaking up at 255 characters due to the limitation of the ‘CONTENTS_TXT’ table. I tried using the ‘CONTENTS_HEX’ table instead, but I don’t want the link as an attachment, but in the mail body itself.
Please help.
Thanx in advance.
2012 Mar 16 2:29 PM
Hi Samiulla,
I would try to send the content of your email as HTML, to avoid that problem.
If so, you can control the line feeds that you put in CONTEXTS_TXT table with HTML tags, such as </br> (break) or </p> (paragraph).
You can even put a name on the hyperlink,so the user don't get bothered with a very large link on his email. Just like explained in this thread:
http://scn.sap.com/message/13110124#13110124
I think you can send it with that function module, if your packing_list parameter you declare your packing list structure with doc_type = 'HTML', but if not, there other ways to do it.
Kind regards,
Garcia