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:05 AM
Hi
CALL FUNCTION 'CALL_BROWSER'
EXPORTING
URL = 'www.sdn.sap.com'
* WINDOW_NAME = ' '
* BROWSER_TYPE =
* 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.Max
2007 Dec 07 9:14 AM
Hi Chaitanya,
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