Call web URl from ABAP report or SAP help documentation

Calling a web page using ABAP code is very easy, simply use the function module CALL_BROWSER and pass it the URL of your web page into its exporting parameter. When executed it will open the web page in a new window.

This can also be used to add a URL link to any SAP help documentation which you create yourself for new Z reports or modify standard SAP F1 help text via transaction CMOD. To do this simple create an ABAP program/report containing the below code and assign it a transaction code.

Then within the documentation editor select the menu option Insert->Link.


Now set the link type (Document class) to Transaction link and enter the transaction code you have just created.


This will add code similar to this to the documentation text '<DS:TRAN.ZNEWTCODE>CICK HERE</>'. Also enter a name which will become the hyper link text i.e. the text the user will click on


Now when you view the documentation i.e. via the I button on your ABAP report you will see the link to the tcode and if that tcode executes function module CALL_BROWSER as described above it will call that URL specified.


ABAP Code to Call Web URL

data ld_url(1000).
ld_url = '../index.htm'.
CALL FUNCTION 'CALL_BROWSER'
 EXPORTING
 url = ld_url.

Related Articles

Beginners Guide to learning SAP development starting with logging into SAP
ABAP Programming EVENTS in SAP
ABAP Function Module basics in SAP
DATA and @DATA Inline ABAP declarations available from release 7.40 to help make your code cleaner and more readable
ABAP Workbench Programming Techniques - BC402
ABAP rules to consider before creating a bespoke abap report or program
ABAP Subroutine basics in SAP
Get access to an SAP system for individual needs
SAP Base 64 encoding and decoding using ABAP code
Direct download, downloading sap objects
SAP Icons
SAP icons and some ABAP code to display them
SAP icons list and their associated codes
Internal Program Environment diplays all internal/external objects and operations used by an SAP program
minisap installation on your local pc to allow ABAP development, your own local SE80
SAP minisap installation on your local pc to allow ABAP development for free
SAP module based information such FI, HR, MM, PM, BW etc
Need an SAP ABAP program created?
SAP repository objects - List of useful standard and bespoke SAP repository objects
Retrieve SAP objects using transport entry in SE10 to restore objects that have been deleted
SAP Help for all areas for SAP ABAP Development inc ABAP, ALV, Web dynpro, bsp, HR, BW
ABAP tutorial - Logging into an SAP system for the first time
Manage and delete SAP sessions using ABAP code
SAP module areas
Increase & Decrease size of SAP editor text
ABAP development information and code examples for producing be-spoke SAP functionality
ABAP Development Info - Example code and information on various areas of ABAP development
SAP command field entries - box in top left corner
Force new page when printing abap source code
ABAP FIELD SYMBOL - Techniques for manupulating data using the FIELD-SYMBOL statement
Hiding ABAP Source Code so that it can not be viewed by anyone
ABAP Internal table declaration - Various methods of creating internal data structures and tables
Parameter ID - ABAP code to demonstrate how to set and get a parameter ID
RANGE statement - Example ABAP code to demonstrate the RANGE command
Change SAP logo in top right hand corner of SAP client
ABAP SELECT statement within SAP - Example ABAP code to demonstrate the SELECT command
Create desktop Shortcut to SAP function
SAP Note assistant - Using transaction SNOTE to read and apply OSS note fix
VARYING command - Example ABAP code to demonstrate the VARYING command
Creating your first helloworld ABAP report in SAP