Timestap in Output File

Hi All,
I am using Oracle Developers Suite 10g. I want to generate output file of the Report Developer with time stamp like report01_19-03-2007_17-45-20.rtf
What to do? I am using the following script to generate the report but its generating only like report01.rtf file. Please help so that instead of report01.rtf I can have report01_19-03-2007_17-45-20.rtf file (this is with current date+time).
At desname I have put ?????? if I don't put any thing it generates report01.rtf file.
C:\DevSuiteHome_1\bin\rwrun.exe userid=username/password@DB
report=C:\scm\reports\repfiles\oracle\report01.rep
distribute=no
destype=file
desname=
desformat=rtf
p_countrycode=GB
p_languagecode=en
Thanks

Suggestion -
Improve script
Let include dinamic desname in
desname=
Or use/rename somehow (by script)
report01.rtf
filename with accordance to file timestamp...
( if report01.rtf is not overwritten )
As well maybe for some ideas look "Destinations" http://download-west.oracle.com/docs/cd/B10464_05/bi.904/b13673/pbr_dist.htm#i1006607

Similar Messages

  • XML Publisher - OPP log: Output file was found but is zero sized - Deleted

    Hi,
    I have created one Main template and sub-template is called from it. I am working with Oracle Apps version 12.1.1. XML Source file gets created using rdf file attached to the concurrent program. Now after registering main template with the required concurrent program when i tried to execute it "View Output" button shows XML souce data instead of PDF report which i have called using main template. Log file was showing following error,
    Executing request completion options...
    Output file size:
    33140
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 3739501 on node ORAAPP13 at 09-AUG-2011 22:16:38.
    Post-processing of request 3739501 failed at 09-AUG-2011 22:16:51 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    ------------- 2) PRINT   -------------
    Not printing the output of this request because post-processing failed.
    Finished executing request completion options.
    And the OPP service log has following error, Can anyone guide me to solve this error.
    Template code: AERO_INV_MAIN
    Template app: XXAV
    Language: en
    Territory: US
    Output type: PDF
    [8/9/11 10:16:51 PM] [339827:RT3739501] Output file was found but is zero sized - Deleted
    [8/9/11 10:16:51 PM] [UNEXPECTED] [339827:RT3739501] java.lang.reflect.InvocationTargetException
         at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.apps.xdo.common.xml.XSLT10gR1.invokeNewXSLStylesheet(XSLT10gR1.java:611)
         at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:239)
         at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:302)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:176)
    Caused by: java.lang.StackOverflowError
         at java.text.DecimalFormat.subformat(DecimalFormat.java:877)
         at java.text.DecimalFormat.format(DecimalFormat.java:674)
         at java.text.DecimalFormat.format(DecimalFormat.java:608)
         at java.text.SimpleDateFormat.zeroPaddingNumber(SimpleDateFormat.java:1203)
         at java.text.SimpleDateFormat.subFormat(SimpleDateFormat.java:1142)
         at java.text.SimpleDateFormat.format(SimpleDateFormat.java:899)
         at java.text.SimpleDateFormat.format(SimpleDateFormat.java:869)
         at java.text.DateFormat.format(DateFormat.java:316)
         at oracle.apps.fnd.security.CallStack.getInstance(CallStack.java:97)
         at oracle.apps.fnd.security.DBConnObj.setBorrowingThread(DBConnObj.java:990)
         at oracle.apps.fnd.security.DBConnObj.setBorrowingThread(DBConnObj.java:973)
         at oracle.apps.fnd.common.Pool.costBasedSelection(Pool.java:1885)
         at oracle.apps.fnd.common.Pool.selectObject(Pool.java:1686)
         at oracle.apps.fnd.common.Pool.borrowObject(Pool.java:950)
         at oracle.apps.fnd.security.DBConnObjPool.borrowObject(DBConnObjPool.java:584)
         at oracle.apps.fnd.security.AppsConnectionManager.borrowConnection(AppsConnectionManager.java:330)
         at oracle.apps.fnd.common.Context.borrowConnection(Context.java:1719)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnectionFinal(AppsContext.java:2314)
         at oracle.apps.fnd.common.AppsContext.getPrivateConnection(AppsContext.java:2251)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:2108)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1918)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1762)
         at oracle.apps.fnd.common.AppsContext.getJDBCConnection(AppsContext.java:1775)
         at oracle.apps.fnd.common.Context.getJDBCConnection(Context.java:1453)
         at oracle.apps.fnd.cache.GenericCacheLoader.load(GenericCacheLoader.java:170)
         at oracle.apps.fnd.profiles.Profiles.getProfileOption(Profiles.java:1500)
         at oracle.apps.fnd.profiles.Profiles.getProfile(Profiles.java:362)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfileFromDB(ExtendedProfileStore.java:211)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getSpecificProfile(ExtendedProfileStore.java:171)
         at oracle.apps.fnd.profiles.ExtendedProfileStore.getProfile(ExtendedProfileStore.java:148)
         at oracle.apps.fnd.common.logging.DebugEventManager.configureUsingDatabaseValues(DebugEventManager.java:1294)
         at oracle.apps.fnd.common.logging.DebugEventManager.configureLogging(DebugEventManager.java:1149)
         at oracle.apps.fnd.common.logging.DebugEventManager.internalReinit(DebugEventManager.java:1118)
         at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:1085)
         at oracle.apps.fnd.common.logging.DebugEventManager.reInitialize(DebugEventManager.java:1072)
         at oracle.apps.fnd.common.AppsLog.reInitialize(AppsLog.java:595)
         at oracle.apps.fnd.common.AppsContext.initLog(AppsContext.java:602)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:579)
         at oracle.apps.fnd.common.AppsContext.initializeContext(AppsContext.java:533)
         at oracle.apps.fnd.common.AppsContext.<init>(AppsContext.java:301)
         at oracle.apps.xdo.oa.schema.server.OAURLConnection.getAppsContext(OAURLConnection.java:121)
         at oracle.apps.xdo.oa.schema.server.TemplateURLConnection.getInputStream(TemplateURLConnection.java:89)
         at java.net.URL.openStream(URL.java:1009)
         at oracle.xdo.parser.v2.XMLReader.openURL(XMLReader.java:2353)
         at oracle.xdo.parser.v2.XMLReader.pushXMLReader(XMLReader.java:270)
         at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:256)
         at oracle.xdo.parser.v2.XSLBuilder.processIncludeHref(XSLBuilder.java:1045)
         at oracle.xdo.parser.v2.XSLBuilder.processImportHref(XSLBuilder.java:984)
         at oracle.xdo.parser.v2.XSLBuilder.processImport(XSLBuilder.java:949)
         at oracle.xdo.parser.v2.XSLBuilder.startElement(XSLBuilder.java:373)
         at oracle.xdo.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1252)
         at oracle.xdo.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:338)
         at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:285)
    Regards,
    Priyanka

    And metalink note 1100253.1 states that this issue (java.lang.StackOverflowError) might be caused by a too large set of data to be sorted in the layout file. Recommendation is to removed the sort from the layout file and instead sort the data already in the data definition.
    regards,
    David.

  • How to find name of report if I know name of instance and location of instance in Output File Store

    Hello all,
    can somebody help me to find name of the report if I know name of report instance and also location of instance in Output File Store. It should be done via Query Builder.
    It is ...rpt file as output from Crystal Reports. I tried few commands in Query Builder but usually they finished with timeout error.
    Could you help me and send specific command? Or way how to change timeout of Query Builder?
    Thanks.
    matus

    Hello all,
    We finally found solution.
    We knew that file is located on path .../Output/a_145/009/002/133521/~ce10c.....9332.rtf
    This file has more than 2 GB. We tried to find which report is related and provide necessary actions.
    As I mentioned we still failed due to timeout error - There was an error retrieving data from the server: CMS operation timed out after 9 minutes.
    So we tried to use our testing environment. We started there QueryBuilder and there we successfully tested that we found details about files from FileStore /like Name of the report in Launch Pad, CUID, ...
    SELECT SI_NAME, SI_CUID, SI_FILES FROM CI_INFOOBJECTS WHERE SI_FILES.SI_PATH = 'frs://Input/a_148/020/000/5268/'
    or
    SELECT * FROM CI_INFOOBJECTS WHERE SI_FILES.SI_PATH = 'frs://Input/ a_148/020/000/5268/'
    Best regards,
    matus

  • Customized Seeded report to XMLP report but its not generating output file?

    I want to customize "Dunning Letter Print from Dunning Letter Generate" Report, which is called from "Dunning Letter Generate" Report
    Steps i followed to Customize reports are.
    1. Changed output format to xml for "Dunning Letter Print from Dunning Letter Generate" Report.
    2. Ran report to generate xml data and using xml data created RTF file
    3. Registered data definition and template with code and short name same which is ARDLP_NON_SRS
    Now while i am running report its completing normal, but its not generating output file giving Error like –
    "Unable to find Published Output for this request"
    “No Output File Exist for Request No - xxxxx”
    No Idea why its not picking template, Can anyone help me in this?
    Using:
    Oracle Applications : 10.0.5.2,
    MS Word 2007
    Thanks,

    I am not giving the solution, providing you a hint..
    This is the query you need to satisfy,
    SELECT NVL(R.DESCRIPTION ,CP.USER_CONCURRENT_PROGRAM_NAME)
    FROM FND_CONCURRENT_REQUESTS R, FND_CONCURRENT_PROGRAMS_VL CP,XDO_DS_DEFINITIONS_B XDS
    WHERE ( ( FND_PROFILE.VALUE('CONC_REPORT_ACCESS_LEVEL') = 'U'
    AND R.REQUESTED_BY = :$PROFILES$.USER_ID ) or
    ( FND_PROFILE.VALUE('CONC_REPORT_ACCESS_LEVEL') = 'R'
    AND R.RESPONSIBILITY_ID = :$PROFILES$.RESP_ID ) )
    AND R.PROGRAM_APPLICATION_ID = CP.APPLICATION_ID
    AND R.CONCURRENT_PROGRAM_ID = CP.CONCURRENT_PROGRAM_ID
    AND XDS.APPLICATION_SHORT_NAME=
    ( SELECT APPLICATION_SHORT_NAME
    FROM FND_APPLICATION
    WHERE APPLICATION_ID=CP.APPLICATION_ID)
    AND XDS.DATA_SOURCE_CODE = CP.CONCURRENT_PROGRAM_NAME
    AND R.OUTPUT_FILE_TYPE='XML'
    AND R.STATUS_CODE not in ('E', 'D', 'T', 'X')
    ORDER BY R.REQUEST_ID DESC
    Go to system profiles and query for 'Concurrent:Report Access Level', responsibility you need and modify the profile name accordingly....

  • Error message when publishing and problems opening output file

    I have 5 projects linked together. When I publish one, I get a message that the files listed below are linked to the open project, and one or more of these projects may require exporting. I have tried to open these files and choose File | Export | Project to | but the options in the list (Flash 8 and Flash CS3) are both grayed out--on every one of these files. I'm publishing to Flash 9.
    I didn't think much about this message until a few reviewers said they can't open the project, or when they do, they don't see my playbar on the skin.
    One more thing--when an IT person was trying to help one reviewer open the output file, the IT person said "Oh, there's a problem with the code in line 25." I guess that's the html code? I'm not a programmer, but I can look at html code. What should I be seeing there in line 25?
    Is their problem opening the output file(s) related to my message about possibly needing to export files? Why might they be having problems getting the output file to open?
    Thanks for any insights you can provide!
    SAM

    Hi Sam
    It depends on a number of things. Are you certain you uploaded all the files involved? If not, there will be problems.
    The message about the linked files is quite simply advising you that you have links from that particular movie that will expect to find the files being linked to.
    If a person isn't seeing playback controls and you have included them, it's likely you haven't provided the correct link for them to open and play the file. Typically you provide a link to the HTML page Captivate creates. As long as all the output files are in the same place on the server, you should be good to go.
    Cheers... Rick
    Click here for Adobe Authorized Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • When running an xml publisher report the xml output leads to 9 mb and the excel output file leads to 20 mb.But the output records is originally 4000 records. When copy to new excel it is showing 3.5 mb only. Does anyone knows the answer for this issue?

    When running an xml publisher report the xml output leads to 9 mb and the excel output file leads to 20 mb. The records contained in excel file is 4000 records. When taking the excel records and copy to new excel file the excel file size is 3.5 mb only.Why does the oracle software generates 20mb file?
    Does any one knows the answer please advice?

    Hello,
    This issue is because the Excel output from BI Publisher is MHTML (XML Publisher generates XHTML) not binary .xls.
    MHTML and XHTML are more verbose formats than binary .xls.
    It will be large because the current Excel output is just an HTML and not compressed like PDF. Please use the workaround (save it as .xls file).  This is a known limitation of RTF layout templates.
    BI Publisher Enterprise has a new feature True Excel Templates. The layouts generate binary Excel output.
    Excel Output File Size Generated By BI Publisher is Very Large (Doc ID 760437.1)
    Bogdan

  • How to get Log and Output File Names for a concurrent request

    Hi,
    I am submitting a concurrent frm OAF with the following code in AM
    try{
    OADBTransaction tx = getOADBTransaction();
    Connection conn = tx.getJdbcConnection();
    ConcurrentRequest cr = new ConcurrentRequest(conn);
    Vector parameters = new Vector();
    parameters.addElement("10");
    nRequestID= cr.submitRequest("CIE","DTFEMP","","",false,parameters);
    tx.commit();
    }catch(RequestSubmissionException e)
    How do i get the handle to log and output files for the abvoe concurrent request ?
    One more thing is there a way where we can evaluate the environment variables
    like in the above example once i get a the request id
    logfile = $APPLCSF/$APPLOUT/"l"+requestID+".log"
    and
    outputfile=$APPLCSF/$APPLOUT/"o"+requestID+".out"
    is there a way i can get the values of $APPLCSF and $APPLOUT from the os ?
    Thanks
    Tom...
    Thanks
    Tom ...

    You can query the Fnd_Concurrent_Requests table using Request_ID, which has the log & out file directory details.
    Hth
    Srini

  • No output file on custom Invoice Report

    Hi,
    I have made custom reports using Reports/XMLP for PO, Consolidated Invoice and Invoice. PO and Consolidated Invoice are running fine, my problem is with Standard Invoice.
    I made a modification to the datamodel of the standard report (RAXINV.rdf), creating a new report with the modified data
    (RAXINV_FAR.rdf). After uploading the report and creating the request, I
    followed all the steps that appear in the XMLP User Guide (Generate & register
    data definition, design and register the layout rdf model). After running the concurrent program It ends with no errors, but when I try to fetch the Output. Under View->Requests->Find->View
    Output, I get the error message: "Unable to find published output for this
    request" and after clicking 'OK' I get "No output file exists for request
    XXXXXX".
    The funny thing is that if I run the Concurrent "XML Report Publisher" I can retrieve the missing Output.
    Is there a patch/workaround to get the output without running "XML Report Publisher"?
    I´m on EBS 11.5.10.2 and the XMLP version is 5.0.0

    Stupid case of RTFM -- as I'd changed the mapping (as per other post) to include the ITEM as the higher level node this is the parameeter I need in the recordset
    so when recordset parameter is changed to item the other parameters rmaining the same)
    the file works fine
    Output text file
    1000001|One-time ship-to|ONE-TIME
    1000005|ddfask|;LK;L
    1000010|One Time  Customer Test|SADFIWQEFG
    I've given you the points in any case --although I solved the problem before I saw your post you put me on to the correct track from my other related post where I was missing  the higher level node in the data and message mappings
    Cheers
    and thanks
    Jimbo

  • In RoboHelp 11 Responsive HTML5, is it possible to have 2 different language outputs in one generated output file?

    In RoboHelp 11 Responsive HTML5, is it possible to have 2 different language outputs in one generated output file, similar to WebHelp where the use can select the language from a drop-down list? In Webhelp output you could create multiple Content categories. Is there something similar with the responsive output, or am I forced to have a completely separate set of output files for each language (for example, English, Japanese, Chinese, Korean, and Arabic)?

    As Rick, mentions, there's no default way.
    Having said that, there's nothing stopping you from doing it yourself. You can add a kind of language selector to the layout and set that for every html5 output. With some JavaScript, you can have the user switch between your outputs. It would look like content categories, but you'll have build it yourself.

  • How to calculate number of data records in a XML output file

    Hi,
    After generating a XML output file from Oracle Reports, I want to calculate number of records in the XML file. Is it possible? Specifically, I want to calculate number of records for a group variable ( organization_id, which I use for bursting).
    Thanks for the help.

    Thanks BIPuser. It is useful for me.
    I can use this xsl function within the template. However, I'm also looking to print this in the concurrent request log file. So, outside of rtf template, id there any PL/SQL based XML functions I can use to count the number of records.
    Thanks.

  • Can you fix your help project (via coding) after importing a topic from an output file by mistake?

    Yes - I admit it - I imported html topic files from an output folder of another RH project into the help project I am currently working on (the source files were lost and I needed to bring over a lot of legacy content in a hurry). However, I completely forget that the RH output html file contains unique Java scripting that is used to render the topic properly in a browser, but that same Java Script causes havoc when you open it up in as a source file in another RH Project. Needless to say, it has caused numerous weird things when I went to publish and view my files (but, surprisingly, you don’t really see or notice them in the RH Design WYSIWYG view or preview mode).
    The bad news is that it took about 2 weeks for me to notice the issue (the help output is viewed on a special console running Linux with a QT browser that I only view occasionally). The good news is that is that I figured out what the problem was (that took some hours) and I can restore my help project back to a time before I did the "naughty deed".
    I am now at a crossroads - do I:
    Try to re-enter all of my content from the last two weeks? (Actually, to avoid repeating the same mistake twice, I will need to re-enter the text manually and NOT cut and paste from the RH output files!)
    Or locate and find the offending HTML coding in my topic files (if that is even possible)? Has anybody documented what the RH output file JavaScript code injects into your files, and what files they affect?

    OK - here is the documentation of this weird issue (hopefully, you can read the htlm code in the screen images):
    1. In this topic, I cut and pasted some text into the table you see at the bottom of the screen. I had to reapply the “TableBody” style to this text. After doing this, I moved my cursor to the “Keyboard" text on top. Notice that it is displaying the "TABLEBODY" style, although visually, it is displaying the correct style on screen (“Heading 1”).  
    2.     In HTML view, notice the addition of the class= “TableBody”> code for this “Keyboard” text.
    3.   I then reselected Heading 1 for this “Keyboard” text.
    4.   Notice that the class= “TableBody”> code is now removed for this “Keyboard” text and has just the proper <h1> tagged assigned.

  • How can I have a custom output file destination for each different preset?

    Hey guys,
    I have a bunch of presets in AME but I need to have each preset export to it's own folder. How can I do that? This was a really simple thing to do in Compressor but in Media Encoder is seems like I can only specify one output file destination for the whole application in general and everything gets exported to that folder. Can anyone help me with that please?

    This is a user to user forum. It is not staffed by Adobe employees so you will not always get a direct response from Adobe.
    That being said, the output destination is not tied to the presets so this is not possible without a little extra work. You can change multiple output destinations by selecting multiple jobs and then clicking on one of the output locations to update them all. Another way to set this up would be to use watch folders.
    This is a feature request are aware of but if you would like to add your vote for it, please add that request here: Adobe - Feature Request/Bug Report Form

  • Writing a Vector to a Output File Line by Line.

    Can anyone tell me how to write each element of the Vector on a New Line to the Output file? Right now the Output is in a String across 1 line.
    Now - � t Bowser 5 years 105 lbs.t Bowser 5 years 106 lbs.t Daisy 1 year 30 lbs.t Dog 1 yr 66 lbs.t King 6 years 77 lbs.t Nikki 5 years 68 lbs.
    Here is what I need -
    Bowser 5 years 106 lbs.
    Bowser 5 years 105 lbs.
    Rover 7 years 88 lbs.
    Dog 1 yr 66 lbs.
    King 6 years 77 lbs.
    Nikki 5 years 68 lbs.
    Daisy 1 year 30 lbs.
    Do a find on // Writes Vector Object to a file
    Thank You in advance.
    import java.io.*;
    import java.awt.*;
    import java.util.*;
    public class VectorSort
    Vector v;
    private DataInputStream inputStream = null;
    private ObjectOutputStream outputStream = null; // <== this is for a Vector
    // private DataOutputStream outputStream = null; // <== This is for a Textfile
    (1) Read in Pet Records put them in a Vector, Sort them Print them.
    public static void main(String[] args) throws java.io.IOException
    VectorSort newVector = new VectorSort();
    newVector.connectToInputFile();
    newVector.connectToOutputFile();
    newVector.readInput();
    newVector.sortPrint();
    newVector.closeFiles();
    System.out.println(" ");
    System.out.println("Check A:/DataOut.txt Now");
    public void connectToInputFile()
    String inputFileName = getFileName("Enter input file name: A://DataIn.txt");
    try
    inputStream = new DataInputStream(new FileInputStream(inputFileName));
    catch(FileNotFoundException e)
    System.out.println("File " + inputFileName + " not found.");
    System.exit(0);
    public void connectToOutputFile()
    String outputFileName = getFileName("Enter output file name: A://DataOut.txt");
    try
    outputStream = new ObjectOutputStream( // <== this is for a Vector
    // outputStream = new DataOutputStream( // <== this is for a Textfile
    new FileOutputStream(outputFileName));
    catch(IOException e)
    System.out.println("Error opening output file "
    + outputFileName);
    System.out.println(e.getMessage());
    System.exit(0);
    private String getFileName(String prompt)
    String fileName = null;
    System.out.println(prompt);
    fileName = SavitchIn.readLineWord();
    return fileName;
    //===========================================================================
    public void readInput()
    v = new Vector ();
    try
    String result = "";
    boolean done = false;
    int ctr = 0;
    String next;
    next = inputStream.readLine();
    while ( next != null)
    v.addElement( next.trim() );
    next = inputStream.readLine();
    catch(EOFException e)
    //Do nothing. This just ends the loop.
    System.out.println("Do Nothing Here");
    catch(IOException e)
    System.out.println(
    "Error: reading or writing files.");
    System.out.println(e.getMessage());
    System.exit(0);
    public void sortPrint()
    Collections.sort(v);
    int vsize = v.size();
    for (int j = 0; j < vsize - 1 ; j++)
    try
    outputStream.writeObject(v.elementAt(j)); // Writes Vector Object to a file
    System.out.println(v.elementAt(j));
    catch(IOException e)
    System.out.println("Error Writing Output "
    + e.getMessage());
    System.exit(0);
    public void closeFiles()
    try
    outputStream.flush(); // <== force the buffer to write
    inputStream.close();
    outputStream.close();
    catch(IOException e)
    System.out.println("Error closing files "
    + e.getMessage());
    System.exit(0);

    // did you try with java.io.PrintWriter
    // here is simple method to write file from vector.
    // you need to change obtaining your string value at the vector loop
    private void writeDataLog(Vector vector, String filename)
    try
    PrintWriter pw = new PrintWriter(new FileWriter(filename, true));     
    if (vector.size()>0)
    for (int i=0; i<vector.size(); i++)
    { String str = ((your object)vector.get(i)).getYourString();
    pw.println( str );
    pw.close();
    catch(Exception e)
    { System.out.print(e.toString()); }
    }

  • Creating an output  file using 'GUI_DOWNLOAD' function

    Hi SapAll.
    when i try to create an out put text file using the FM 'GUI_DOWNLOAD' by wiring the follwoing below source code
    CONCATENATE 'ASORT' c_tab 'ASORTYP' c_tab
                    'VKORG' c_tab 'DATAB' c_tab
                    'DATBI' INTO outtab-txt.
    iam not able to create the text file with more than 16 fields.i have tried to create an out put file with 24 fields but i can only see 16 fields in it.so could any body help me in finding out how i can create an Output file with more than 16 fields in the file.
    your help will be appreciated.
    regards.
    Varma

    check your output definition....are you doing something like below?  SAP will transfer 1024 bytes per line with GUI_DOWNLOAD.    After you download, how do you view the data?  Be sure you're looking at the data with something that will show all 1024 bytes, and not jsut 256 or 512.
    types: begin of outline,
               txt(1024),
             end of outline.
    data: outtab type table of outline,
             ls_out type outline.

  • Output file from ABAP program

    I am using the program Z_SAP_HIERARCHY_DOWNLOAD to output a hierarchy in BW to a specified drive. It works fine when I go to SE38 and run it. However, when I run it from a process chain, it doesn't output the file. How can I generate the output file by running the program from a Process Chain? Thanks.

    Hello Uday,
    i suppose if you run the program within a process chain it will be started
    in a background process. All downloads via the SAPGUI onto your local
    PC (or network drive) are not possible in the background because there is no
    connection to your PC during the excecution of the report in the background.
    Try to save the download on an accessible file system on the application server
    and download it from there afterwards.
    Which function module is used to download the data (GUI_DOWNLOAD or the older version WS_DOWNLOAD) in your report?
    To save data on the application server use the ABAP statements
      OPEN DATASET filename FOR OUTPUT    -> for creation of file
      TRANSFER record TO filename                  -> for transfer of one record
      CLOSE DATASET filename                        -> for closing the file
    Regards,
    Ralf Matthies

Maybe you are looking for