Saving column header in excel file

Hi,
I'm trying to save a table as an excel/.txt file. I'm using the standard "write-to-spread-sheet.vi" to save.
The problem right now is that I can't save the column headers in the file. Any idea how I can do that?
Also I noticed when you save using "write-to-spread-sheet.vi" the saved file is not recognized by Windows. Is there a way to automatically save the file as a text file?
Here's what I have right now (attached)
Thanx!
Attachments:
Table_Good.vi ‏77 KB

The reason you don't have column headers is that you are converting everything to numerics. Your column headers aren't numbers so they can't be converted. Modify Write to Spreadsheet to accept string arrays as inputs per the directions on the block diagram.
If you give a filename with a .txt extension, that's how it will be saved. If you save it with a .xls extension, then that's how it will be saved.

Similar Messages

  • Append time stamp as a column in an excel file

    Hi
    i want to add timestamp to the last column  of my excel file
    my data is this 
    columnA   columnB  column C  columnD
    temp10     temp11    temp12     timestamp       these are header name
    74.212     73.122     73.222      11AM:23:59.012
    73.444     73.223     74.322      11AM:24:02.083
    73.445     73.478     75.555       11AM.24:03.833
      and continue
    I can use write spreadsheet to have the three numeric tempdata but the last column formatted as time stamp and string 
    how do I add time stamp to my data and call the spreadsheet write VI to append to the excel file ?
    help
    Solved!
    Go to Solution.

    You have at least two possibilities:  One is to do the formatting yourself with string functions and write the data as a text file or an array of strings.
    Another is to convert the timestamp to a Double and save it as numeric data.  This is only useful if your are going to read the data back into LV and analyze it there, because Excel's numeric representation of date and time is different from that used by LV.
    Lynn 

  • How to import all column heading of excel to oracle 6i forms(no rows).

    hello,
    I am new to oracle forms.
    There are so many links for importing and exporting data from forms to excel and excel to forms.
    But i want to import all column heading of excel to form (no rows). I am using forms 6i.
    please help me for the same.
    Thank You.
    Edited by: sam8682 on Apr 9, 2013 5:48 AM
    Edited by: sam8682 on Apr 9, 2013 5:50 AM

    Reading from any file is always done in a loop through the records. So, just loop only once. That will give you the first record only.
    If you have some code already you can modify it to something like:
    for i in 1..1 loop
    end loop;

  • Read a Column from an Excel file

    Guys,
    Is there a way I can read a specific column from an excel file, use that data to query and select data from a table and then insert the output into another column of that same excel file.
    Please advise! Thanks

    > Is there a way I can read a specific column from an excel file, use that data to query and select data from a
    table and then insert the output into another column of that same excel file.
    Not easily. An Excel file is typically in a proprietary binary file format. Perhaps saved using the new MS Office XML format.. which would be possible to process via Oracle's XDB.
    But assuming it is in a binary format, you need "something else" to read and parse that file for you - like ODBC or DDE or COM/DCOM, etc.
    Oracle supports Heterogeneous Database Services. On a Windows Server, you can create a database link in Oracle that uses an ODBC driver to connect to an ODBC data source. There are ODBC drivers for Excel. However, this requires the data in the worksheet to be properly marked as a data table. Or did last time I looked at it about 2 years ago.
    You can also call external "interfaces" from PL/SQL using EXTPROC - such interfaces can be DLLs. Which means you do have access to the Win32 API and application APIs from PL/SQL. This can be used to access the content of an Excel file - DDE for example can quite easily do this (you use it to peek the contents of an Excel grid location), but requires Excel to be running and that spreadsheet to be loaded. DDE can also be used to poke contents (write something back to a cell in a spreadsheet).
    But using Oracle code to use an Excel file as a kind of database file... that IMO does not make a lot of sense. At all.

  • Problem while exporting ALV column header to excel sheet.

    Hi,
    I am able to export an ALV grid details to an excel sheet. But the ALV column headers when exported to excel sheet are getting truncated.
    For eg: if my column header in ALV grid is displayed as 'Material' then the column header in excel sheet is 'Mater' only. Remaining portion is getting truncated.
    How can I view the entire column header text?
    Kindly assist.
    Thanks.

    I have the same problem with you, when user export to excel. I fixed it by using
    w_layo-colwidth_optimize = 'X'. <<<<<<<<<<<<This
    perform generate_fcat_reftab
        using 'PRUEFLOS' 'T_INPUT' '' '' 'Inspection Lot' 0.
    form generate_fcat_reftab  using    p_fieldname
                                        p_tabname
                                        p_ref_tabname
                                        p_ref_fieldname
                                        p_output_text
                                        p_output_lenght.
      clear w_fcat.
      w_fcat-fieldname = p_fieldname.
      w_fcat-tabname   = p_tabname.
      w_fcat-ref_fieldname = p_ref_fieldname.
      w_fcat-ref_tabname = p_ref_tabname.
      w_fcat-seltext_s = p_output_text.
      w_fcat-seltext_m = p_output_text.
      w_fcat-seltext_l = p_output_text.
      w_fcat-outputlen = p_output_lenght.
      w_fcat-ddictxt = 'L'. <<<<<<<<<<<<<<<<<<This
      append w_fcat to t_fcat.
    endform.

  • To set a dropdown list for one column in the excel file before downloading

    Hi all,
    I am downloading an excel file which has the format of an internal table with a number of fields. I want to set a dropdown list for one column in the excel file. How can i do this?
    Thanks

    HI ,
    U can use function module " QINT_GET_EXCEL_DATA " ....
    and modify the excel sheet based on ur requirement ......
    Try this ...
    Hope it works
    Thanks
    Shambhu

  • Validating the first two columns of a excel file when importing?

    Hi everyone,
    I have an excel file in the presentation server which has to be uploaded into prog.First the user adds a additonal column in the excel file.
    For example the excel file is intially in this way,
    col1 col2 col3 col4 col5
    Now the user adds one more column 'colx' in the excel sheet and he will upload it into the prog.Before uploading programatically we have to validate that the first two columns of the excel file should be col1 colx(the newly added one).How can I do it?
    Any suggestions please?
    Thank you.

    Hi gopi,
    Thanks for the reply.
    I have one more problem.Now in the excel file I may have only 5 columns in the future it may have more than that.So the internal table which will hold the uploaded values from excel file should be dynamic.I can't declare the internal table with 5 or 6 columns like that.If the user adds some columns in the excel file and upload it,the internal table should hold these columns also.
    i hope u understood my requirement.Can u give me any ideas.If u have any sample code for this kind of requirement.
    Thank you.

  • Saving html tables as excel files

    I am generating some html tables and need to look into the possibility of saving them as an excel file. Could anybody point to any possible venues or means to do such a thing?

    I have written a page that uses javascript to do just that - although it only works with IE. Here's pretty much all of the relevant code:
    function CreateExcelSheet()
      var x=myTable.rows
      var xls = new ActiveXObject("Excel.Application")
      xls.visible = true
      xls.Workbooks.Add
      for (i = 0; i < x.length; i++)
        var y = x.cells
    for (j = 0; j < y.length; j++) {
    xls.Cells( i+1, j+1).Value = y[j].innerText
    }The table that is copied from had to appear in the HTML form.  This is updated using PHP in my case - if your table is static, you can give it an id - to match "myTable" or change the reference that is in the CreateExcelSheet function.<table style="display: none" id="myTable" border="1">
    <tr><td> </td></tr>
    </table>It's called via a button:<form action="#" method="post"><input type="submit" onclick="CreateExcelSheet(); return false;" value="Open as Excel spreadsheet" /></form>You can use my web form here: http://betterwindowssoftware.com/tabletoexcel.php                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Translation of heading in Excel file.

    Hi frnd,
    My requirment is to send a report in excel format to the customer in customer language.
    The headings of each coulmns are translated to customer language format.
    I defined the column heading in Text symbols.
    Goto>text elements->text symbols.
    I have maintained the translation for each countries using:
    se63>translation->R3 enterprise->short text->S3 abap text---->REPT text elements.
    Here i give the object name as my report name and my desired languages.
    i could able to maintain the laguage.
    I am reading the heading using CALL FUNCTION 'LXE_OBJ_TEXT_PAIR_READ_RPT4'.
    My code:-
    y_lv_lang = y_wa_cust-LANGU.
      refresh y_it_label.
      CALL FUNCTION 'LXE_OBJ_TEXT_PAIR_READ_RPT4'
        EXPORTING
          t_r3_lang       = y_lv_lang
          s_r3_lang       = y_lv_lang
          o_r3_lang       = y_lv_lang
          objtype         = y_k_obtyp
          objname         = y_k_objn
         READ_ONLY       = 'X'
      IMPORTING
        PSTATUS         =
        tables
          lt_pcx_s1       = y_it_label
    Here the y_it_label will contain the translated colomn heading where as y_k_objn is the prog name ,y_k_obtyp is the object type which contain 'RPT4' and y_lv_lang contain the language.
    I am able to send report in excel format in customer language via mail. But when the customer is of Russia and ukrane the columns hedaing are printed as
    Ex:-
    'Material' is printed as    > 4  8 7 4 5 ; 8 O insted of of the russian language 'Код изделия'
    when my customer recieves the report as an excel file it gets the coulmn heading as this type wong character.

    Hi Sowmya,
    when you refer to my Excel Export tutorial on SDN: <a href="https://wiki.sdn.sap.com/wiki/x/0mQ">Exporting Table Data Using On-Demand Streams - SAP NetWeaver 7.0</a>:
    use <b>LinkedHashMap</b> instead of <i>HashMap</i>:
      private Map getProductColumnInfos() {
        Map columnInfosMap = new LinkedHashMap();
        columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.QUANTITY, "Quantity");
        columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.ARTICLE, "Article");
        columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.COLOR, "Color");
        columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.PRICE, "Price in EURO");
        columnInfosMap.put(
          IPrivateTableCompBasketView.IProductsElement.TOTAL__PER__ARTICLE,
          "Total Per Article In Euro");
        return columnInfosMap;
    This keeps the order of key-displaytext-pairs passed by the client (table component) to the service (excel export component) stable.
    Regards, Bertram

  • Saving XL Reports to Excel file problem

    Dear Experts,
    I have generated a report with XL Reporter, and I save it to disk. However, when I open up the Excel file in another PC that does not have SAP Business One and XL Reporter installed.
    The Excel file content was not displayed, all that was shown are the XL Reporter formulae..etc.
    How can I save the Excel file to disk so that I can display the file properly (with report values, not xlreporter formula) in a PC with no XL Reporter installed?
    Warmest Regards,
    Chinho

    Hi
    We had a problem with reports generated in Excel 2003 and being viewed in Excel 2007. There is a file excel.exe.config which needs to be dropped into: \Program Files\Microsoft Office\OFFICE12 on the machines that need to view the spreadsheets.
    I cannot remember where this file came from but it may cure your problem. It must be on the SAP site somewhere.
    Hope this helps.
    Regards
    Stewart Clark

  • Saving tracker results to excel file, LiveCycle ES 8.2

    Hi,  I am using a distributed Live Cycle Form ES 8.2 to track data from multiple training evaluations.     I would like to know how to copy the tracker results (the spread sheet of the combined data) into an excel file.    Does anyone know how to do this?  Thanks, Sandra

    I don't think it is possible directly from workspace.
    Rather, you could write a sql query to fetch the tracking data Adobe database. Write a java/.net/flex application to display and export the data to Excel sheet.
    Nith

  • How to put the header in excel file in GUI_DOWNLOAD

    Hi,
    I have a requirement , Which I m downloading the contents of internal table using the GUI_DOWNLOAD  in excel format, I need to keep the first line of the excel sheet as a header, Can any one suggest how to go for this,

    Hello,
    You can have the data in the data tab & field name in the field tab. And so you can download both the field name and the value for the same using the FM u2013 GUI_DOWNLOAD (File type should be u2018ASCu2019).
    Hope, you need additional information to be added as the header.
    One option: You can call the GUI_UPLOAD twice.
    First one with the header in the data tab.
    Second one with the option append = u2018Xu2019 with the actual data and header and pass the same above file name as input.
    Also, there is a solved forum already exists but with a different solution. You can go through the below link also:
    Re: GUI_DOWNLOAD with Header
    Regards,
    Selva K.

  • Column Heading in Excel layout coming to Second Line

    Hi All,
    I am doing an excel Layout using Report Builder 6i. There in excel layout output,
    the cloumn headings are coming in two lines. I mean headings for few last columns are getting wrapped to second line, though corresponding data is coming
    correctly.
    Please help me over this if anyone had faced the same problem...
    Thanks in Advance

    You need to make sure that your column headings in Reports have no 'returns' in them. The text should be all on one line and the text in the layout editor should be no 'taller' than 1 line. Your frame around the column headings should also be no 'taller' than 1 line.
    Hope this helps!!

  • Union all not showing all columns of 2 Excel files

    Hi
    File Excel1.xls has 2 columns: first name and last name.
    File Excel2.xls has 3 columns: first name, last name and middle name.
    Why does "Union all" show only first and last names? I thought that it shows also the middle name. I see it by double clicking box
    Union all. In box Union All Transformation Editor
    I expect such a line:
    Output column name: middle name
    Union All Input 1: <#ignore>
    Union All Input 2: middle name
    Thanks!
    gec

    Hi,
    I think you need to select <ignore> in union all input1 and select middlename in unionall input 2 and Type Middlename in Output Coulmn Name.
    As Shown Below.
    Hope this answer your question.
    If it does mark this as answer please.
    Regards
    Kaushal

  • Error while saving the excel file

    hai all,
    i had an requirement to upload customer master data through lsmw while saving the data in excel file with extension as) text( tab delimeted)(.txt) it is not saving and displaying the message as " the selected file type doesnot support workbooks that contain multiple sheets. to save only the active sheet click ok."
    regards,
    karthik

    Ensure that you have not opened any excel file or text file with similar name.
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • Training and Event Management - Sales Organization

    In <b>Create Billing / Allocation Info (IT1037</b>), Billing Section, there is a field for <b>Sales Organization</b>. Is this Sales Organization to be defined (by Sales Team) in S & D and to be assigned in this Infotype for billing purpose? I presume

  • Why does the data disappear from my form fields when my form is sent over to client ?

    Hi all, I don't know if this is just happening a few times or ALL the time unfortunately:( I normally send over estimates (as regular pdfs) with some filled out Acrobat forms that make up part of the estimate (these include terms of agreement, projec

  • Moving images from 1  catalog into another/book

    I am creating a photo album via LightRoom and Blurb.  I have ~ 250 of my images available to me in this catalog.  I am trying to move an additional 50 images from a different catalog (or Quick Collection) into the book catalog.  Can someone please te

  • How to send data back to publishing stream

    Hi, Environment: ActionScript3.0, FMS, Flash Project created in Flash Develop How to send data back to publishing stream? I need to send data back to publishing stream. Using NetStream.send() we can send data to subscribers but is it possible to send

  • OEM 12c - web logic server(wls1211 and wls 1035)

    Hi , I have installed the wls 12c (wls1211_generic.jar) and later I downloaded EM12CR2 which came with wls( wls1035_generic.jar) I don't want to install the wls which comes with EM12CR2. How can I exclude that while installing the EM12CR2, Since I al