Report Script : Parameter for file name?

hi all,
I am using a report script to generate a text file with budget data. This works fine in AAS console but I am automating this process by usning an ESSCMD and batch script.
tha batch script will call the ESSCMD script which in turn executes the follwoing command
RUNREPT 2 "RepScripName" "c:\Otputfile.txt"
Now here I am hard coding the Output file name and location.But my requirement is that when I run the script it should prompt for file name and location.
Any Idea on this
Thanks

Another solution I have tried is simply writing a small VB app that has a dialog that allows you to type in a file name or even navigate a file system directory. If I understand you correctly, you just want to be able to output the file anywhere you want. This works well and you can add more features to, just depends on if it is worth the effort. Other wise you can just write MXL and supply your script with position variables. You just need to type it in and hope you type typed it in correctly. Good luck, there are several ways to accomplish this.

Similar Messages

  • Report Script parameter

    hi all,
    I am using a report script to generate a text file with budget data. This works fine in AAS console but I am automating this process by usning an ESSCMD and batch script.
    tha batch script will call the ESSCMD script which in turn executes the follwoing command
    RUNREPT 2 "RepScripName" "c:\Otputfile.txt"
    Now here I am hard coding the Output file name and location.But my requirement is that when I run the script it should prompt for file name and location.
    Any Idea on this
    Thanks

    Hi,
    Just to expand on the MAXL option, you can create a batch script which will accept input parameters such as :-
    set /p RepName=Enter Report Name
    set /p OutputName=Enter output Directory
    Then you can pass the stored variables into the Maxl script as :-
    essmsh maxlscript.mxl %RepName% %OutputName%
    In your maxl script you can access the passed in variables e.g
    export database 'appname'.'dbname' using server report_file $1 to data_file $2;
    The number after the $ relates to what position the variable was passed into the script.
    Hope this helps.
    John

  • Script to insert file name into keywords field of same file

    Hello,
    search a solution, a Script or another, which writes the file name into keywords field of same file (Metadata: Description/Keywords) in "photoshop", "bridge" or better in "Lightroom" .
    I found this topic from Mike Hale http://www.ps-scripts.com/bb/viewtopic.php?t=1330
    It's possible this script to change this in such a way that it does this:
    "script to insert file name into keywords field of same file"
    Thanks and best greetings
    Wolfgang

    This works in CS2:-
    #target bridge
       if( BridgeTalk.appName == "bridge" ) {
    nameDescription = MenuElement.create("command", "AddName to Description", "at the beginning of Thumbnail");
    nameDescription .onSelect = function () {
         nameToDescription();
    function nameToDescription(){
    var items = app.document.selections;
          for (var i = 0; i < items.length; ++i) {
             var item = items[i];   
    var m = item.synchronousMetadata;
    filenameToDesc(m, item.name.slice(0,-4));
    function filenameToDesc(metadata, Description) {
    var strTmpl = "name2Desc";
    var strUser = Folder.userData.absoluteURI;
    var filTmpl = new File(strUser + "/Adobe/XMP/Metadata Templates/" + strTmpl + ".xmp");
    var fResult = false;
    try
    { if (filTmpl.exists)
    filTmpl.remove();
    fResult = filTmpl.open("w");
    if (fResult) {
    filTmpl.writeln("<x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"3.1.2-113\">");
    filTmpl.writeln(" <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">");
    filTmpl.writeln(" <rdf:Description rdf:about=\"\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\">");
    filTmpl.writeln("<dc:description>");
    filTmpl.writeln("<rdf:Alt>");
    filTmpl.writeln("<rdf:li xml:lang=\"x-default\">"+Description+"</rdf:li>");
    filTmpl.writeln("</rdf:Alt>");
    filTmpl.writeln("</dc:description>");
    filTmpl.writeln(" </rdf:Description>");
    filTmpl.writeln(" </rdf:RDF>");
    filTmpl.writeln("</x:xmpmeta>");
    fResult = filTmpl.close();
    metadata.applyMetadataTemplate(strTmpl, "replace");
    filTmpl.remove();
    catch(e)
    { fResult = false; }
    return fResult;

  • Ver.9.5 The volume for file name cannot be found

    HI,
    My work Mac Book pro was recently upgraded to Mavericks from 10.6.8, with iPhoto 11 (ver. 9.5) also an included upgrade. One album of photos is no longer accesible - clicking on each thumbnail provokes the following window "The volume for <file name> cannot be found. The "Try again" option doesn't work, and the alternative, which is to use the finder to locate the file is useless, as the files are buried in a library spare bundle. When I copy the file name, and search on the volume with the library via finder, it pulls up tiny thumbnail size files.
    I have a primary iphoto library on a dedicated USB external drive, which I back up not everytime I update the library (200 gbs spare bundle over USB2!), but regularly. I fear these recently imported files, have not been backed up before up erasing cards, and upgrading system OS, have gone.
    Is there any way of getting into the library via finder, or elsewhere in iphoto to refind the original master files which are in there somewhere? These files opened perfectly in iphoto before the recent upgrade.

    Thanks for the fast response. I've followed your directions and can't find the file in there, in Masters, Originals, or Modified folders. I found files in Thumbnails folder though. Some of the files from the same event are fine, so its not consistent. I'm also noticing that another file in the event has a totally blurred preview (Its a 24mbs Jpg from a Nikon D800) - not sure if this is at all connected.
    The positive news is that my NeoFinder database of drives indicates I should have the 'missing' files on another computer in the office, but I'm still scratching my head on this.

  • " the volume for (file name) cannot be found. Insert the disk or connect to the server volume and wait for it to appear on the desktop, then try again."

    I get an error message in iPhoto when I click on thumbnails of pictures in certain albums. It reads 'the volume for "(file name)" cannot be found. Insert the disk or connect to the server volume and wait for it to appear on the desktop, then try again.'  What does this mean and how do I fix it?

    It means that you imported the files in Referenced mode and have now remvoed them from the Mac. Put the disk or card back.
    For more on iPhoto and file management see this User Tip:
    https://discussions.apple.com/docs/DOC-6361

  • F4 help for file name

    frnds,
    Im using the FM "KD_GET_FILENAME_ON_F4" to get F4 help for file name in presentation server... but it does not seem to work...Y?????????
    and is there any FM to get the file name from the application server..
    points assured to all the answers...
    regrds,
    Madan...

    Try to use WS_FILENAME_GET
      call function 'WS_FILENAME_GET'
        exporting  def_filename     =  space
                  def_path         = 
                    mask             = ',.  ,..'
                    mode             = 'O'
                    title            =  text-038
       importing  filename         =  os_name
                                  RC               =  DUMMY
       exceptions inv_winsys       =  04
                  no_batch         =  08
                                    selection_cancel =  12
                                    selection_error  =  16.
    or
    at selection-screen on value-request for p_file1.
      data wa_file like file_table.
      refresh filetable.
      call method cl_gui_frontend_services=>file_open_dialog
       EXPORTING
       WINDOW_TITLE            =
       DEFAULT_EXTENSION       =
       DEFAULT_FILENAME        =
       FILE_FILTER             =
       INITIAL_DIRECTORY       =
       MULTISELECTION          =
       WITH_ENCODING           =
        changing
          file_table              = filetable
          rc                      = rc
       USER_ACTION             =
       FILE_ENCODING           =
      exceptions
        file_open_dialog_failed = 1
        cntl_error              = 2
        error_no_gui            = 3
        not_supported_by_gui    = 4
        others                  = 5.
      if sy-subrc = 0.
        if rc = 1.
          read table filetable into wa_file index 1.
          move wa_file-filename to p_file1.
        endif.
      endif.
    Max
    Message was edited by: max bianchi

  • How to pass parameter for table name in  form6i.

    Hi ,
    I am facing the problem to pass parameter for table name in form6i.
    If any solution please infirm me earliest to my mail id.
    ([email protected])
    example:
    begin
    select ename into :ename
    from :tab_name
    where empno =7788;
    end;
    It gives error as bad bind variable 'tab_name'
    *** where :ename and :tab_name are form fields
    Thanking you,
    Balasaheb

    object name not taken as table --> what do u mean by
    this?
    Please be more clear..
    Regards
    PriyaI have two block. First block I am displaying all the table using user_objects table. Another block I want display, user which table selected, corresponding table all the records.

  • Please add options for file names on camera or PlayMemories import (ie: 00001 DateTaken DSC)

    Please add options for file names on camera or PlayMemories import (ie: 00001 DateTaken DSC=   00001 2014_10_21 DSC )

    if(!getNewContactsName())
                   createNew();
                   return;
              if(!getNewContactsSurname())
                   createNew();
                   return;
              String checkName = newName;
              String checkSurname = newSurname;
              if(!checkIfDuplicate(checkName,checkSurname))
                   createNew();
                   return;
              if(!getNewContactsHomeNum())
                   createNew();
                   return;
              if(!getNewContactsWorkNum())
                   createNew();
                   return;
              if(!getNewContactsCellNum())
                   createNew();
                   return;
              if(!checkAtLeastOneNumEntered(newHome, newWork, newCell))
                   createNew();
                   return;
              }This can all be done in 1 if statement just use the or operator (||) will save some room
    private void deleteFromList(String nameOfContact, String surnameOfContact)
         {//Start of deleteFromList()
              int confirm = JOptionPane.showConfirmDialog(null,"Are you sure you wish to delete the contact from the phonebook?","Please confirm",JOptionPane.YES_NO_OPTION);
              if(confirm == JOptionPane.NO_OPTION)
                   return;
              elseWhy do you have a return statement in a void method? there's no need for this you can cut out the no part and just keep the yes

  • Internationalization support for File Names

    I want to know does it make sense to provide multilingual support for File Names. Say, I have a file called PurchaseOrder.pdf and it will be sent to users as an email attachment. We can localize the file name(for example, in Chinese: &#35746;&#21333;.pdf).
    But I want to know whether it is a standard to localize the file name. If not, should it be given in English, no matter which locale the user is using.
    Thanks in advance
    Edited by: Giritharan on Feb 1, 2010 1:53 AM

    ... hopefully you will not have to send another document to the same deliverer the very same day. Even if you add the minutes, a date tells you nothing about the contents. This is no problem as long as I receive nothing but purchase confirmations from you. But as a customer I will receive both sales confirmations and invoices, and then I think it's nice to see what the document is about.
    By the way, a person working in an international trading company is supposed nowadays to understand the English words "purchase, sale and invoice", isn't it? Maybe in 50 or 100 years from now Chinese will be the lingua franca. So be prepared for a change ;-)

  • I want parameter for program name entering with f4 help pls send  code

    I want parameter for program name entering with f4 help pls send code
    Points if helpful

    Hi,
    PROG is a string which indicates the type of the object --- program
    u can call the FM as follows
    CALL FUNCTION 'REPOSITORY_INFO_SYSTEM_F4'
      EXPORTING
    <b>    object_type                     =  'PROG'
       OBJECT_NAME               =  p_report</b>
      ENCLOSING_OBJECT                =
      SUPPRESS_SELECTION              = 'X'
      VARIANT                         = ' '
      LIST_VARIANT                    = ' '
      DISPLAY_FIELD                   =
      MULTIPLE_SELECTION              =
      SELECT_ALL_FIELDS               = ' '
      WITHOUT_PERSONAL_LIST           = ' '
    IMPORTING
      OBJECT_NAME_SELECTED            =
      ENCLOSING_OBJECT_SELECTED       =
      STRUCINF                        =
    TABLES
      OBJECTS_SELECTED                =
      RECORD_TAB                      =
    EXCEPTIONS
      CANCEL                          = 1
      WRONG_TYPE                      = 2
      OTHERS                          = 3
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Patil

  • Automator script search document for file name, and rename file to date

    Hi all,
    I'm having a hard time with Automator... and I can't figure out how it's done!
    Searched the web for it a couple of times, spend hours with Automator already, but I guess my need is random!
    The thing is:
    I got a folder with 1066 files, all the files has random names.....
    I got a document (now it's html, but can convert it to PDF or txt or so ever....) with the coressponding random file names in the html.... some words before that there is the date the photo was taken in this format: 08/25/11
    Now I want somehow make automator search that folder each filename... match it in the document with the filename, and rename the files in the folder to the date the photo's were taken.... and that for all 1066 files.....
    anybody a great idea? Some help? I'm a real newby at Automator scrips!
    thanks

    Have you considered A Better Finder Rename 9?
    A Better Finder Rename 9: The Batch File Renamer for Mac OS X
    Otherwise, what you propose seems to be rather like carving the Pieta using a plastic butter knife. But, if you want, here's one example of a rough algorithm to start ...
    * translate the HTML to ASCII text in this format:  filename (date)
    * read one line at a time from the ASCII file
    * for each line, search the folder for the file
    * rename the file according to the (date)
    BTW, you might avoid a strict renaming according to just the date.
    Best luck with this project.
    JJW

  • Individual report path with defined file name from the report settings in Testsand 2012

    Hi,
    I have following task:
    I want to test stand 2012 in each sequence to change the path of the report file. But the naming of the file is to be maintained as these settings can be made from TestStand into the report (DisplayName + _Report_ [<FileDate>] [<FileTime>] <unique>. <File Extension). I can not find now, however, the / callback parameter on which the components are assembled path and file in TestStand.
    While I can read about the callback "GetReportFilePath" the path and file name, and with the expression: Parameters.ReportFilePath = "c: \ \ electro \ \ SHARE \ \ test protocols \ \ Test Logs \ \" change the path, but the file name will no longer be formed from the settings of TestStand.
    I have the suspicion that I'm just not accreting at the right place. Can someone please give me a hint?
    greeting Michael
    Greetings Michael

    See Oracle Metalink,
    ..Oracle Portal Technical Forum,
    ....Subject: PORTAL - uploading files (file attachments) with file names.
    This message thread outlines javascript code that automatically captures the filename during an upload.

  • Bug v4.0 - no input field for file name in export dialog

    Hello,
    I run a query, right click in the result grid and choose "Export". There is no input field to provide a file name. I can only export to the default file.
    Version 4.0.0.13 on XP
    Edit: Seems to be an issue with the settings (maybe those migrated from 3.2.2). When I install without migrating settings I get the full dialog. I will try some combinations and update this post.
    Edit: I installed again without migration my settings. When I set the preferences manually I cannot reproduce the bug. Maybe some bug in the import for the preferences? Maybe it only happens on German XPs.
    Regards
    Marcus

    Thank you, 5p given.
    However this is what I execute and in my file chooser dialog the filename field is still blank.
      ExampleFileFilter filter = new ExampleFileFilter();
        filter.addExtension("html");
        filter.addExtension("csv");
      JFileChooser chooser = new JFileChooser(new File("REPORT_ONE_"));
        chooser.setDialogTitle( "Save Report" );
        chooser.setFileSelectionMode(chooser.FILES_AND_DIRECTORIES);
        chooser.setFileFilter(filter);
        int returnVal = chooser.showSaveDialog(this);
        ...It is in try-catch, no errors are returned.
    Operating System: WindowsXP
    Java Version: 1.3.1

  • SAVE AS script w/Default file name?

    I have created a SAVE AS button on my form however; the default file name is random characters in a temp folder path. How can I change the file name to automatically appear as one of my form field values?
    Ex: Someone presses the SAVE AS button and the dialog comes up with the default file name "FileNameField.pdf".
    I'm not as concerned about the path as I am about the file name. I also want to deploy this for to many people and don't want to install anything at each workstation in order for the script to work.
    It seems like it would be an easy script...but I can't find anything that's remotely 'easy' out there.
    The ultimate goal is to have the File Name = to one of my form fields called 'FileName".
    Thanks for any insight...
    -Joe

    This is only possible with a folder level script.
    You will have to install those script on your system.
    Details and samples can be found here:
    http://thelivecycle.blogspot.com/2009/11/save-form-to-specific-directories-and.html

  • Oracle Reports 10g Distribution - Dynamic file name

    HI all.
    I have a problem in my distribution file.
    The following is my xml file:
    <destinations>
    <!-- Generate one file for all Employees -->
    <file id="MyFiles1" name="C:\Apps_Attach\Jan2007\Rep_all_Employees.pdf" format="pdf" >
    <include src="mainSection"/>
    </file>
    <!-- Generate a file for each Employee -->
    <foreach>
    <file id="MyFiles2" name="&<FOLDER_NAME>&<post_month>&<REP_EMP_NO>.pdf" format="pdf" instance="this">
    <include src="mainSection"/>
    </file>
    </foreach>
    </destinations>
    This is used for generating Pay Slips as pdf files and storing in the AS.
    The users can login to the application with their ID/password and view their payslips only. All working ok.
    I can successfully generate both - single file per Employee and one BIG pdf containing all pay slips - this is for the report generator's viewing only.
    My problem is - I have to store every month's files in a different folder. Say for example, Jan -2007 files in a folder called Jan2007 , Feb 2007's files in Feb2007 folder,etc.
    The parent path for these is fixed - C:\Apps_Attach\
    I am able to do this in the per employee files -
    &<FOLDER_NAME> gives C:\Apps_Attach\
    &<post_month> gives the Jan2007\, Feb2007\,..etc. folder name from Report.
    &<REP_EMP_NO> gives the file name per employee.
    But in the generate one file for all employees, I am not able to use dynamic path name like
    name="&<FOLDER_NAME>&<post_month>Rep_all_Employees.pdf"
    It works fine if I use
    name="C:\Apps_Attach\Jan2007\Rep_all_Employees.pdf" as in my xml file code above.
    Thanks in advance.
    -Anu.

    Anybody knows how?
    -Anu.

Maybe you are looking for