Open an HTML file from a SAP Report

Hi all!
I would like to open an HTML file, that`s in a local directory of my PC, from a SAP Report.
It is an alv list, where I have added a pushbotton. And I would like to code the utility of open a local html file, when someone push it.
Anybody knows if it is possible?
Thx

Here is some sample code.
report zrich_0002.
call method cl_gui_frontend_services=>execute
  EXPORTING
    DOCUMENT               = 'C:test.html'
*    APPLICATION            =
*    PARAMETER              =
*    DEFAULT_DIRECTORY      =
*    MAXIMIZED              =
*    MINIMIZED              =
*    SYNCHRONOUS            =
*  EXCEPTIONS
*    CNTL_ERROR             = 1
*    ERROR_NO_GUI           = 2
*    BAD_PARAMETER          = 3
*    FILE_NOT_FOUND         = 4
*    PATH_NOT_FOUND         = 5
*    FILE_EXTENSION_UNKNOWN = 6
*    ERROR_EXECUTE_FAILED   = 7
*    others                 = 8
if sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Please remember to award points accordingly and mark this post as solved when you problem is solved.  Thanks.
Also, Welcome to SDN!!
Regards,
Rich Heilman

Similar Messages

  • When i open any .HTML file from my computer it is not opening in firefox. Only a blank New Window Opens. Facing this problem since the firefox has updated.

    Whenever i try to open any HTML file from my computer, it opens a new firefox window which is blank. Facing this problem after the new update. please fix this problem

    I found that after Firefox v29, a LOT of my settings and<BR>
    add-ons were changed / reset. Try this;
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]'''''
    <BR>While you are in safe mode;<BR>
    '''''Firefox Options > Advanced > General'''''.<BR>
    Look for and turn off '''Use Hardware Acceleration'''.<BR>
    Then check ALL of your settings. Browser and add-ons. Then restart.

  • Help Needed in opening a HTML File from swing application

    Hi,
    I am opening a HTML file in Internet Explorer from my swing application.
    I am using the code given below
    private final static String WIN_FLAG = "url.dll,FileProtocolHandler";
    private final static String WIN_PATH = "rundll32";
    String cmd = WIN_PATH + " " + WIN_FLAG + " " + url;
    // url is HTML file Path
    Process p = Runtime.getRuntime().exec( cmd );
    The HTML file is opening up,but it always opens behind the swing application,that makes me every time to maximize the HTML file after it being opened up.
    I want to open it in front of the Swing Application.
    Any Help Please ?
    - Manikandan

    Check your Application's JFrame properties (may be ur Frame is set to be in top position ,always),and also check running your application in some other OS.

  • How to open a html file from hard disk

    Hello everyone,
    i want to display a html file by using java applet.
    This is my current coding:
    package mkbe.pg;
    import java.net.*;
    import java.applet.*;
    public class HtmlReader extends Applet 
    URL userUrl;
    public void start()
    try{
    userUrl = new URL(getDocumentBase(),"FILE:///c://2007/index.htm");
    }catch(MalformedURLException error){
    System.out.println("Error");
    getAppletContext().showDocument(userUrl,"_blank");
    }the program have no error and warning and the applet did run by appletviewer but the html file did'nt open.
    Is it there's mistake in my coding?
    If there is please tell me how to repair it.
    Thanks

    For an applet to read from a client's harddrive it will need permission.
    This can be done by putting the applet in a jar file and signing it,
    or by using the poiclytool to change the java.policy file to give FilePermission.

  • Open a PDF File from a SSRS Report

    I have a requirement to include a link of some sort on SSRS reports that opens a PDF file.  If this were being implemented in an Access report, a click event using the Application.FollowHyperlink method will do the trick.  Is there an analogous
    method to accomplish this on a SSRS report, please?

    Thanks to Bipin.P !  Although I do not yet have the product installed with which to work, I found the following in the RDL specs.  So, if SSRS functionality is identical to that of an IsHyperlink textbox, our requirement will be satisfied
    easily. 
    Thanks again to all!
    From the SQL Server Reporting Services RDL (Report Definition Language) Specification document, page 41:
    Action
    The Action element defines a hyperlink, bookmark link or drillthrough action associated with a ReportItem.
    Name
    Type
    Description
    Hyperlink
    Expression (URL)
    An expression that evaluates to the URL of the hyperlink (18)
    (18) The Access IsHyperlink property of Textboxes will be supported via this more general mechanism. The Hyperlink property of the Textbox can be set to the same expression as
    the Value property of the Textbox.
    Implemented on an Access Report on 05/06/2010:
    Set the IsHyperlink property of a Textbox to Yes              
    Set the Value property of the Textbox to =”Open PDF File#C:\UPDATES\HelpFiles\UIU Boot Menu.pdf”

  • When I open an html file from the desktop all I see is source code rather than webpage.

    I have tried clearing the cache and reading other questions similar. I have a mac and am opening these files from the desktop, not a server or anything so It's incredibly annoying that firefox wont open them as html files even though that is what they are saved as. Also there is no .txt after them. They are purely .html files.

    Try to delete the mimeTypes.rdf file in the Firefox profile folder to reset all file actions.
    *http://kb.mozillazine.org/mimeTypes.rdf
    *http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions
    Firefox 16.0.2 is the last version that works on an Intel Mac with the OS X 10.5 operating system.
    * https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/16.0.2/mac/
    Another option to consider is to install the last Firefox 10.0.x ESR version as that version is more recent than the Firefox 16.0.2 version.
    * https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/10.0.12esr/

  • Dreamweaver cc 2014.1 will not open the html files from my business catalyst site

    I just imported my business catalyst site (originally built with Muse) into dreamweaver.  the whole site downloaded as expected and dreamweaver maintains that the 2 folders have the same files.  When I click to open any file in Dreamweaver it appears to open and then close the file immediately giving no indication of a problem. 
    Anyone come across this and or have any idea what could be happening?  I can open these files in Text Wrangler.
    I have followed the steps of deleting preferences etc that I have come across in my search today.  None of those helped. 
    Files from other sites seem to be opening fine.
    Thank you.

    The only files I am encountering this issue with are the ones I downloaded from BC into a brand new folder.  Further, any new files that I create in Dreamweaver and then save to the local root folder of the site I downloaded from BC will no longer open after I close them.  I can open all of the files I downloaded from BC in text wrangler with no problem.  I have about 10 other sites I am having no issues with what so ever.
    I am considering this an isolated issue between Dreamweaver and the folder that I imported my BC site to as I have never had any other issue with using Dreamweaver. 
    But to answer your questions:
    1.  no
    2.  no issue
    3.  yes, no issue.
    4.  yes.  all of them.
    5.  not doing this one. 

  • How do I open an HTML file from my hard drive?

    Hello FireFox,
    I develop applications in JavaScript and need to test them in the three major
    browsers including FireFox. In the older version one would click on the FireFox logo and
    go to New Page (New Tab?) and then File. Recently downloaded FireFox 30.0 and there
    does not seem to be New Page option. I see New Window but it does not give me an option
    for opening a file from the hard drive.
    Thanks
    Allen in Dallas

    Hi!
    There are a few ways to open files in Firefox. The easiest is '''CTRL''' + '''O'''. Another easy option is to click Menu > Open File (if it's not there, you'll have to enter the Customize menu to drag it in).
    <hr>
    Happy coding!

  • Unable to view SAP Help files --Cannot Open Frameset.htm Files from 'help.s

    Unable to view SAP Help files --Cannot Open Frameset.htm Files from 'help.sap.com'
    Open Internet Explorer
    Types in http://help.sap.com/
    Click on mySAP ERP
    Click on English
    The webpage goes to
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/e1/8e51341a06084de10000009b38f83b/frameset.htm
    It shows the status done but what I see is just a blank page
    I tried going to different areas of SAP Help files but no success
    I cannot even open Help on Help http://help.sap.com/saphelp_erp2004/helpdata/en/3f/a42938955df162e10000009b38f842/frameset.htm
    None of the other users have this issue

    Hi
    I am able to open your links. I think there is some problem in your internet explorer. please check
    regards
    Srinivas

  • Open my html file and cannot edit it

    When I open my html file from Flash, in view design all I get is a grey box with the Flash symbol in the middle and no html tools.
    I want to link some of my buttons but if I go into view live I get html tools but I still can't access them to make links.
    How do I get my html page so that I can make my links?
    Forrest

    Your next button can still do that.  But it has to be programmed within Flash.  Flash files are not natively handled by Dreamweaver.  You have to export them in order to place them on a website within Dreamweaver.
    The only way that Dreamweaver can do this for you is if you create a button in Dreamweaver which does this action for you outside of the Flash area.  Then this button can link to another page or Flash file.  But if the button resides within the Flash file then it must be edited with Flash.

  • Open an *.html page from a vi

    Hi,
    I don't know how to open an .html file from a boolean bouton.
    someone could help me ?
    thanks

    tst wrote:
    But the HTML file on the RIO (if it's anything like remote front panels on the PC) is only a "pointer" to the VI. It is only used so that the browser will have a place to start. The PC has nothing actually running on it and the RIO is not displaying the web page.
    Here is the basic text from a sample file which tells the web browser to connect to a running VI.
    http://www.ni.com/webappdemos/lv">>
    You can see that it's only a few lines telling the browser to connect to the VI. I think that to use the link you will either need an LV program running on the computer or you will need to write your own browser for the RIO (not a recommended solution).
    Is all right, I know that the html file make only a connection to the VI, but the the web page file are on the cRIO.So I don't understand because you think that the browser must start from the cRIO. If I actually can visualize an html file, that is on the cRIO, and the browser are running on my pc, why a link from the VI (as www.html.it) must open a browser on the cRIO and not on client PC?

  • How to open files from the SAP DMS (DOC Mgt. System) ?

    Hello All,
            I making the Transaction CV04N in BSP.
    When I execute this CV04N I should give a DOC Nr and the list is generated for this DOC.Now in the List if I select one Record and then Press Display Icon then the content of this list is opened in a new window in it's respective format (PDF,Word,GIF,Image file  etc).These are stored in the SAP DMS.
            I want to open a file from this SAP DMS .
    This can be done in ABAP using the standard FMs. But in BSP we can't use these FMs as it will call a screen.
    The Fm which I'm using is " DOCUMENT_SHOW_DIRECT ".
    In Report prog. To this FM I'll pass the
    a, DOC Type
    b, DOC Number
    c, Document part and
    d, Document version.
    then It'll directly open a PDF file in a new window.
    But in BSP how should I acheive this as the FM calls a screen internally.
    The content of the documents are stored in the DMS. Is there any TCODE or Table to get the files from the DMS ?
    How should I proceed ? can any one help me out.....
    Regards,
    Deepu.K

    Hello All,
             I found the FM : <b>CVAPI_DOC_OPEN_CAD</b> which wil return the file path.
    But when I execute this in my BSP since the FM internally calls a screen it fails.
    But can anyone tell me the alternative for this.
    Should I create a FM omitting the GUI code ?
    I found one more thread which says that I can use classes starting with cl_gos*.
    But all the classes use a gui.
    Dowload a document from R/3 DMS to BSP page
    Am I wrong in the interpretation of the logic from the above thread ?
    Please suggest me .
    I too went thru the BSP Applications <b>CVAW_ENTIRE, CVAW_DOCUMENT_DISPLAY.</b>
    But these are used to display only the <b>thumbnails.</b>
    There is no code for displaying other formats like PDF,XLS etc.
    Please correct me if I'm wrong and let me know the correct path to solve my problem.
    Regards,
    Deepu.K

  • Generate an HTML file from a Report in ABAP

    Good morning,
    How I could generate an HTML file from a report.
    Any Ideas... I have found the function WWW_ITAB_TO_HTML, but someone has the standar code and how use this function?
    Thanks a lot,
    Hernán Restrepo

    Hi,
    I am facing a similar problem.I did try using the function module WWW_ITAB_TO_HTML in the reoprt program, as I'm trying to generate a url from a report, but i'm not able to get the expected results. The code is given below. Could someone please try and help me resolve this issue.Thanks in advance.
    DATA:   emp_name                     TYPE char80.
    DATA:   it_itabex                    TYPE zdb_ex_tty,
            it_emp                       TYPE TABLE OF zis_emp,
            it_org                       TYPE TABLE OF zis_org,
            it_pos                       TYPE TABLE OF zis_pos,
            it_pos_alloc                 TYPE TABLE OF zis_pos_alloc,
            it_res                       TYPE TABLE OF zis_res,
            it_res_alloc                 TYPE TABLE OF zis_res_alloc,
            ls_itabex                    TYPE zdb_ex_s.
    DATA:   lv_filename                  TYPE string,
            lv_path                      TYPE string,
            lv_fullpath                  TYPE string,
            lv_replace                   TYPE i.
    DATA qstring LIKE it_itabex OCCURS 10.
    DATA: url(200), url2(200), url3(200), fullurl(200).
    FIELD-SYMBOLS: <fs_emp>              LIKE LINE OF it_emp,
                   <fs_org>              LIKE LINE OF it_org,
                   <fs_pos>              LIKE LINE OF it_pos,
                   <fs_pos_alloc>        LIKE LINE OF it_pos_alloc,
                   <fs_res>              LIKE LINE OF it_res,
                   <fs_res_alloc>        LIKE LINE OF it_res_alloc.
    Report Program to export data from database to Excel.
    Populate all the tables that have to be exported.
    SELECT * FROM zis_org       INTO TABLE it_org.
    SELECT * FROM zis_pos       INTO TABLE it_pos.
    SELECT * FROM zis_pos_alloc INTO TABLE it_pos_alloc.
    SELECT * FROM zis_emp       INTO TABLE it_emp.
    SELECT * FROM zis_res_alloc INTO TABLE it_res_alloc.
    SELECT * FROM zis_res       INTO TABLE it_res.
    Append the Column Header
    CLEAR ls_itabex.
    ls_itabex-ipp_pos_id            = 'IPP Pos ID'.
    ls_itabex-emp_name              = 'Name'.
    ls_itabex-dt_of_join            = 'JoinedOn'.
    ls_itabex-emp_status            = 'Status'.
    ls_itabex-org_name              = 'Org'.
    ls_itabex-prj_name              = 'Project'.
    ls_itabex-mgr_name              = 'Line'.
    ls_itabex-designation           = 'Designation'.
    ls_itabex-specialization        = 'Specialization'.
    APPEND ls_itabex TO it_itabex.
    Append all the tables into one internal table
    LOOP AT it_pos_alloc ASSIGNING <fs_pos_alloc>.
      CLEAR ls_itabex.
      ls_itabex-ipp_pos_id          = <fs_pos_alloc>-ipp_pos_id.
      READ TABLE it_emp ASSIGNING <fs_emp> WITH KEY emp_guid = <fs_pos_alloc>-emp_guid.
      IF sy-subrc = 0.
        CONCATENATE <fs_emp>-emp_fname <fs_emp>-emp_lname INTO ls_itabex-emp_name  SEPARATED BY space.
        ls_itabex-dt_of_join        = <fs_emp>-dt_of_join.
        ls_itabex-emp_status        = <fs_emp>-emp_status.
        ls_itabex-specialization    = <fs_emp>-specialization.
      ENDIF.
      READ TABLE it_pos ASSIGNING <fs_pos> WITH KEY ipp_pos_id = <fs_pos_alloc>-ipp_pos_id.
      IF sy-subrc = 0.
        ls_itabex-designation       = <fs_pos>-designation.
        READ TABLE it_org ASSIGNING <fs_org> WITH KEY  org_id = <fs_pos>-org_id.
        IF sy-subrc = 0.
          ls_itabex-org_name        = <fs_org>-org_name.
          ls_itabex-mgr_name        = <fs_org>-mgr_name.
        ENDIF.
      ENDIF.
      READ TABLE it_res ASSIGNING <fs_res> WITH KEY org_id = <fs_org>-org_id.
       ls_itabex-org_name         = <fs_org>-org_name.
      APPEND ls_itabex TO it_itabex.
    ENDLOOP.
    url = 'http://testweb/scripts/wgate/zvw10a/!?~language=en'.
    url2 = '&~OkCode(LGON)=LGON&login-login_user='.
    url3 = '&vbcom-vbeln='.
    CONCATENATE url url2 url3 INTO fullurl.
    WRITE: /'Staffing Excel'.
    CALL FUNCTION 'WWW_SET_URL'
      EXPORTING
        offset        = 12
        length        = 10
        func          = fullurl
      TABLES
        query_string  = qstring
      EXCEPTIONS
        invalid_table = 1
        OTHERS        = 2.
    Thanks & Regards,
    Preethi.

  • Opening HTML file from java GUI

    Can someone please tell me how I can open a HTML file in Internet Explorer from a Java GUI,
    I have an asssignment I am doing for college and I was toying with the idea of putting in helpfiles, for the program, can anyone tell me the easiest way of apcomplishing this???
    Thanks in advance for your help,
    Kaspah

    Although this should answer your question, there are other (cross platform) ways to do what you want. As opposed to your "must have internet explorer" solution. Swing has a built in html viewer you might use, for example. I've been doing some reading on java/xml solutions. I don't consider myself knowledgeable enough (yet) to comment on that solution though. A delimited text file would be another solution. Useing that solution you could treat the file like a set of parrallel arrays on the hard drive and disply your text on pre-formated labels. Anyway, here is a link to you answer......
    http://java.sun.com/products/jdk/1.2/docs/api/java/lang/Runtime.html#exec(java.lang.String)
    Ron_W

  • Adf11g how to open pdf or html files from  webservice

    hi all,
    adf11g how to open pdf or html files from webservice .

    Hi,
    This is standard functionality, that you can read more about in the OLM User Manual. You can upload the files to an OLM content server or to any other content server that can be accessed with a URL.
    Regards Anders Northeved

Maybe you are looking for

  • Upload an XML file

    hi all     i want to know can we upload XML  file using bdc can i do it if yes how to do it. thanks & regard kiran.

  • Install srss in a zone

    Is there any way to do it, even if it's a hack? Need to do a multi-customer desktop virtualisation proof of concept. I'm sure this featureset is on some roadmap somewhere but I can't find any information about it. thx

  • Need to restore iPod classic without iTunes

    For some reason my friends iPod will not be recognize by any of the computers we've tried it on. So is there a way to restore it without iTunes?

  • Is the Aperture software compatible with Lion & iDVD

    Is Aperture creating either a movie or slideshow compatible with Lion and then iDVD to burn a DVD using iDVD? As it stands now, with Lion, I cannot burn any DVD using iDVD and iMovie, iPhoto or Aperture.. Does this mean iDVD is broken under Lion and

  • Script has slowed massively due to Snow Leopard

    I am using AppleScript to retrieve jobs from our job server (afp mount). What used to take a couple seconds in Leopard now takes minutes (or times out completely) Here is the portion of the code that has slowed to a crawl. (theYearFolder and theJobNu