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

Call IE in program

Former Member
0 Likes
1,126

How to call internet explorer in the program?

Hi Parveen Yadav,

The best way is to use CALL_BROWSER Function Module

CALL FUNCTION 'CALL_BROWSER'
 EXPORTING
   URL                          = 'www.yahoo.com'
*   WINDOW_NAME                  = ' '
*   NEW_WINDOW                   = ' '
*   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.

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7

3 REPLIES 3
Read only

Former Member
0 Likes
746

use FM

CALL FUNCTION 'CALL_BROWSER'

EXPORTING

URL = 'http://www.sap.com'

Read only

Former Member
0 Likes
746

Hi parveen,

This FM can help you.

CALL FUNCTION 'WS_EXECUTE'

EXPORTING

program = 'C:\Program Files\Internet Explorer\IEXPLORE.EXE'

commandline = 'http://www.taobao.com'

INFORM = ''

EXCEPTIONS

PROG_NOT_FOUND = 1.

Reward points if helpfull.

cheers,

sowjanya.

Read only

Former Member
0 Likes
746

Hi Parveen Yadav,

The best way is to use CALL_BROWSER Function Module

CALL FUNCTION 'CALL_BROWSER'
 EXPORTING
   URL                          = 'www.yahoo.com'
*   WINDOW_NAME                  = ' '
*   NEW_WINDOW                   = ' '
*   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.

Hope it will solve your problem..

Thanks & Regards

ilesh 24x7