Application Development and Automation 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: 
Read only

hyper link getting truncated in mail.

Former Member
0 Likes
522

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.

1 REPLY 1
Read only

BGarcia
Active Contributor
0 Likes
435

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