Using class method CL_ABAP_BROWSER => SHOW_URL to display a web site URL to the user. Below is the documentation, parameters and attributes of ABAP Method SHOW_URL within SAP class CL_ABAP_BROWSER including a number of ABAP code snippet examples to help you implement this method.
This method is available within SAP systems depending on your version and release level and you can view further information by entering the class name CL_ABAP_BROWSER into relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in. Also check out the Contribute below to view or add related hints, tips, example screenshots and any other information.
Class: CL_ABAP_BROWSER
Method: SHOW_URL
Method Type: Static Method
This is a Static Method so you can call it directly
Importing Parameters:
Below is a list of importing parameters associated with this method, including its name, description and data type
BUTTONS " Navigation Keys navigate_... TYPE NAVIGATE_HTML
CONTAINER " Abstract Container for GUI Controls TYPE REF TO CL_GUI_CONTAINER
CONTEXT_MENU " Display context menu in browser TYPE ABAP_BOOL
FORMAT " Landscape/portrait format TYPE STRING
MODAL " Display as Modal Dialog Box TYPE ABAP_BOOL
POSITION " Position TYPE STRING
SIZE " Size (S,M.L,XL) TYPE STRING
TITLE " Window Title TYPE CL_ABAP_BROWSER=>TITLE
URL " URL TYPE CSEQUENCE
Exceptions:
N/A
Example ABAP coding template
DATA:
ld_BUTTONS TYPE NAVIGATE_HTML,
ld_CONTAINER TYPE REF TO CL_GUI_CONTAINER,
ld_CONTEXT_MENU TYPE ABAP_BOOL,
ld_FORMAT TYPE STRING,
ld_MODAL TYPE ABAP_BOOL,
ld_POSITION TYPE STRING ,
ld_SIZE TYPE STRING ,
ld_TITLE TYPE CL_ABAP_BROWSER=>TITLE ,
ld_URL TYPE CSEQUENCE.
"Populate template fields
" ld_BUTTONS = "
" ld_CONTAINER = "
" ld_CONTEXT_MENU = "
" ld_FORMAT = "
" ld_MODAL = "
" ld_POSITION = "
" ld_SIZE = "
" ld_TITLE = "
" ld_URL = "
"Call ABAP METHOD using template fields above
CALL METHOD CL_ABAP_BROWSER=>SHOW_URL(
EXPORTING
BUTTONS = ld_BUTTONS
CONTAINER = ld_CONTAINER
CONTEXT_MENU = ld_CONTEXT_MENU
FORMAT = ld_FORMAT
MODAL = ld_MODAL
POSITION = ld_POSITION
SIZE = ld_SIZE
TITLE = ld_TITLE
URL = ld_URL ).
Fully working example ABAP code snippet
*& TITLE: Display URL web address
*&-------------------------------*
*& Report ZCALL_URL
*&-------------------------------*
*& Simple ABAP code to call and display any website URL with
*& your SAP GUI
*&-------------------------------*
REPORT ZREP_CALLURL.
PARAMETERS: p_url type string DEFAULT '//www.se80.co.uk'.
********************
*START-OF-SELECTION.
START-OF-SELECTION.
*Call website URL and display contents within SAP dialog window
CALL METHOD CL_ABAP_BROWSER=>SHOW_URL
EXPORTING
URL = p_url
TITLE = 'My Browser Window'
SIZE = CL_ABAP_BROWSER=>LARGE "MEDIUM/LARGE/XLARGE
MODAL = ABAP_TRUE
PRINTING = ABAP_FALSE
BUTTONS = 'X'
FORMAT = CL_ABAP_BROWSER=>LANDSCAPE
POSITION = CL_ABAP_BROWSER=>TOPLEFT
* CONTAINER =
CONTEXT_MENU = ABAP_FALSE.
Output of example ABAP program above
First load the code into a new ABAP report

Then execute the program via SE38 or SE80 and enter an example URL

URL will then be output in a popup window

