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: 

How to create a hyperlink for the text in the SO10 object

Former Member
0 Kudos
6,194

hi

How to create a hyperlink for the text in the SO10 object which will be send via mail to the user?

I am having text of 117 char for which hyperlink needs to be created.

I have to use this in the SO10 object.

However i can not paste a link in one single line as its to long.

It takes atleast 2 lines.

So link showed in mail having the hyperlink for first line only.

How to create a link for entire text of 2 lines.?

11 REPLIES 11

Former Member
0 Kudos
1,347

Hi,

use function READ_TEXT, with:

ID = id in SO10

LANGUAGE = language of text in SO10

NAME = name of object in SO10

OBJECT = 'TEXT' constant

former_member186143
Active Contributor
0 Kudos
1,347

with the = sign you can say that the lines continues in the next line in so10

you perhaps have to switch to the old editor for this . but with the new he should do it automaticaly as a long line

kind regards

arthur

0 Kudos
1,347

Example:

you create text in SO10 this way:

Text name: Z_MY_TEXT

Text id: ST

Language: EN

and text:

"Text line 1

Text line 2 ok ok"

So, in your program, you have to put this code:

CALL FUNCTION 'READ_TEXT'

EXPORTING

id = 'ST'

language = 'EN'

name = 'Z_MY_TEXT'

object = 'TEXT'

TABLES

lines = t_itab.

So, t_itab should have 2 lines:

- Text line 1

- Text line 2 ok ok

Former Member
0 Kudos
1,347

Hi Sam,

Could you please explain how did you solve this issue?

Thanks a lot!

Renu

Former Member
0 Kudos
1,347

Hi,

I have a similar requirement that i have mail content which has to be maintained in SO10 text.

In that text i have 5-6 hyper text links to be displayed.I never worked on this Hyperlinks in standard texts

Could you please let me know the procedure how to create Hyper texts in SO10.

Vijetha

0 Kudos
1,347

Hi Vijetha,

Try using HTML script in your SO10 object, as follows :

e.g : -

To goto SAP Help Page <a href="http://www.help.sap.com">click here</a>. 
This will open SAP Help Library. 

Hope this will help u ...

0 Kudos
1,347

Hi Amit,

Solution provided by you is working when the link length is one line but it is not working for more than one line

Eg: say link is https://......80 [80 characters long]

I will give    <a href="https://...72            [in first line]

                 73..80">click here</a>         [in second line]

I will get the output as 73...80">click here
But i want only CLICK HERE in my output..

Please suggest solution.

Thanks,

Kavya

kavya_2017
Explorer
0 Kudos
1,347

Hi Samir,

Even i am facing the similar issue.

1st line has hyperlink but not the second line.

Can you please let me know the solution implemented.

Thanks,

Kavya

0 Kudos
1,347

Hi Kavya,

Have you found solution for this, will you please share it.

Thanks In Advance,

P$G.

naveenvishal
Contributor
0 Kudos
1,347

Hi Guys,

Just a suggestion, can't we use URL Shortener, where we provide the full length of URL and it gives us the short URL to be used further.

Try using one from Google. Google URL Shortener - goo.gl/

And that shorten URL we can use in creating hyperlink in SO10.

Hope that helps.

Regards,

Naveen

0 Kudos
1,347

I suggest to check SAP Note: 2314637 - Long URL link from SO10 text is destroyed in email body