2006 Feb 22 10:51 AM
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.
2006 Feb 22 11:09 AM
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
2006 Feb 22 11:10 AM
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
2006 Feb 22 11:50 AM
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