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
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
ld_url = '../index.htm'.
CALL FUNCTION 'CALL_BROWSER'
url = ld_url.