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 a web page with in abap program

Former Member
0 Likes
2,217

hi every body,

Is there any way of calling a web page or bsp application from with in the abap program, so that the browser and web application can be initiated from with in the sap automatically.

(we should not perform any manual entries or interactions)

thanks in advance,

regards,

mounika.

hi every body,

Is there any way of calling a web page or bsp application from with in the abap program, so that the browser and web application can be initiated from with in the sap automatically.

(we should not perform any manual entries or interactions)

thanks in advance,

regards,

mounika.

8 REPLIES 8
Read only

Former Member
0 Likes
1,365

u need to attach the web page or bsp to the abap...this can be done...once u run the page is displayed.

Read only

suresh_datti
Active Contributor
0 Likes
1,365

use the fm <b>call_browser</b>

~Suresh

Read only

0 Likes
1,365

Hi Suresh,

Thank you very much for your reply. Can I know whether this function module "call_browser" is supported by lower versions of SAP i.e from 3.0A onwards?

Please let me know.

Thanks in advance,

regards,

mouni.

Read only

0 Likes
1,365

for older releases you can use FM WS_EXECUTE

pass the url to commandline parameter (say http://www.yahoo.com) and

pass the location of the IE exe to program parameter (C:\Program Files\Internet Explorer\iexplore.exe)

Regards

Raja

Read only

0 Likes
1,365

Hi ,

Use FM :

  CALL FUNCTION 'CALL_BROWSER'
   EXPORTING
     url                           = w_url
*   WINDOW_NAME                  = ' '
    new_window                   = 'X'
*   BROWSER_TYPE                 = BROWSER_TYPE
*   CONTEXTSTRING                = 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.

Read only

Former Member
0 Likes
1,365
Read only

amit_khare
Active Contributor
0 Likes
1,365

Hi,

you may use class.

method fill_html.

call method html_viewer->show_url exporting url = c_myurl.

endmethod.

Regards,

Amit

Read only

athavanraja
Active Contributor
0 Likes
1,365

you want to call a webpage and show that within the sapgui environment? or call a web url to collect data?

Regards

Raja