Skip to Content
Former Member
Oct 08, 2012 at 01:56 PM

Hyperlink in Smartform triggered as an attachment to Email via Actions



Prior to posting my question I would like to mention that I have gone through all the hyperlink-smartform related threads in the forum and could accomplish 90% of my requirement with its help.

Now coming to the issue I am facing,

I have used a Callback URL FM where I am creating a dynamic URL (Dynamic Part is the GUID of CRM Lead), this URL runs into almost 220 Characters.

1) In my first approach, I was updating this URL to structure DATA[] in the callback Fm directly, but I noticed it was resulting into a dump in the FM- SSFCOMP_CONVERT_OTF_C2X called at the time of Smartform Close (SSF_CLOSE) as there is a limit of I think 2-digit length of URL.

2) Since I could not have truncated my URL(http://www.<domain>:8000/sap/bc/bsp/sap/crm_ui_start/default.htm?crm-object-type=BT108_LEA&crm-object-action=B&saprole=ZSALESPRO&object-value=000C29CDCAB01ED284A6F29A2A751FAE) any further, I tried splitting the URL and appending them in DATA[] structure with the Code Type as 'LK' indicating Link.

With this approach, I was able to get the intended URL masked under my hyperlink in the final Smartform output which has been emailed to a recipient.

But when I clicked on the Link I noticed there were blank characters %20%20%20%20 embedded in the URL after each line of DATA[] due to this my URL was not directing me to the CRM Webui Page.

I tried condense no-gaps approach but the result remains the same.

If you have any ideas/suggestions on how the %20 Character can be removed from the URL before the output is rendered,

kindly suggest.