Inserting Website Links in ABAP
*
* ABAP with web links
*
* Creates a list that has a couple of active URL links embedded.
* By single-clicking on these links a web browser will popup and display
* the corresponding web page.
*
* Written by : SAP Basis, ABAP Programming and Other IMG Stuff
*              https://www.erpgreat.com
*
REPORT ZURL NO STANDARD PAGE HEADING.

DATA: BEGIN OF URL_TABLE OCCURS 10,
L(25),
END OF URL_TABLE.

URL_TABLE-L = 'http://www.lycos.com'.APPEND URL_TABLE.
URL_TABLE-L = 'http://www.hotbot.com'.APPEND URL_TABLE.
URL_TABLE-L = 'http://www.sap.com'.APPEND URL_TABLE.

LOOP AT URL_TABLE.
  SKIP. FORMAT INTENSIFIED OFF.
  WRITE: / 'Single click on '.
  FORMAT HOTSPOT ON.FORMAT INTENSIFIED ON.
  WRITE: URL_TABLE. HIDE URL_TABLE.
  FORMAT HOTSPOT OFF.FORMAT INTENSIFIED OFF.
  WRITE: 'to go to', URL_TABLE.
ENDLOOP.
CLEAR URL_TABLE.

AT LINE-SELECTION.

IF NOT URL_TABLE IS INITIAL.

  CALL FUNCTION 'WS_EXECUTE'
       EXPORTING
            program = 'C:\Program Files\Internet Explorer\IEXPLORE.EXE'
            commandline     = URL_TABLE
            INFORM         = ''
          EXCEPTIONS
            PROG_NOT_FOUND = 1.
  IF SY-SUBRC ?> 0.
     WRITE:/ 'Cannot find program to open Internet'.
  ENDIF.

ENDIF.

*-- End of Program

Running ABAP/4 Report on the web
Run or Display ABAP Report over the web

Get help for your ABAP problems
Do you have a ABAP Question?

SAP Books
SAP Certification, Functional, Basis Administration and ABAP Programming Reference Books

ABAP Programming Tips
ABAP and Samples Program Codes for Abapers

Best regards,
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.erpgreat.com

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG. 
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk. 
 The content on this site may not be reproduced or redistributed without the express written permission of 
www.erpgreat.com or the content authors.