Skip to Content
0
Former Member
Apr 16, 2014 at 08:19 AM

Mailto URLs in erec email

198 Views

Hi

I have a requirement in SAP EREC where I require URLs in the email body to mimic the same URLs in the attached PDF. In the registration document sent to candidates the Smartform contains a text element with text set as a URL. The code snippet below then sets the actual URL to the text link.

data lt_url type table of ty_url.
data ls_url type ty_url.


ls_url-name = 'URL1'.
ls_url-url = 'mailto:abc@abc.co.uk'.
append ls_url to lt_url.

ls_url-name = 'URL2'.
ls_url-url = 'mailto:123@123.co.uk'.
append ls_url to lt_url.

ls_url-name = 'Adobe reader'.
ls_url-url = 'http://www.adobe.com/products/acrobat/readstep2.html'.
APPEND ls_url to lt_url.

CALL FUNCTION 'HR_RCF_SF_URL_REFRESH_GT'.

CALL FUNCTION 'HR_RCF_SF_URL_PREPARE_CALLBACK'
TABLES
PT_URL = lt_url[].

When the letter is generated this is fine in the PDF but in the body of the email the actual URL value (i.e. mailto:abc@abc.co.uk) is displayed.In the IMG Settings "SSF_PDF" is set as the format for the output channel "Email". Is it possible to override this behaviour?

Thanks in advance.

Jon.