SAP-Forum.ORG
   
This web site isn't affiliated with, sponsored by, or approved by SAP AG. Is only a SAP users community.

Go Back   SAP-Forum.ORG > SAP Forums > SAPScript - Smartforms

Similar Threads
Thread Thread Starter Forum Replies Last Post
a question about email of sapscript/smartform Ramma SAPScript - Smartforms 2 08-12-2011 01:05 AM
Smartform Error in Price Value SAPMM SAPScript - Smartforms 2 08-05-2011 09:21 PM
Print a Delivery document Pack list output via SMARTFORM ERP SAPScript - Smartforms 2 08-04-2011 08:25 PM
How to send an e-mail to additional recipients as CC Micro SAP CRM 1 05-13-2011 08:01 PM
Open PDF File stored in AL11 and send by email using CL_BCS. Pepa SAP ABAP 2 02-06-2011 06:32 PM

Aprenda SAP!
Reply
 
Thread Tools Display Modes
  #1  
Old 08-26-2011, 01:22 AM
Pepa Pepa is offline
Senior Member
 
Join Date: May 2010
Location: Texas
Posts: 314
Default long URL link within Smartform send via email

Hi,

This is a very interesting one, maybe someone did it 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!
Pepa
Reply With Quote
Sponsors
  #2  
Old 08-26-2011, 01:24 AM
Rima Rima is offline
Senior Member
 
Join Date: May 2010
Location: Kansas
Posts: 280
Default Re: long URL link within Smartform send via email

Hi Pepa,

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:
<a href="(your_url)">(your_url)</a>
with

Code:
<a href="(your_url)">(your_truncated_url)</a>
(regular expressions may be useful for that).

Regards,
Rima
Reply With Quote
  #3  
Old 08-26-2011, 01:25 AM
Pepa Pepa is offline
Senior Member
 
Join Date: May 2010
Location: Texas
Posts: 314
Default Re: long URL link within Smartform send via email

Hi Rima,

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.

Regards,
Pepa
Reply With Quote
Entre a los Links relacionados
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 10:15 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Forum Design By inferno