2007 Dec 07 9:01 AM
Hi ABAPERS could someone help with opening a website link say "sdn.sap.com" from within an ABAP Program.
All Helpful replies would be rewarded.
Cheers,
Chaitanya.
Hi ABAPERS could someone help with opening a website link say "sdn.sap.com" from within an ABAP Program.
All Helpful replies would be rewarded.
Cheers,
Chaitanya.
2007 Dec 07 9:11 AM
Hi chiatanya,
Please see the program...and give some good point......
REPORT ZURL NO STANDARD PAGE HEADING.
DATA: BEGIN OF URL_TABLE OCCURS 10,
L(25),
END OF URL_TABLE.
URL_TABLE-L = 'http://www.lycos.com'.APPEND URL_TABLE.
URL_TABLE-L = 'http://www.hotbot.com'.APPEND URL_TABLE.
URL_TABLE-L = 'http://www.sap.com'.APPEND URL_TABLE.
LOOP AT URL_TABLE.
SKIP. FORMAT INTENSIFIED OFF.
WRITE: / 'Single click on '.
FORMAT HOTSPOT ON.FORMAT INTENSIFIED ON.
WRITE: URL_TABLE. HIDE URL_TABLE.
FORMAT HOTSPOT OFF.FORMAT INTENSIFIED OFF.
WRITE: 'to go to', URL_TABLE.
ENDLOOP.
CLEAR URL_TABLE.
AT LINE-SELECTION.
IF NOT URL_TABLE IS INITIAL.
CALL FUNCTION 'WS_EXECUTE'
EXPORTING
program = 'C:\Program Files\Internet Explorer\IEXPLORE.EXE'
commandline = URL_TABLE
INFORM = ''
EXCEPTIONS
PROG_NOT_FOUND = 1.
IF SY-SUBRC <> 0.
WRITE:/ 'Cannot find program to open Internet'.
ENDIF.
ENDIF.
Thanks,
Aditya.
2007 Dec 07 9:15 AM
hi,
try this
CALL FUNCTION 'CALL_BROWSER'
EXPORTING
url = 'SAP-IMG.COM'
new_window = 'X'.
2007 Dec 07 9:16 AM
Hi ,
You can also use the function module CALL_BROWSER.
Thanks,
Aditya.
2007 Dec 07 9:19 AM
Hi Chaitanya,
u can use FM <b>CALL_BROWSER</b>
OR..
I did it in below way...
data : url TYPE string.
url = 'https://www.sdn.sap.com'.
CALL FUNCTION 'WS_EXECUTE'
EXPORTING
program = 'C:Program FilesInternet ExplorerIEXPLORE.EXE' " the drive in which os is installed
commandline = url
INFORM = ''
EXCEPTIONS
PROG_NOT_FOUND = 1.
IF SY-SUBRC <> 0.
WRITE:/ 'Cannot find program to open Internet'.
ENDIF.
Hope ur problem is solved now..
<b>Reward points if useful..</b>
Thanks & Regards
ilesh 24x7