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

open a website link

Former Member
0 Likes
378

Hi ABAPERS could someone help with opening a website link say "sdn.sap.com" from within an ABAP Program.

All Helpful replies would be rewarded.

Cheers,

Chaitanya.

Hi ABAPERS could someone help with opening a website link say "sdn.sap.com" from within an ABAP Program.

All Helpful replies would be rewarded.

Cheers,

Chaitanya.

2 REPLIES 2
Read only

Former Member
0 Likes
358

Hi

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

Max

Read only

Former Member
0 Likes
358

Hi Chaitanya,

I did it in below way...


data : url TYPE string.
url = 'https://www.sdn.sap.com'.

CALL FUNCTION 'WS_EXECUTE'
EXPORTING
program = 'C:Program FilesInternet ExplorerIEXPLORE.EXE' " the drive in which os is installed
commandline = url
INFORM = ''
EXCEPTIONS
PROG_NOT_FOUND = 1.
IF SY-SUBRC <> 0.
WRITE:/ 'Cannot find program to open Internet'.
ENDIF.

Hope ur problem is solved now..

<b>Reward points if useful..</b>

Thanks & Regards

ilesh 24x7