Application Development and Automation 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: 
Read only

http request from abap program.

Former Member
0 Likes
804

Hi All,

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

Thanks,

Albert.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
741

hi

Use th FM CALL_BROSWER

regards

6 REPLIES 6
Read only

Former Member
0 Likes
741

Hello,

Use the FM WS_EXECUTE

If useful reward.

Vasanth

Read only

Former Member
0 Likes
742

hi

Use th FM CALL_BROSWER

regards

Read only

0 Likes
741

sorry it is CALL_BROWSER

in exporting parameter pass the url.

Regards

Read only

0 Likes
741

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

Read only

sourabhshah
Product and Topic Expert
Product and Topic Expert
0 Likes
741

hi

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

Regards,

Sourabh

Read only

Former Member
0 Likes
741

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