SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Have active URL-s in the list an ABAP report creates



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> List Generation, LDB, Spool Process, SAP Query, Report Painter
View previous topic :: View next topic  
Author Message
admin
Администратор
Администратор



Joined: 01 Sep 2007
Posts: 1636

PostPosted: Sun Nov 18, 2007 8:17 pm    Post subject: Have active URL-s in the list an ABAP report creates Reply with quote

Code:
REPORT ZIMRETSS NO STANDARD PAGE HEADING.
************************************************************************
* This report 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.
************************************************************************
DATA: BEGIN OF URL_TABLE OCCURS 10,
L(25),
END OF URL_TABLE.

URL_TABLE-L = 'http://www.yahoo.com'.APPEND URL_TABLE.
URL_TABLE-L = 'http://www.kabai.com'.APPEND URL_TABLE.
URL_TABLE-L = 'http://www.ebay.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.

* Graham Hickson (graham.hickson@db.com) recommended a nice way
* to find the Netscape executable from the windows registry.
* This is his solution:
* DATA: buf_netscape(200) TYPE c.
* CALL FUNCTION 'REGISTRY_GET'         "path of NETSCAPE.EXE
*    EXPORTING
*         key     = 'protocol\StdFileEditing\server'
*         section = 'NetscapeMarkup'
*    IMPORTING
*         value   = buf_netscape.
* CALL FUNCTION 'WS_EXECUTE'
*      EXPORTING
*           program            = buf_netscape
*           commandline     = URL_TABLE.

AT LINE-SELECTION.
IF NOT URL_TABLE IS INITIAL.
  CALL FUNCTION 'WS_EXECUTE'
           EXPORTING
   PROGRAM = 'd:\program files\netscape\navigator\program\netscape.exe'
                COMMANDLINE    = URL_TABLE
                INFORM         = ''
           EXCEPTIONS
                PROG_NOT_FOUND = 1.
ENDIF.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> List Generation, LDB, Spool Process, SAP Query, Report Painter All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.