This website is not affiliated with, sponsored by, or approved by SAP AG.

[resolved] long URL link within Smartform send via email

Development SAPscript/ Smartforms

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

[resolved] long URL link within Smartform send via email

Postby RavekiD » Tue Feb 16, 2010 9:01 am

Hi,

Very interesting one, maybe someone did before.

How to get quite long url (several lines in smartform) into e-mail as normal http link?
I've tried <a href=""></a> but in email it still splits link into 3 lines and it looks ugly.

That wouldn't be a problem within adobe forms, but these old smartforms... :(

Wondering if anyone came across something like that and somehow managed to solve it?

Thanks in advance!
Last edited by RavekiD on Tue Feb 16, 2010 10:15 am, edited 1 time in total.
think 1 minute longer
RavekiD
 
Posts: 323
Joined: Thu Aug 18, 2005 5:29 am
Location: Planet Earth

Re: long URL link within Smartform send via email

Postby Gothmog » Tue Feb 16, 2010 9:54 am

Hi,

Report SF_XSF_DEMO_MAIL seems to be worth a look.

After you get the form data in an html string (in form SEND_WEBFORM, after calling FM SCP_TRANSLATE_CHARS), you can search and replace the substring
Code: Select all
<a href="(your_url)">(your_url)</a>
with
Code: Select all
<a href="(your_url)">(your_truncated_url)</a>

(regular expressions may be useful for that)

PS: moved to the Smartforms forum
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1941
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: long URL link within Smartform send via email

Postby RavekiD » Tue Feb 16, 2010 10:14 am

Well, I don't have smartform as text, this is done by standard SAP functionalities.

Simple <%W></> tag helped me, plus I had to resize main window in full size of page (A4), otherwise it was creating spaces.
think 1 minute longer
RavekiD
 
Posts: 323
Joined: Thu Aug 18, 2005 5:29 am
Location: Planet Earth


Return to SAPscript/Smartforms

Who is online

Users browsing this forum: No registered users and 3 guests





loading...


This website is not affiliated with, sponsored by, or approved by SAP AG.