Application Development 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: 

Hyperlink problem in Smartform PDF

kesavadas_thekkillath
Active Contributor
0 Kudos
1,225

Dear Friends,

I have an issue in smartform pdf hyperlink. When I click the URL from the PDF, complete URL is not placed into the browser. If I copy and paste the  URL from the pdf  into the browser, it is working fine.

The URL looks like https://ABC.com/KAAcontent/1,,109705,00.html. Here the URL is having ‘,,’ which causes the error, it is treated as a TAB character maybe.

When I click the URL from the PDF, it navigates to ‘https://abc.com/KAAcontent/1’ in the browser, remaining content ‘,,109705,00.html’ is not copied into the browser.

Please find the steps, which I have followed in the development. I have included the images too.

I have maintained the URL in the tcode SO72.

Above maintained URL is called in the standard text.

In SMARTFORMS the variable GV_TERMS will have the text at the runtime.

After Execution of Tcode F150, I have converted form output into PDF using the tcode PDF!

The problem is with the ‘,,’ maintained in the URL because ‘,,’ might be treated as a tab character.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
684

Hi Kesavadas

Thank you for mentioning pdf!

I have limited experience in this area, and the function code came as a surprise.

It calls FM SSFCOMP_PDF_PREVIEW behind the scenes.

Coming to your question, only URL is stored in standard text, and FM CONVERT_OTF creates a hyperlink out of it using some logic. Locating it would need more investigation.

By escaping the comma character, hyperlink can be fixed. Only downside is that display URL wouldn't look that good.

After replacing comma by %2C, corrected dummy URL would be:

https://ABC.com/KAAcontent/1%2C%2C109705%2C00.html

After fixing the URL, hyperlink navigation works. Here is a proof. (image is based on real URL )

4 REPLIES 4

raymond_giuseppi
Active Contributor
0 Kudos
684

Could you try to replace the special character "," with "," or "," in the link ?

Regards,

Raymond

Former Member
0 Kudos
684

Hello Kesav,

I guess the character ',' is a reserved character in a URI. Maybe you could try using the escape character pattern '%XX'  for URI parameters with reserved characters.

This Wikipedia link on URI escape characters might be a good reference.

http://en.wikipedia.org/wiki/Percent-encoding

Hope this helps.

Thanks,

Venkat.

Former Member
0 Kudos
685

Hi Kesavadas

Thank you for mentioning pdf!

I have limited experience in this area, and the function code came as a surprise.

It calls FM SSFCOMP_PDF_PREVIEW behind the scenes.

Coming to your question, only URL is stored in standard text, and FM CONVERT_OTF creates a hyperlink out of it using some logic. Locating it would need more investigation.

By escaping the comma character, hyperlink can be fixed. Only downside is that display URL wouldn't look that good.

After replacing comma by %2C, corrected dummy URL would be:

https://ABC.com/KAAcontent/1%2C%2C109705%2C00.html

After fixing the URL, hyperlink navigation works. Here is a proof. (image is based on real URL )

0 Kudos
684

Thanks Manish,

It worked 🙂

Venkat & Raymond 🙂 ,  thanks for your time and suggestion.

SCN the best

Kesav