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: 

http request from abap program.

Former Member
0 Kudos

Hi All,

Can anybody tell me how to make an HTTPS call from an abap program.

Thanks,

Albert.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi

Use th FM CALL_BROSWER

regards

6 REPLIES 6

Former Member
0 Kudos

Hello,

Use the FM WS_EXECUTE

If useful reward.

Vasanth

Former Member
0 Kudos

hi

Use th FM CALL_BROSWER

regards

0 Kudos

sorry it is CALL_BROWSER

in exporting parameter pass the url.

Regards

0 Kudos

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

sourabhshah
Advisor
Advisor
0 Kudos

hi

the ws_execute is obsolete you have to use FM 'GUI_EXEC'

Regards,

Sourabh

Former Member
0 Kudos

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