How to output results to a file?

If there is no Debug capability, how to output test results to a file?  Are there any other ways to do this?
Thanks!

Dear Sapport,
You can use the IWDMessageManger to print the message on the webdynpro application iview screen.
Please refer to the more details for the Webdynpro Logging and Tracing to find the root cause:-
[Logging in Web Dynpro (Java) - a guide and tutorial for beginners [Part 1]|Logging in Web Dynpro (Java) - a guide and tutorial for beginners [Part 1]]
[http://wiki.sdn.sap.com/wiki/display/WDJava/LoggingandTracinginWebDynpro|http://wiki.sdn.sap.com/wiki/display/WDJava/LoggingandTracinginWebDynpro]
Hope it will resolve your issue.
Best Regards
Arun Jaiswal
Edited by: Arun Jaiswal on Mar 5, 2012 12:47 PM

Similar Messages

  • How to output data to a file in SCC-SG04?

    I am using SCC-2345 with SCC-SG04 connected to NI-6221 in Windows 2000 in VC6.
    How to output data to a file like data1.dat in VC6 or in Labwindows/CVI?

    Hello mwibm,
    If you just want to do file input/output in LabWindows/CVI, I would take a look at the Formatting and I/O CVI library or the ANSI File I/O functions. For example, if you just want to write an array of data to a file, I would look at the ArrayToFile function or the fwrite/fputs/fprintf ANSI C functions included in stdio.h. The ANSI C functions will also work in Visual Studio. More information on the LabWindows/CVI File I/O functions can be found in CVI help, and more information on ANSI C functions can be found in CVI Help and online at various websites.
    Maybe you could further clarify what problems you are having and what kind of data you want to write to a file.
    Thanks.
    Wendy L
    LabWindows/CVI Developer Newsletter - ni.com/cvinews

  • How get output generated as csv file  by reading  by buffered reader and wr

    how get output generated as csv file by reading by buffered reader and writer

    String file_location = "C\temp\csv.txt");
    try {
         URL fileURL = getClass().getResource(file_location);
         if (fileURL != null){
              BufferedReader br = new BufferedReader(new InputStreamReader(fileURL.openStream()));
              String s = br.readLine();
              while (s != null)  {
                   if (!s.equals ("")) {
                        System.out.println(s);
                   s = br.readLine();
              br.close();
         else {
              // error
    catch (IOException ex){ex.printStackTrace();}rykk
    Message was edited by: a dummy
    rykk.

  • How to output to an excel file?

    Hi,
    I have written a program that gets data from the database and I like to find out how to output the data to an excel file. I have read about similar topic on the discussion board and the solution are for the online application. Mine is a desktop application. The user can specify what the destination file is. Can anyone help. Thanks.

    The simpliest way is to take your data and write it to a Comma Dilimeted File which Excel can read without any problems or user intervention. You would use an ObjectOutputStream. Hope this helps.

  • How  to output a CLOB to file using UTF-8

    I am working on an 9.2.04 database. I'm generating xml using SQLX functions and inserting the result into a table with a column of XMLTYPE datatype.
    The database characterset is WE8ISO8859P15. I need to write the contents of my XMLTYPE column to a file on the server using UTF-8 encoding. I've tried The following :
    declare
    temp_xml xmltype;
    cl clob;
    begin
    select myxml into temp_xml from xml_table;
    cl := temp_xml.getClobVal;
    clob_to_xmlfile('XMLDIR','myfilename.xml',cl);
    end;
    The code for clob_to_xmlfile is :
    PROCEDURE clob_to_xmlfile( p_dir IN VARCHAR2,
    p_file IN VARCHAR2,
    p_clob IN CLOB )
    AS
    l_output utl_file.file_type;
    l_amt number default 32000;
    l_offset number default 1;
    l_length number default nvl(dbms_lob.getlength(p_clob),0);
    BEGIN
    -- notice use of fopen_nchar and put_nchar to use unicode
    l_output := utl_file.fopen_nchar(p_dir, p_file, 'w', 32760);
    while ( l_offset < l_length )
    loop
    utl_file.put_nchar(l_output,
    dbms_lob.substr(p_clob,l_amt,l_offset) );
    utl_file.fflush(l_output);
    l_offset := l_offset + l_amt;
    end loop;
    utl_file.new_line(l_output);
    utl_file.fclose(l_output);
    END clob_to_xmlfile;
    However, the resultant file has somehow 'lost' characters, thereby making the xml malformed. I know by inspection that the XMLTYPE column in my table contains valid xml, so the 'corruption' is occuring when I try writing it to file.
    Is this something to do with characterset s ?? Can anyone help me with this ??

    In 10g, DBMS_XMLDOM has writeToFile() writing XML into files without the temporary lobs. It lets you specify a character set parameter. However, 9.2.0.4 doesn't not support character set conversion so this may not work. The options would be upgrading to 10g or building the function like what you have.
    The presented code seems to have the followings issues:
    (1) the length expansion is not taken into accout; utf-8 encoding needs equal or grater number of bytes to represent the same string in iso-8859-15,
    potentially up to 3x. If your buffer was 32k, you should not read more than 10k at a time in order to make sure all characters read from CLOB can fit into the buffer. This problem apparently can cause unexpected behavior: a
    symptom may be lost characters.
    (2) while ( offset < length ) has a off-by-one problem, as we start counting LOB offset with 1, not zero.
    (3) I think utl_file.fflush needs the new line character at the end of buffer so it can tell how much to write. It would be difficult to write a bufferful of data because you have no idea where a line begins and ends
    while reading a CLOB.
    Probably a more practical approach to make this work would be using the PUT_RAW function with autoflush turned on, where data can be written blindly regardless of when the buffer should be flushed. That is:
    -read 10k from the clob (DBMS_LOB.READ)
    -manually convert it into UTF-8 to a 30k buffer (UTL_RAW.CONVERT)
    -then write it with UTL_FILE.PUT_RAW (UTL_RAW.CAST_TO_RAW)

  • How to output strings to a file faster.

    Hi,
    I need to output large among strings to a file. The requirement is that the time of file processing shall be as short as possible. So I implemented as following:
    Define a StringBuffer and append all the strings first. Open file. Using BufferedWrite to write into it. Close file.
    It works. But sometimes I got OutOfMemoryException if there are to many strings. To avoid this I increased memory.
    I wonder if there is any other solution to do it without increasing memory?
    Saga

    Hi!
    As I understand your problem, you have two possible solutions.
    1. change your approach to somthing like appanding only a fixed number of strings to a stringbuffer and write it to the file (appending each time your write the buffer), clear the stringbuffer. This will prevent from OutOfMenory exceptions but increase file activity.
    2. append the strings directly to the file to prevent OutOfMenory exceptions.This way you have short but frequent file activity.
    Hope this helps
    Timo

  • How to output to client the file ?

    Hello respected developers. I want to send to client the wmsword file, if the client press on url. What link i've to write and what procedure in oracle must be created? Siply --- !!how to do this!! ? File forexample /export/home/alex/1.doc? I don't hope for request, but.......

    Hi Pavel,
    If you do not have a strict requirement of having the files you want to access from a fixed location then you can put the file in a webserver and access is with a URL for eg:
    Put the file under $IAS_HOME/j2ee/home/default-web-app directory and access it from the bowser like
    http://host:port/youfile
    You can add this Link to the required portal component,
    and the user can access it by clicking on this Link
    Hope this helps
    Thanks
    Vineet

  • How to call a SP with dynamic columns and output results into a .csv file via SSIS

    hi Folks, I have a challenging question here. I've created a SP called dbo.ResultsWithDynamicColumns and take one parameter of CONVERT(DATE,GETDATE()), the uniqueness of this SP is that the result does not have fixed columns as it's based on sales from previous
    days. For example, Previous day, customers have purchased 20 products but today , 30 products have been purchased.
    Right now, on SSMS, I am able to execute this SP when supplying  a parameter.  What I want to achieve here is to automate this process and send the result as a .csv file and SFTP to a server. 
    SFTP part is kinda easy as I can call WinSCP with proper script to handle it.  How to export the result of a dynamic SP to a .CSV file? 
    I've tried
    EXEC xp_cmdshell ' BCP " EXEC xxxx.[dbo].[ResultsWithDynamicColumns ]  @dateFrom = ''2014-01-21''"   queryout  "c:\path\xxxx.dat" -T -c'
    SSMS gives the following error as Error = [Microsoft][SQL Server Native Client 10.0]BCP host-files must contain at least one column
    any ideas?
    thanks
    Hui
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

    Hey Jakub, thanks and I did see the #temp table issue in our 2008R2.  I finally figured it out in a different way... I manage to modify this dynamic SP to output results into
    a physical table. This table will be dropped and recreated everytime when SP gets executed... After that, I used a SSIS pkg to output this table
    to a file destination which is .csv.  
     The downside is that if this table structure ever gets changed, this SSIS pkg will fail or not fully reflecting the whole table. However, this won't happen often
    and I can live with that at this moment. 
    Thanks
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

  • How to output query results directly to a file

    Hello,
    I'm new to this and i need to know how to output the results of a query directly to a file instead of it displaying on the screen and then outputting to a file in SQL Developer Version 2.1.0.63.
    Thanks in advance for any help!
    Edited by: user13036938 on Jun 16, 2010 7:24 AM
    Edited by: user13036938 on Jun 16, 2010 7:25 AM

    for a really basic spool:
    SPOOL [FILEPATH];
    SELECT [SOMETHING] FROM [SOMETABLE] WHERE [SOMECONDITION];
    SPOOL OFF;see also:
    http://www.oracle.com/technology/products/database/sql_developer/files/sql_worksheet_commands.html
    for a list of other useful SQLPlus commands supported by SQL Developer
    Edited by: Irian on 16-giu-2010 17.08

  • How to output a query results into a text file

    How to output a query results into a text file instead of outputing it to the screen..
    is there a way for us to write a SQL query which specifies to output the query results to a text file.
    Pls let me know how to do it
    Thanking u in advance
    regards
    Muraly

    Muraly,
    If you are using SQL*Plus 8.1.6 or later, you can also spool output to a file in HTML format, eg
    SET MARKUP HTML ON SPOOL ON PREFORMAT OFF ENTMAP ON
    SPOOL c:\temp\report.html
    SELECT DEPARTMENT_NAME, CITY
    FROM EMP_DETAILS_VIEW
    WHERE SALARY>12000;
    SPOOL OFF
    SET MARKUP HTML ENTMAP OFF
    In iSQL*Plus 9.0.1 (the browser-based interface to SQL*Plus) onwards, you can also send the HTML output to a new web browser window, or an html file -- much easier than the command line method.
    Alison

  • How to output FTP file with Code Page 8400?

    Hi gurus,
           As we know we can use  GUI_DOWNLOAD to download fiel with specific Code Page,
      CALL METHOD cl_gui_frontend_services=>gui_download
        EXPORTING
         filename          = 'E:\TEXT.TXT'
    *      confirm_overwrite = 'X'
          codepage          = '8400' "Chinese
        CHANGING
          data_tab          = i_file
        EXCEPTIONS
         file_write_error  = 1
          OTHERS            = 24.
      IF sy-subrc EQ 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    But my question is how to output file into FTP server with specific code page 8400?
      call function 'FTP_R3_TO_SERVER'
        exporting
          handle         = p_handle
          fname          = p_filename
          character_mode = 'X'
        tables
          text           = i_file
        exceptions
          tcpip_error    = 1
          command_error  = 2
          data_error     = 3
          others         = 4.

    Thanks but it is not my anwser
    I want to output file to FTP Server with specific code page like
    GUI_DOWNLOAD

  • How to output java logging only to a log file except stderr?

    I create a file logging and noticed that java logging output a log file and stderr simultanously. How to output the logging message only to the log file?
    Thanks.

    HarishDv wrote:
    I dont have indesign  installed on my system. I only have the binary , which needs modification and i have to save back to the DB as indd.
    Can't be done, for a realistic assessment of "can". InDesigns documents cannot reliably be created or modified without InDesign itself. (*)
    If you need to do this on native InDesign documents, you have to buy and install it.
    * "Not true, there is always IDML". But that's not a 'binary'; and you cannot (**) "convert" a binary INDD to IDML and back again without InDesign.
    ** Again, for a remotely realistic value of "can".

  • How to save query result on the file server as excel file?

    Hi everyone,
    I need to save the the query result on the file server as excel file.
    Do you have any idees how can I do it?
    Regards
    Erwin

    i dont think you can save as excel file but you can save it as CSV use APD or RSCRM BAPI for this

  • How do I create individual xml files from the parsed data output of a xml file?

    I have written a program (DOM Parser) that parses data from a XMl File. I would like to create an individual file with the corresponding name for each set of data parsed from the xml document. If the parsed output is Single, Double, Triple, I would like to create an individual xml file (Single.xml, Double.xml, Triple.xml)with those corresponding names. How do I create the xml files and give each file the name of my parsed data output? Thanks in advance for your help.
    import java.io.IOException;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import org.xml.sax.SAXException;
    public class MyDomParser {
      public static void main(String[] args) {
      DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
      try {
      DocumentBuilder builder = factory.newDocumentBuilder();
      Document doc = builder.parse("ENtemplate.xml");
      doc.normalize();
      NodeList rootNodes = doc.getElementsByTagName("templates");
      Node rootNode = rootNodes.item(0);
      Element rootElement = (Element) rootNode;
      NodeList templateList = rootElement.getElementsByTagName("template");
      for(int i=0; i < templateList.getLength(); i++) {
      Node theTemplate = templateList.item(i);
      Element templateElement = (Element) theTemplate;
      System.out.println("Template" + ": " +templateElement.getAttribute("name")+ ".xml");
      } catch (ParserConfigurationException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
      } catch (SAXException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
      } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();

    Ive posted the new code but now I'm getting a FileAlreadyExistException error. How do I handle this exception error correctly in my code?
    import java.io.IOException;
    import java.nio.file.FileAlreadyExistsException;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    import org.xml.sax.SAXException;
    public class MyDomParser {
      public static void main(String[] args) {
      DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
      try {
      DocumentBuilder builder = factory.newDocumentBuilder();
      Document doc = builder.parse("ENtemplate.xml");
      doc.normalize();
      NodeList rootNodes = doc.getElementsByTagName("templates");
      Node rootNode = rootNodes.item(0);
      Element rootElement = (Element) rootNode;
      NodeList templateList = rootElement.getElementsByTagName("template");
      for(int i=0; i < templateList.getLength(); i++) {
      Node theTemplate = templateList.item(i);
      Element templateElement = (Element) theTemplate;
      System.out.println(templateElement.getAttribute("name")+ ".xml");
      for(int i=0; i < templateList.getLength(); i++) {
      Node theTemplate = templateList.item(i);
      Element templateElement = (Element) theTemplate;
      String fileName = templateElement.getAttribute("name") + ".xml";
      Files.createFile(Paths.get(fileName));
      System.out.println("File" + ":" + fileName + ".xml created");
      } catch (ParserConfigurationException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
      } catch (SAXException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
      } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();

  • How to use PO message type to output 'Form' as PDF file

    Dear experts,
      I am working for a topic of how to use PO message type to output 'Form' as 'PDF file', and save to external file system automatically.
      Any one familiar to this topic, please kindly give me some guide, thank you!
    Regards,
    Joyce

    Hi,
       Go through the program RSTXPDFT4 (Converting SAPscript (OTF) or ABAP List Spool Job to PDF), you will get some idea.  Using this program you can convert spool into PDF file.
    -Alpesh

Maybe you are looking for

  • Implementing if then else condition

    Hi! All It would be very helpful if i can get answer of how to implement the condition below, using the functions available in graphical mapping editor.... I need to map 2 source fields to 1 Target field, based on the condition that field(source) is

  • How do I stop getting email notifications from Apple. I have checked all of the "no" boxes. Help!

    How do I stop getting email notifications from Apple support. I have checked all the "no" boxes. Help!

  • Iphone 3gs isn't recognized by itunes

    I am using the most updated itunes version with windows 7 64 bit. I can connect to itunes with my iphone 4GS, but my old Iphone 3GS isn't being recognized by itunes. I have tried turning iphone off and on and restarting computer. I can connect everyt

  • Inbound Remittance Advice Text field

    Greetings All, When we create a remittance advice (tables AVIK, AVIP, AVIR) via FM IDOC_INPUT_REMADV, the AVIP-sgtxt field is getting populated with "CUSTDISPUTEDDE|"AVIP-XREF field content"|CUST DISPUTED|USD", when there is no match to an existing d

  • Kodi hangs the system

    I am searching solution for this for about a half year. XBMC/KODI freezes whole system (it doesn't respond to any input, even http or ssh stops to respond), sometimes whein it starts, often when searching for new files in music folders, sometimes tot