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: 

Program/Report Documentation link to web page

kmoore007
Active Contributor
0 Kudos

Anyone know how to add a hyperlink to a web page when documenting a program in Transaction SE38?

1 ACCEPTED SOLUTION

andreas_mann3
Active Contributor
0 Kudos

Hi Kenneth,

->possible solution:

1) create report zbrowse01 with coding:

CALL FUNCTION 'CALL_BROWSER'

EXPORTING

url = 'https://www.sdn.sap.com/sdn/index.sdn'.

2) create transaction ZSDN01 (program with dynpro) with ta SE93

3) in the editor of your docu:

Insert link
 transaction link 
   with transaction : ZSDN01 and name = test website sdn

Regards Andreas

10 REPLIES 10

Former Member
0 Kudos

maybe, you could use function 'CALL_BROWER'.

CALL FUNCTION 'CALL_BROWSER'

EXPORTING

url = 'http://www.yahoo.com'.

I wish I could help you.

regards

Kyung Woo

andreas_mann3
Active Contributor
0 Kudos

Hi Kenneth,

->possible solution:

1) create report zbrowse01 with coding:

CALL FUNCTION 'CALL_BROWSER'

EXPORTING

url = 'https://www.sdn.sap.com/sdn/index.sdn'.

2) create transaction ZSDN01 (program with dynpro) with ta SE93

3) in the editor of your docu:

Insert link
 transaction link 
   with transaction : ZSDN01 and name = test website sdn

Regards Andreas

0 Kudos

Hello Andreas / Kenneth,

I must admit that this is really an innovative idea. The only shortcoming with it, however, is that the URL is going to be hardcoded. Can we think of how to make it a bit more generic ? I'm trying to get some ideas on that, but in vain...:-(...

Also, have you seen any documentation where you can get such a link ?

Regards,

Anand Mandalika.

0 Kudos

Hi,

i'd suggest to solve that with a parameter transaction

(table tstcp) - but the field (20) is too short

e.g. :

/*zsdn01 url=http://www.metrogroup.de

Message was edited by: Andreas Mann

0 Kudos

Andreas,

I am interested in using this solution, but I can't get step 3 to work. I have tried to use the code in the documentation editor from SE38 with no luck. Can you tell me what I am doing wrong? I am on 4.6C.

0 Kudos

Hi Jason,

this is the syntax in your docu:

<DS:REPN.ZBROWSE01>SDN</>

(zbrowse01 = reportname)

Andreas

0 Kudos

Andreas,

This works well for me. Thanks very much for the advice.

Kind Regards,

Jason

Former Member
0 Kudos

Hi Kenneth,

I have been trying to find out if it is possible to achieve what you want. And my finding is that it is technically not possible to do so. SAP Library has no technical means of <i>checking hyperlinks to the Internet before publication</i>. For this reaso, you can only provide a textual corss-reference to the URL.

There's a document at this link which tells you about the

<a href="https://wservice.sap.com/~sapidb/011000358700001398042004E">General Standards and Guidelines for Writing at SAP</a>.

Just out of curiousity, I have switched over to the <i>Performance Assistant</i> mode of F1 Help (under the menu path Help-->Settings). This, as you may be aware shows you the documentation in the HTML format. I tried to change the link during debugging of the F1 button and in that case, it works.

SAP recommends using only a textual cross-reference. But if you are bent on achieving what you want, then what you're actually looking at is a MOD to the standard SAP Program. I have a feeling that it may not really be worth it, and may cause some serious problems if not handled properly. It is now up to you to decide whether you want to do it, or whether you can make do with a textual reference.

Regards,

Anand Mandalika.

0 Kudos

hi frenz,

therez one more way we do this. I have given both method here with examples.

PARAMETERS url LIKE soli-line.

method 1:

CALL FUNCTION 'CALL_BROWSER'

EXPORTING

url = url

window_name = 'call_browser_default_window'

new_window = 'x'

BROWSER_TYPE =

contextstring = 'Browser'.

IF sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

method 2:

addr = 'http://www.sapgenie.com'.

CALL FUNCTION 'CALL_INTERNET_ADRESS'

EXPORTING

PI_ADRESS = url.

    • PI_TECHKEY =

    • EXCEPTIONS

    • NO_INPUT_DATA = 1

    • OTHERS = 2

Both working very well....

Lemme me know we have anymore method.....

with regards,

praveen.

0 Kudos

forgot to tell u,

soli-line is the standard type for url... So u shall use that.(structure SOLI, field LINE)

with regards,

praveen