Generate a popoup  to save a file

Hi ,
I am stuck with a problem, I wanna  generate a popup after pressing a button ( on ALV) which will ask the user for file name and its location in order to save it.
Regards
Moderator Message: FAQ, thread locked. Please take time to read the [Forum Rules of Engagement |https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] before posting your question.
Edited by: Suhas Saha on Oct 13, 2011 9:31 AM

Jus a clue for u
[email protected]
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010
依恩与LabVIEW
LVVILIB.blogspot.com
Attachments:
auto_create_save_in_for_loop_240403.vi ‏26 KB

Similar Messages

  • "Save Pdf File" window

    Hi,
    I have an Access 2000 aplication which works fine with Acrobat 8.1.2 Pro
    -you select a product name
    -a PDF file is generated from this product's "Report"
    -and it's sent by mail
    It is a VBA code which stores: folder name, file name, printer name into Windows Registry
    I have migrated the file to Access 2007 and now there is a problem.
    It opens a "Save Pdf file" window and asks me to select a folder and to enter a file name.
    Seems that name and folder retrieve from the registry is not working.
    What is it? What can I do to resolve the problem? Any idea?
    Thanks,

    I searched without success ...How to find it?
    I have this:
    ' Put the output filename where Acrobat could find it
    bSetRegValue HKEY_CURRENT_USER, _
                     "Software\Adobe\Acrobat Distiller\PrinterJobControl", _
                     Find_Exe_Name("application", "C:\Program Files\Microsoft Office\Office12\MSACCESS.EXE"), _
                     sOutputFolder & "\\" & sPDFName

  • How to save report file to database after generation

    I am generating a report using oracle reports 6i. The report is a .pdf file. I need to save this file in a database table to that i can show a link on the application to view the file online. How can i achieve this functionality?
    Thanks.

    Yes you can. Find about BLOB fields.

  • URGENT--Need to supress "Do you want to Open or save this file" for (CSV AND DOC FILES) in IE 8, IE 9 on Win XP and Win 7

    Hi 
    In our Task in Salesforce we generate one CSV file and one doc file after one button click on salesforce screen. we need to download these two documents without the popup message "Do you want to Open or save this file"
    Pls suggest Registry Edit Option Or any IE browser configuration or any
    code to get rid of this popup as this is very critical for our Task. 
    Thanks
    Kartik

    Thanks Alex... I saw this in another Forum and could you pls let me know if this works...that is there is no prompt on CSV download
    Begin in: HKEY_LOCAL_MACHINE - to change settings for all users
    HKEY_CURRENT_USER- to change settings for the current user
    Then browse to Software->Microsoft->Internet Explorer->Main->FeatureControl->Feature_Restrict_File_Download
    And then set the Value iexplore.exe to 0. If it doesn't exist: Create it (DWORD). 
    Thanks
    Kartik

  • Trying to modify SaveDocsAsSVG to open and save all files within a directory automatically

    I am trying to do as the title suggests, but I can't find a way to specify the folder I want the script to look at and I can't get it to open/save/close the files without user interaction. Another way to say it is that I need this to be itterative as the PC I'm using cannot handle too many open files at once.
    On a side note, I can't even find the documentation. Example, what arguments does Folder.selectDialog() accept? Where is the documentation for that?
    Thank peeps!
    Using CS6 trying to convert EPS to SVG

    Here is what I have so far. I think I'm close I just need to figure out how to open the documents in the app and close them after converting them so only one document is open at a time. My goal is to run this program over night since there are thousands of files to convert. Thank you all for your help!
    app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
    try {
              if (app.documents.length > 0 ) {
                        // Get the folder to save the files into
            var inFolder = Folder( Folder.desktop + '/temp' )
            var files = inFolder.getFiles( /\.eps$/i );
                        var destFolder = null;
                        destFolder = '~/Desktop/temp';
                        if (destFolder != null) {
                                  var options, i, sourceDoc, targetFile;
                            // Get the SVG options to be used.
                                  options = this.getOptions();
                            // You can tune these by changing the code in the getOptions() function.
                                  for ( i = 0; i < files.length; i++ ) {
                      //THIS IS WHAT I NEED HELP WITH
                      var docRef = open(files[i]);
                      sourceDoc = app.documents[i]; // returns the document object
                                            // Get the file to save the document as svg into
                                            targetFile = this.getTargetFile(sourceDoc.name, '.svg', destFolder);
                                            // Save as SVG
                                            sourceDoc.exportFile(targetFile, ExportType.SVG, options);
                                            // Note: the doc.exportFile function for SVG is actually a Save As
                                            // operation rather than an Export, that is, the document's name
                                            // in Illustrator will change to the result of this call.
                                  alert( 'Documents saved as SVG' );
              else{
                        throw new Error('There are no document open!');
    catch(e) {
              alert( e.message, "Script Alert", true);
    /** Returns the options to be used for the generated files.
              @return ExportOptionsSVG object
    function getOptions()
              // Create the required options object
              var options = new ExportOptionsSVG();
              // See ExportOptionsSVG in the JavaScript Reference for available options
              // Set the options you want below:
              // For example, uncomment to set the compatibility of the generated svg to SVG Tiny 1.1
              // options.DTD = SVGDTDVersion.SVGTINY1_1;
              // For example, uncomment to embed raster images
              // options.embedRasterImages = true;
              return options;
    /** Returns the file to save or export the document into.
              @param docName the name of the document
              @param ext the extension the file extension to be applied
              @param destFolder the output folder
              @return File object
    function getTargetFile(docName, ext, destFolder) {
              var newName = "";
              // if name has no dot (and hence no extension),
              // just append the extension
              if (docName.indexOf('.') < 0) {
                        newName = docName + ext;
              } else {
                        var dot = docName.lastIndexOf('.');
                        newName += docName.substring(0, dot);
                        newName += ext;
              // Create the file object to save to
              var myFile = new File( destFolder + '/' + newName );
              // Preflight access rights
              if (myFile.open("w")) {
                        myFile.close();
              else {
                        throw new Error('Access is denied');
              return myFile;

  • How to generate Header and Trailer for a file

    Hi Guru
    How can we generate header and Trailer for a file
    EX:
    i want to generate header with date and trailer with record count from table.
    Sample file :
    20120120
    fwsfs
    adfwsfd
    adff
    afsadf
    afdwsg
    adgsg
    adgsgg
    asgdsag
    sdgasgdaf
    sdfsagfadf
    10

    Hi ,
    1.Create an interface to load data from oracle to file and set generate header as false option in IKM .
    2.Create variable get_current_date of alphanumeric datatype and implement logic SELECT to_Char(SYSDATE,'yyyymmdd') FROM DUAL under refreshing tab
    3.Create variable get_record_count of numeric datatype and implement logic SELECT '<%=odiRef.getPrevStepLog("INSERT_COUNT")%>' FROM DUAL under refreshing tab
    4.Create a package
    Drag the get_current_date variable ,
    Drag odioutfile and paste the below logic OdiOutFile "-FILE=D:\ODI_TEST\emp.txt" "-CHARSET_ENCODING=ISO8859_1" "-XROW_SEP=0D0A" #GET_current_date in command tab
    Drag the interface
    Drag another variable get_Record_count
    Drag the odioutfile and paste the below logic OdiOutFile "-FILE=D:\ODI_TEST\emp.txt" -APPEND "-CHARSET_ENCODING=ISO8859_1" "-XROW_SEP=0D0A"
    #GET_RECORD_COUNT in command tab
    Link all these in sequence,save and run the package.
    OR Modify the IKM SQL to File Append to achieve same functionality.
    Thanks,
    Anuradha

  • How can I save a file in the server?

    Hello,
    I am writing a Java Web Start program that it will generate a html file, how can I save the generated file in the server, fro example, the directory where I stored my JAR files. Because right now, it will create the html file in the local client mahcine instead of the server. Can anyone tell me how can I do this? Thanks you.

    Yeah, thanks but that's not what I was trying to ask.
    I know that you can save and open a document by performing these three steps:
    1. Confirming to save a file to the Downloads folder
    2. Open the download manager by clicking the temporarily green arrow
    3. Clicking on the downloaded file
    What I would like to know is whether or not it is possible to have Firefox open a saved file ''automatically''. At the moment, if I choose to open it automatically, it is only saved to my temp folder.
    It would be great though if it was saved to my Downloads folder ''and'' opened with the respective program on my pc. Is there a way to do this?

  • How can I put the report generated by a program into a File?

    Hi all,
       How can I put the report generated by a program into a File?It can be in TXT format or excel format which ever is possible.
    I need to export this file to memory,How can I do that??
    Regards,
    Shashank.

    Hello Shashank,
    Please ignore my previous answer... Ofcourse it works...
    There are several ways to do this...
    two of them are
    1. List -> Save -> File and press enter..
        it will ask for the format, then path where to save it. Just give the path.
    2. Using function module 'GUI_DOWNLOAD'.
    I'm giving the example bellow which explains the usage of both GUI_UPLOAD and GUI_DOWNLOAD.
    To do this... you need to have folder with name 'TEST' and a .txt file in it with name 'test'. And contents of it are :
    TEST1             ,BOT 
    TEST2             ,BOT 
    TEST3             ,BUT 
    with spaces.
    REPORT zssr_bdc .
    DATA: BEGIN OF g_t_itab OCCURS 0,
            matnr LIKE mara-matnr,
            maktx LIKE makt-maktx,
          END OF g_t_itab.
    DATA: g_t_bdcdata TYPE TABLE OF bdcdata.
    DATA: path TYPE string,
          path1 type string.
    path = 'C:\Documents and Settings\ssr3kor\Desktop\TEST\test.txt'.
    path1 = 'C:\Documents and Settings\ssr3kor\Desktop\TEST\test1.txt'.
    *contents of test.txt    *
    *TEST1             ,BOT  *
    *TEST2             ,BOT  *
    *TEST3             ,BUT  *
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename = path
      TABLES
        data_tab                      = g_t_itab.
    LOOP AT g_t_itab.
      WRITE:/1(18) g_t_itab-matnr, 20(40) g_t_itab-maktx.
    ENDLOOP.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
       filename = path1
       filetype                      = 'ASC'
      TABLES
        data_tab                      = g_t_itab.
    Now you will get one .txt file with name 'TEST1.TXT' in the TEST folder.
    <b>REWARD POINTS IF IT IS HELPFUL</b>
    Regards
    Sasidhar Reddy Matli

  • Always prompted to save JNLP file

    Hello! We have a simple servlet that basically just queries a few things off of the HttpServletRequest and spits back a dynamically generated JNLP file. For some reason, when we were running with Tomcat 4.0.6 this worked fine, but with the upgrade to Tomcat 4.1.29 it does not. IE always prompts to open or save the file - it never just launches JWS automatically anymore.
    Any suggestions on what we can fix? I'll put the interesting parts of the servlet below.
    Thanks in advance!
    -Angelina
    Servlet:
    public class JNLPServlet extends HttpServlet{
        public void doGet(HttpServletRequest request, HttpServletResponse response)
           throws IOException, ServletException {
            try {          
                response.setHeader("Cache-Control", "public");
                response.setContentType("application/x-java-jnlp-file");
                String sessionId = getSessionId(request);
                ServletOutputStream out = response.getOutputStream();
                java.net.InetAddress[] hostNetAddrs =
                              java.net.InetAddress.getAllByName(request.getServerName());
                String hostIpAddr = hostNetAddrs[0].getHostAddress();
                out.println(generateJNLP(sessionId, request.getServerName(),
                                         hostIpAddr, request.getRemoteUser()));
                out.flush();          
            catch (IOException ex) {
                response.sendError(javax.servlet.http.HttpServletResponse.
                                   SC_SERVICE_UNAVAILABLE, ex.getMessage());
            catch (Exception ex) {
                response.sendError(javax.servlet.http.HttpServletResponse.
                                   SC_INTERNAL_SERVER_ERROR, ex.getMessage());
        protected String generateJNLP(String sessionId, String host, String ip, String userName){
            StringBuffer buf = new StringBuffer();
            buf.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n");
            buf.append("<jnlp spec=\"1.0+\" codebase=\"http://" + ip + ":80/cmv2/\">\n");
            buf.append("<information>\n");
            buf.append("<title>App V2.3 on " + host + "</title>\n");
            buf.append("<vendor>EMC Corporation</vendor>\n");
            buf.append("<homepage href=\"http://www.emc.com\" />\n");
            buf.append("<description>Program for monitoring performance.");
            buf.append("</description>\n");
            buf.append("<icon href=\"cm.gif\" width=\"32\" height=\"32\" depth=\"3\" size=\"1k\" />\n");
            buf.append("<offline-allowed />\n");
            buf.append("</information>\n");
            buf.append("<security>\n");
            buf.append("<all-permissions />\n");
            buf.append("</security>\n");
            buf.append("<resources>\n");
            buf.append("<j2se version=\"1.4+\" href=\"http://java.sun.com/products/autodl/j2se\"");
            buf.append("initial-heap-size=\"64m\" max-heap-size=\"194m\" />\n");
            buf.append("<property name=\"host_name\" value=\"" + host + "\"/>\n");
            buf.append("<property name=\"host_port\" value=\"80\"/>\n");
            buf.append("<property name=\"host_IP\" value=\"" + ip + "\"/>\n");
            buf.append("<property name=\"secure_host_port\" value=\"443\"/>\n");
            buf.append("<property name=\"session_id\" value=\"" + sessionId + "\"/>\n");
            buf.append("<property name=\"user_name\" value=\"" + userName + "\"/>\n");
            buf.append("<jar href=\"cmv2.jar\" />\n");
            buf.append("<jar href=\"ohj-jewt-4_1_9.jar\" />\n");
            buf.append("<jar href=\"help-4_1_9.jar\" />\n");
            buf.append("<jar href=\"oracle_ice-5_06_3.jar\" />\n");
            buf.append("<jar href=\"emcshared.jar\" />\n");
            buf.append("<jar href=\"xerces.jar\" />\n");
            buf.append("</resources>\n");
            buf.append("<application-desc main-class=\"com.emc.wclient.Login\">\n");
            buf.append("</application-desc>\n");
            buf.append("</jnlp>\n");
            return buf.toString();
    }

    The underlying problem is a combination of tomcat 4/5 being more standard and IE being less standard. Tomcat changed to automatically add ";charset=ISO-8859-1" to the end of the Content-Type header while IE appears to not correctly process the Content-Type header.
    IE maintains a list of known MIME types in the registry under [HKCR]\MIME\Database\Content Type. There you will find an entry for 'application/x-java-jnlp-file' which indicates that this MIME type is treated as a file with the suffix '.jnlp'.
    Unfortunately, IE treats EVERYTHING after the Content-Type: as the MIME type NOT just the stuff between the ':' and the ';'. Thus instead of looking for a registry entry for 'application/x-java-jnlp-file' it winds up looking for 'application/x-java-jnlp-file;charset=ISO-8859-1" and doesn't find it.
    If you duplicate the 'application/x-java-jnlp-file' entry with the name 'application/x-java-jnlp-file;charset=ISO-8859-1' everything works. Alternatively, if you make sure the 'file name' portion of the URL which requests the jnlp spec has the suffix '.jnlp' IE will work correctly. If you are generating the jnlp spec via your own servlet you can control the behavior of Tomcat by calling 'setCharacterEncoding(null)' on the response object (note this is not a method of the HttpServletResponse interface, you have to cast to the underlying concrete type).
    So, I think IE's use of the 'suffix' is non-standard and IE's handling of the Content-Type header field is just broken. If you can make the requesting URL have the .jnlp suffix you are ok; otherwise, there does not appear to be a good solution.

  • How to remove  "save pdf file as" dialog in startdoc with adobe acrobat 6

    We set up pdfWriter as default printer and hope to generate pdf file with startdoc call. The existing code worked great on Adobe Acrobat 5. However, after we upgraded to Adobe Acrobat 6(complete install), the same code behaved differently. Somehow, startdoc always popped out a "save pdf file as" dialog box and ask for the file path but ignored the input path parameter(the pdf file was generated at the path that user manully input in).
    W do not like this dialog box at all and expect silent action. How to remove this annoying dialog box and make the old code working (taking the parameter as pdf file path)?
    Thanks for your help.
    JD

    Hi
    I accessed to a website from my uni library computer using my student account and download a pdf file in there. However, that pdf file contains a line of words saying "Accessed by ... University Library on 30 Mar 2007". This line is printed vertically and on the left side of the page.
    Do you know how to remove that line? I think the website just embedded that line into the file.
    Please help.
    Thank you very much.
    tuanduy

  • Enabling Save for file download or linktoURL

    Hi,
    I have a file in a server path(which is little bit large and extension type is custom). I want to enable the user to save the file onto his local disk. I can use either linktoURL or FileDown Load for this. When I checked FileDownload, I cant enable save in Netweaver2004, mine is SP16. when it comes to the linktoURL, I am giving path name as reference.
    So, How can I achieve this?.
    Thanks,
    Raj.

    Hi
    See this Thread
    Re: Handling dynamically generated Images
    Kind Regards
    Mukesh

  • Save the file and give date & time stamp

    1. Reading the Excel file from the selection screen as a parameter.
    2. Using F.M. ALSM_EXCEL_TO_INTERNAL_TABLE reading Excel file into
        Internal table.
    3. Implementing the Business Logic.
    4. Move output to Final Internal table.
    5. Final internal table should generate a Flat file. By using GUI_DOWNLOAD.
    6. That flat file should be saved with the name and location given in the Excel.
    7. When ever I run the program output file will generate in the same location but with date and time stamp. Because I’m running the program for range of employees say initially I run for 1 – 10,000 employees next 10,001- 20,000 like that.
    Whenever I run for 2nd time it will overwrite the previous output, that’s the reason I’m using date and time stamp.
    Eg:
    PERSONAL Numbers              Name                                         Location
    00000001                 xxxxx-24.04.2007-10.30          C:\        
    00000002                 xxxxx-24.04.2007-10.35
    00000003                 xxxxx-25.04.2007-10.40
    00000004                                  xxxxx-25.04.2007-10.30
    Can any one help me how to save the file and give date & time stamp through hardcode?
    please help me in this issue.

    I am not clear with your problem. Based on the understanding of your question,
    there  can be two cases.
    1- U want to insert time stamp in the output file.
    2- Time stamp is already there, u just have to solve the overwriting issue.
    If your question goes with option 2, You can make use of import parameters
    <b>CONFIRM_OVERWRITE</b> : Which will ask for confirmation before overwriting.
    <b>APPEND</b> : which you can choose either to append the data to the existing file or overwrite it.
    Please inform if the issue is not resolved.
    Message was edited by:
            BINU RAJ BINU

  • Faild to save sequence file. Out of memory

    I need to write several arrays to my report file. This works fine for a couple of times, but when I add to many steps I get the message "Failed to save sequence file xxx.seq. Out of memory" from the Sequence Editor.
    I found the "CustomActionStep" on this board and modyfied it to handle two arrays.
    Any ideas to why this happens? 
    Attachments:
    test-array-to-report.seq ‏103 KB
    generate-nubers.vi ‏9 KB
    AmpPhaseRes.vi ‏15 KB

    Hi misa37,
    I have run your sequence file several times, but I am unable to reproduce the same error message.  I opened the sequence in TestStand 4.1, added 6 copied steps to the ones already present.  My computer has 2 GB of RAM, with 20GB free of hard disk space.
    If you open the task manager while the code executes is there a noticeable CPU spike or rise as the code executes?  Have you tested this code on a different computer that has more RAM?  What version of TestStand are you using?
    A_Ryan
    AES
    National Instruments

  • SAP Query : Save to file in XLS format in background

    Hello everybody,
    I used the enhancement SQUE0001 for saving result (an XLS file) of SAP query in background.
    I used also the ABAP commands 'OPEN DATASET', 'TRANSFER' and 'CLOSE DATASET' as described in the SAP note 537735.
    The execution of SAP query generated multiple columns. But when I go to see my downloaded file (.xls), all generated columns are condensed into 1  !!!
    How to save the file (.xls) and keep the separated columns, please?
    Thanks for your answers.

    For saving the file in Excel format in the App server you have to first convert the data in XLS format and then use the transfer statement.
    You can either use FM SAP_CONVERT_TO_XLS_FORMAT for that.
    OR
    Create a comma sepreated file which will open in excel.
      open dataset file for output in text mode.
      loop at itab.
        concatenate itab-field1 itab-field2 itab-field2 into str
                      separated by ','.
        transfer str to file.
      endloop.
      close dataset file.

  • How to save a file locally when executing backgroud job??

    Hi guys!
    Hope you can help...
    I need to be able to save a file (text file) locally on my machine when Im running my report in the background...
    Basically my program works like this:
    I have a Selection Screen where the user makes a selection, and enters where on his/her local machine a generated text file (.txt) needs to be saved when F8 has been pressed.
    But, it should ALSO be possible for this generated text file to be saved to the same location on the local machine if the program is run as a background job...
    Is that possible??  or can one only save stuff when you run things in the background on the Application Side??  Do I have to use "OPEN DATASET" keywords, or is there a Function Module you know of??
    POINTS WILL BE REMOVED!!!
    tks
    Christiaan
    Edited by: Julius Bussche on Jul 11, 2008 8:34 PM

    Hello,
    It is not possible to save file locally when running the program in background. It will be only saved on the application server.
    We had a similar requirement earlier. We developed another program which is executed after this program which downloads the file from the application server to the user desktop. This is just one simple additional step which should solve your problem.
    Hope this helps.
    cheers,
    Sushil Josih

Maybe you are looking for

  • Can i upgrade my graphics card in my laptop???

    i have hp dv6 7206tx with nvidia 630m 2gb graphics i want to upgrade it with nvidia 700 or higher...... can i ????

  • Power Mac G5 upgrade question.

    Does anybody know if the G5 can be transformed into an Intel system in order to upgrade to Lion? I really don't want to have to buy a new Mac.

  • Quicktime video gets much whiter when moved to second screen

    Whenever I move a movie playing in Quicktime over to my second monitor, the video gets very white. It still plays and you can still see it, but all the colors get brighter. I've had this problem with pretty much every video-playing software (VLC, Med

  • Bad quality preview in Bridge versus photoshop preview

    Okay here's my problem.  When I view my photos using Bridge CS4 I get a bad quality preview even when preview is set to "Always High Quality" The first photo you will see that there is a greenish yellowish tinge on the side of my daughters cheek.  Ho

  • Proffesional services vs Application

    Hi, We are trying to decide the responsibilities of our application team (developers and application specialists) VS the professional services team. Our application team know the sharepoint Central Admin very well and config all the services themselv