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: 

HTML Address in ABAP Code

Former Member
0 Kudos
81

I have created some new R/3 screens that are viewed within MSS. On one of these screens I want to add a web address on the screen that users can click on the address and a separate screen opens up to the web page.

3 REPLIES 3

Former Member
0 Kudos
56

Hi,

Refer to the Report program

DD_ADD_LINK

There is a link to "http://www.mysap.com/"

using

CALL METHOD do->add_link EXPORTING text = text

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

Hope it helps...

Lokesh

pls. reward appropriate points

laxmanakumar_appana
Active Contributor
0 Kudos
56

Hi,

You can do in this way , add an input/output field with the specified URL in display mode with double click event checkbox selection. if user clicks on this field , then under sy-ucomm value 'PICK' ,write the code to open another screen with the class cl_gui_html_viewer for html page display .

Laxman

0 Kudos
56

for lists you can use this.

WRITE: / 'click here to go to' .

FORMAT HOTSPOT ON.FORMAT INTENSIFIED ON.

WRITE: 'www.google.com'. HIDE URL_TABLE.

FORMAT HOTSPOT OFF.FORMAT INTENSIFIED OFF.

AT LINE-SELECTION.

data: fnam(40) ,

fval(300) .

get cursor field fnam value fval .

CALL FUNCTION 'CALL_BROWSER'

EXPORTING

URL = fval

  • WINDOW_NAME = ' '

  • NEW_WINDOW = ' '

  • BROWSER_TYPE = BROWSER_TYPE

  • CONTEXTSTRING = CONTEXTSTRING

EXCEPTIONS

FRONTEND_NOT_SUPPORTED = 1

FRONTEND_ERROR = 2

PROG_NOT_FOUND = 3

NO_BATCH = 4

UNSPECIFIED_ERROR = 5

OTHERS = 6

.

IF sy-subrc <> 0.

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

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

ENDIF.

Regards

Raja