12-21-2006 1:23 PM
Hi All,
Can anybody tell me how to make an HTTPS call from an abap program.
Thanks,
Albert.
12-21-2006 1:31 PM
12-21-2006 1:24 PM
12-21-2006 1:31 PM
12-21-2006 1:32 PM
sorry it is CALL_BROWSER
in exporting parameter pass the url.
Regards
12-21-2006 1:33 PM
Use Ws_execute.
CALL FUNCTION 'WS_EXECUTE'
EXPORTING
COMMANDLINE = 'http://name of the url'
PROGRAM = 'IEXPLORE.EXE'
EXCEPTIONS
FRONTEND_ERROR = 1
NO_BATCH = 2
PROG_NOT_FOUND = 3
ILLEGAL_OPTION = 4
GUI_REFUSE_EXECUTE = 5
OTHERS = 6.
Thanks,
Alex
12-21-2006 1:32 PM
hi
the ws_execute is obsolete you have to use FM 'GUI_EXEC'
Regards,
Sourabh
12-21-2006 1:38 PM
Hi,
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 FilesInternet ExplorerIEXPLORE.EXE'
commandline = URL_TABLE
INFORM = ''
EXCEPTIONS
PROG_NOT_FOUND = 1.
IF SY-SUBRC <> 0.
WRITE:/ 'Cannot find program to open Internet'.
ENDIF.
ENDIF.
Regards
Sudheer