Tutorial Name

Calling browser from SAP ABAP

Tutorial Description

Calling a browser from SAP ABAP using CALL_BROWSER Function module, call browser from ABAP

Tutorial Area Core ABAP
Prerequisites ABAP
Learning Level Basic
Estimated Time to learn 5
Save to Learning List Save to your Learning List
+ -

As a part of our day to day developments, some time we may need to call external website from a ABAP program or from SAP transaction, we can call a web browser from SAP program using CALL_BROWSER.

Example program for calling browser in SAP ABAP

CALL FUNCTION 'CALL_BROWSER'
  EXPORTING
    URL        = 'http://www.sapnuts.com'
*   WINDOW_NAME                  = ' '
    NEW_WINDOW = 'X'
*   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 EQ 0.
  WRITE:/ 'Browser is opened'.
ENDIF.

Author | Last Updated| | 0 Comments | F Share

Tutorial Comments

Total Comments: Add your Comment

Leave a Comment

Enter Comment Text