How to excute a local file?

Hi. Experts.
I want to excute a file (like aaa.doc) when i click a file after uploading in alv.
How to excute a local file?
I used behind command
    lv_filename = ls_zdmt03-filenm.
    cl_wd_runtime_services=>attach_file_to_response(
       i_filename               = lv_filename
       i_content                = ls_zdmt03-filecontent
       i_mime_type              = ls_zdmt03-filetype
       i_in_new_window = abap_true
       i_inplace                = abap_true ).
But do not excute one. just open a browser and quickly close a browser.
Please help me.
Thanks
Regards.

What do you mean by execute a file?  You say execute, but then in your example you list aaa.doc.  A word document doesn't need to be execute.  The cl_wd_runtime_services=>attach_file_to_response will download a file (like a word document) and the browser will open it in its default program.  Is that not what you want to happen?
What kind of file do you actually have?  Is it on the server or the client?
If you want to execute applications on the client machine, then you can consider the UI element ACFExecute - as of NetWeaver 7.0 Enhancement Package 1.

Similar Messages

  • How to delete a local file in the presentation server.

    Hi All,
    How to delete a local file in the presentation server. As we do using 'delete dataset dsn' in application server. How can i achieve this. My requirement is after uploading file using gui_upload, i want to delete that source file. Please let me know, how can i achieve this.
    Thanks in advance.
    Regards,
    Vishal

    data: l_rc type i.
      data: f_name type string.
        move 'c:\YourFile.txt' to f_name.
        CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_DELETE
          EXPORTING
            FILENAME             = f_name
          CHANGING
            RC                   = l_rc
         EXCEPTIONS
           FILE_DELETE_FAILED   = 1
           CNTL_ERROR           = 2
           ERROR_NO_GUI         = 3
           FILE_NOT_FOUND       = 4
           ACCESS_DENIED        = 5
           UNKNOWN_ERROR        = 6
           NOT_SUPPORTED_BY_GUI = 7
           WRONG_PARAMETER      = 8
           others               = 9
        IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                   WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.

  • How to open a local file from javascript in a jsp-page

    Hi
    I have created an iview from a PAR file. In the par file I have a jsp-page with some javascript code. From the javascript coe I want to open a new window with an Excel file.
    I have tried window.open("c:
    test.xls", "test_window"), but it doesn't seem to work. I have created a small HTML page locally with the same command and there a new window opens with the Excel file.
    If I change the local file path with an URL it also works.
    Any idea how to open a local file ?
    Thanks
    /Jakob

    Jacob,
    I'm not 100% (but 99,9%) and it has to do with security ristrictions of the browser not allowing to have local workstation interation from the web. This is ofcourse very dangerous if the browser would allow it... So therfore it is blocked. What if somone would point to a file/executable that formats your drive so for that reason it is not allowed to have web interaction with a local file. Only with Java Applets this is possible but still with many limitations, and what I remember Google Gears and Adobe Air do have some limited web 2 local file interaction... So best and most simple solution you are left with is pointing to a url instead of a file on a c:\ drive.
    PS The reason why it works when you start the html from your local PC has todo with the fact that the browser detects that the html is not running in the web at that moment therefor allowing the access.
    Cheers,
    Benjamin Houttuin

  • How to refresh a local file in the Reporting Studio?

    Hello,
    I need to refresh a few local files in the Reporting Studio via script, but obviously command
    ActiveDocument.Sections["Sectionname"].Process()
    does not work, since it's not a query. What else could I use?
    Many thanks for any answer.

    I am confused...How is the solution not exactly what I look for ?
    You asked how to refresh imported data files via script.
    You correctly identified that the Imported file is not a Query.
    However if you look at the Object model closely you will notice properties that if you can think outside the box will allow you to treat the imported file like a query section.
    ActiveDocument.Sections["data.csv"].ProcessSequenceNum
    ActiveDocument.Sections["data.csv"].IncludeInProcessAllBy strategically setting unwanted sections not to process via
    ActiveDocument.Sections["Sectionname"].IncludeInProcessAll = falseand setting targeted section(s)...imported file(s) to process via
    ActiveDocument.Sections["Sectionname"].IncludeInProcessAll = trueThen
    ActiveDocument.ProcessAll()Your section(s) will refresh.
    If this is not a satisfactory solution then move the data files to a database or create a DSN entry and OCE to those files instead of importing them.

  • How to convert the local file into unicode file?

    Hi All,
    I need read local file (GUI_UPLOAD) and save it as unicode file?
    I've found class CL_ABAP_CONV_OUT_CE but I've no idea how to use it.
    Should I read file in binary mode and then convert it into unicode? AT the and save it (GUI_DOWNLOAD) ?
    Thanks
    Adam

    Hi,
    Check these classes, will help you
    CL_ABAP_CONV_IN_CE : Reading binary data
    CL_ABAP_CONV_OUT_CE : exporting binary data
    CL_ABAP_CONV_X2X_CE : reading and exporting binary data and changing the format
    Regards,
    Satish

  • Walkman : how to play only local files and no network related media.

    Hello All.
    The Walkman app is a nice player.
    But...how can i configure it that it only shows local files on my sdcard1 ?
    I don't want to use network streaming, i just want to listen to my local stored (huge) collection flac files.
    Is disabling 'music unlimited' all i need to do? (i use a €3,- for 3 months action from playstation4)
    ∆○×□ PSP1004 (Phat 1st gen.) 5.00 M33-6 (+1.50) + 32GB Pro-Duo.
    ∆○×□ PS4 1.7X + 500GB hdd + Dualshock4 + PS4 Camera,
    Xperia-Z1 Android 4.4.X + 32GB microSD + Philips SHB9100
    Solved!
    Go to Solution.

    Thanks for the fast reply.
    Cool, it saves my mobile data bundle when i'm on the bike. (out of wifi range)
    I was a bit confused about artists i don't know, but those are the demo songs, i'll remove them using AndExplorer.
    ∆○×□ PSP1004 (Phat 1st gen.) 5.00 M33-6 (+1.50) + 32GB Pro-Duo.
    ∆○×□ PS4 1.7X + 500GB hdd + Dualshock4 + PS4 Camera,
    Xperia-Z1 Android 4.4.X + 32GB microSD + Philips SHB9100

  • How can I disable local file access security check?

    Windows 7
    Firefox 3.6.16
    I would like to disable the security check used for blocking access to local files.

    I don't know if this is completely correct, but...
    I have the NoScript extension installed. When I looked in about:config, I found an entry called:
    noscript.allowLocalLinks
    When I toggled this to "true," I was able to navigate via URLs to local and networked files.
    When I looked it up, I found out that you can set this switch using the NoScript UI (Options|Advanced|Trusted).

  • How to pass the local file name to the workflow in TC OAWD

    Hi everybody!
    I have to pass the local file name of the image as a parameter to a workflow in TC OAWD.
    By debugging I found the FM which starts the workflow -  'ARCHIV_PROCESS_FAXINPUT' . It has two importing parameters : FRONTENDPATH and BASICFILENAME, but they are not used by calling the FM.
    Do you have an idea if there is a DDIC table, which contains the local file name or another way to solve the issue.
    Thank you in advance.

    Hi,
    Not sure of what you want.
    Have a look at v$session view. Machine column is maybe what you're looking for.
    If you want to retrieve the local host executing remote desktop, it's actually not possible natievely, since it's still remote host that is connecting to the database.
    Hope it helps.

  • How to synchronize a local file with the remote copy.

    I have a local file (file.txt) inside the directory of my java application and also a copy in a remote machine. Every time I start the application I want to check if the remote copy has been updated and if yes, synchronize the local copy. If you have done this before, please let me know. Thank you very much!

    you could make a URL connection to that file, check it's lastModified date, and download if you need to update

  • How to print a local file from jsp

    Hi,
    I want to print a local file(eg. .doc,.pdf) from a jsp.
    Please help me with any answer or any example code
    Thanks in advance
    Regards,
    Sanjeev

    Try this:
    index1.jsp:
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <Link rel='alternate' media='print' href=null>
    <script Language=JavaScript>
    function setPrintPage(prnThis){
    prnDoc = document.getElementsByTagName('Link');
    prnDoc[0].setAttribute('href', prnThis);
    window.print();
    </script>
    </head>
    <body >
    <a href="#" onclick="setPrintPage('index.jsp');"> Click to Print </a>
    </html>This will print index.jsp without opening it in browser. Hope this helps!

  • How to read a local file from Applet Code

    Hi
    I am developing a application and i want to access a local file from the applet
    So pls help me in coding for this

    You can't do that, at least not with an unsigned applet.
    Sign your applet and it should work just like normal file access.

  • How to access the local files (Excelsheet) in bsp application

    Hi sdn,
    I created a bsp application my requirement is if i click the link it should display the excelsheet and if i perform any updations those updations will be modified int that excel sheet so can any one plz help me out in solving this issue.

    Hi,
    I think you shouldn't try to modifiy local files from a server application for security reasons.
    But, let's say you have your reasons.
    In your BSP, you have a link that points to an MS Excel file. Clicking this link will open the file in MS Excel and users will be able to modify and register it (and save the file in another path/name...).
    Another solution would be: create a table form (like ALV?) from the Excel file and save any modifications of the table form into the Excel file. Maybe HTMLB can supports such approach but I don't know HTMLB. I only use HTML and ABAP.
    All I said here is just overview of potential solutions. I'm not sure I exactly understood your need. Perhaps other Experts would have better answer for you.
    But I hope this will help you.
    Good luck!
    Thomas.

  • How to read a local file using as3 in a flash object in HTML? [urgent]

    My web site contains a flash object.
    I want to use as3 to read some local .txt file
    by getting the user directory of the file.
    i know AIR can support this by sth like:
    File.desktopDirectory.resolvePath
    but when i open a AIR file for this, it seems
    the action cant be run when i embed it in html.
    And i tried to use the above function in a normal
    flash file in the action script.
    But it cant recognize the File. class..
    How can it be done ?
    It's reli urgent,
    please help...
    Thanks !

    a web based flash app can't detect user directories.  you can use the filereference class'es browse method to let the user locate a file in any directory the user wants.  flash can then retrieve the file's name and type.  but, as mentioned before,  flash can't determine the file's directory.

  • How to generate a local file pdf  with reports 11g

    I want to generate a local pdf file to print it with client_host

    I think using report builder can't support pdf output,...All of our reports are PDF output so Reports 11g definately supports this format.
    I'm a little confused by your request, however. If your user has your PDF report displayed in a browser window - can't they just click the "Save" button in Acrobat Reader to save the report to their computer?
    Is your user wanting to bypass this step and have the report generated and saved automatically to their computer? If this is what you want to do, then Francois's suggestion is the way to proceed. You will be using the WebUtil library to transfer the file to the client computer. This means, you will need to complete the configuration of the WebUtil library on your application server before you can use any of the WebUtil methods.
    If you are new to WebUtil, I recommend you search the Forms Help on "Webutil" and review the following articles:
    Configuring WebUtil
    Runtime Setup Checklist
    These first two articles give you step-by-step instructions for completing the WebUtil configuration on your application server.
    Using WebUtil in Your Appilcations - This article will demonstrate how to implement WebUtil in a Form.
    Hope this helps,
    Craig...

  • How to retrieve a local file from a portal report.

    Hi,
    I need to access a local htm file from my local directory. I stored the filename in
    a table. And I built a portal report to select the filename from the table. The filename
    in the report will be link to a procedure that I created to pass the filename. The
    procedure code is as follow:
    (v_filename in varchar2) IS
    url varchar2(100);
    BEGIN
    url := 'uploaddoc/'&#0124; &#0124;v_filename;
    portal30.wwv_redirect.url(p_url =>url);
    END;
    Then in the httpd.conf file, I put in an alias like this:
    I put an alias in the httpd.conf file like this:
    Alias /uploaddoc/ "C:\My_Data\uploaddoc/"
    I stopped the http server and restarted it after I made the changes.
    When I run the report, I click on the filename link: in my example,it is:
    internal_portal_faq, the filename is passed to the procedure that I created.
    But I got the following error message on the browser:
    No DAD configuration Found
    DAD name:
    PROCEDURE : internal_portal_faq
    URL : http://localhost:80/pls/portal30/uploaddoc/internal_portal_faq
    I am running on version 3.07 on NT on my laptop.
    Any idea what I did wrong?
    P.S. I don't want to upload the file using a portal form into the blob field.
    Thanks;
    Kelly.
    null

    Hi,
    I found out a way to do this myself. If anyone is interested in that, just drop me an email.
    Kelly.
    null

Maybe you are looking for

  • Error while deploying Web Dynpro Demo Kit

    Hi experts, I tried to deploy the SCAs in the NWDS. The problem is that I can´t deploy the "HM-WDUIDMKTCNT.sca". Do someone know why? I get this error notification: S U M M A R Y: Failed deployments:1 ASJ.dpl_dc.001085 An error occurred while deployi

  • I just got a used ibook g4 and i cant get my downloads to download it keeps saying theres no default application how do i do this . man this mac is way harder than vista.. please help

    i just got the ibook g4 and i dont know how to set default or something like that i downloaded itunes and it says to choose an application to open itunes??? how do i do that

  • Problem Deploying Cr2008

    Cr 2008 Developer Version 12.1.9.892 with Vb .Net 2003 After attempting install - Program runs fine u2013 and report renders in Cr Viewer.   Problem is u2013 there are  a few u201Cdropped / missingu201D fields.   Everything seems to u201Crunu201D fin

  • Portal connectivity

    Hi, While connecting MDM Server to the Portal in Step where you create the system and enter the MDM server name and password. The MDM server connectivity is fine and works if used  to connect to MDM system-Sql server. This is remote server. When I tr

  • IBook G3 acts weird

    Hello, I'm new around here and I would like to ask some questions. I don't know why, but my iBook starts to act weird lately. When I put it in sleep mode and then reopen it later, it froze. It has been like this for a few days. Then yesterday, when I