Calling each sheet in an excel sheet as csv file in a model

Hi All,
I have an excel sheet as an source having 5 sheets.
So I need to call each sheet in the excel sheet in different models as an csv file.
Thank you in advance.
Regards,
tvmk

Using the normal reverse engineering you should be able to get at the data in the sheets. In the definition of the data model for Excel you can put the "table name" - this might be the Named Range - or it can be the (Excel) "system table" called the same as the Sheet. In English Excel, you get one system table called Sheet1$, Sheet2$...
If you make your resource name a variable, then populate the variable with teh appropriate value before accessing the "table", you should be able to access it dynamically. Then all you need do is write a procedure which reads the Excel system tables to query for the sheet names, and then to iterate through them.

Similar Messages

  • Calling excel to open csv file created by export within same process

    Hello All,
    I'm very new to apex and never done any javascript. My company is trying to convert this old forms programmer. What I'm trying to do for a client is to open excel with a specific template I've created that will format the data from a csv file that is exported from a report region in apex. The problem is they want it to be a single button operation. So when I press the link/ or button to export the csv file, after it is saved, then open excel with the template and let the internal excel macro format the data and chart. Any suggestions/solutions/direction will be greatly appreciated.
    Dan Walsh
    Old form

    Dear Gangadhar,
    Refer this thread and it may give idea on your issue.
        how much rows can be visible in excel sheet
    Regards,
    JP.

  • Why won't excel read my csv file created with the powersell out-file automatically.

    I wrote a PowerShell script that creates a CSV formatted file.  The script simply creates a comma delimited string for each entry and adds it to a collection.  Then the out-file command write it to a file.
    When you open it with Excel each line is put into one cell.  If you import the file and specify the "," as the delimiter, it imports just fine.  If the data is saved out again as a csv file,  the file is about half the size and opens
    just fine with excel.
    If you open the original file and the file created by Excel with notepad, they look the same.
    So the files are different in size, contents look the same, but Excel won't automatically open the original file.
    Any ideas of why this happens?  Also PowerShell and Excel are both running on Server 2012 R2.  Excel is a remote app.
    If I do an export-CSV, I get some kind of information about the object.
    Here is the script:
    foreach ($group in $groups)
       $header += '"' + $group.name + '",'
       $CSVdata = @()
       $CSVdata += $header
       # Create a user entry
       $users = Get-ADUser -filter * |select SamAccountname, Name | sort SamAccountName
       foreach ($user in $users)
          $Groupmembership = Get-ADPrincipalGroupMembership -Identity $user.SamAccountName
          $userentry = '"' + $user.SamAccountName + '",'
          $user
          foreach ($group in $groups)
              if ($Groupmembership.SamAccountName -contains $group.SamAccountName) { $userentry += '"X",'}
              else { $userentry += '"",' }
           $CSVdata += $userentry
          $CSVdata
          Out-File -inputobject $CSVdata -FilePath c:\batch\GroupMembership.csv

    Ok the script works exactly like I want it.  Thank you very much.
    I am trying to understand the script but I am unable to figure out what the line "$keys=$t.Keys|%{$_}"
    does.  I figured ".keys" was a method but my search for it comes up blank.  Do you have a reference you can point me to?  

  • How to save excel report as CSV file with ActiveX

    Hi,
    I'm trying to save my excel test report as a CSV file using ActiveX and I'm having difficulty getting started.  I can't find an invoke node method that enables CSV file conversion. 
    Can anyone shed light on this?  See attached screenshot.
    Thanks
     

    As long as you are using the Report Generation Toolkit, there is no need to use ActiveX for the purpose of saving the Excel file -- Save Report will do that for you.  You can then export (as text) all of the Excel data and use the Write Spreadsheet File to make the .CSV file.  Here is how I would rewrite the final bits of your code --
    I cleaned up the wires around Excel Easy Table a bit.  You'll see I made a VI Icon for Replace Filename, which does (I think) a nicer job of self-documenting than showing its Label.  To make the filename, add the correct extension (.xlsx for Excel, .csv for CSV), use Build Path to combine Folder and Filename, and wire to Save Report.
    The next two functions add the Extract Everything and Write to Spreadsheet, using a Comma as a separator, which makes a CSV copy for you.
    Bob Schor

  • Excel export gives csv file occasionally after multiple exports

    Hi experts!!
    I have the following problem.
    After several exports to excel from the web UI the file format turns to csv, even though the user runs MS office 2007.
    I found 2 notes describing  the issue but these are for other releases and cannot be implemented.
    (I am working on CRM 2007)
    Any ideas????
    Thank you in advance!!!

    Hi,
    for investigating this problem a short introduction to the Excel-Export function is helpful.
    On serverside JavaScript tailored for interaction with the current Table is generated. This code is invoked on the client machine and tries interfacing with Excel via ActiveX-Controls. In a third step the data is requested from the Application Server, this request is processed in the handler class CL_CHTMLB_CONFIG_TAB_EXCEL_EXP.
    I guess that the problem is caused by the JavaScript code executed on the client machen. There is a fallback, if no ActiveX-Control could be initialized a csv-File is requested from the server.
    I would try some JavaScript debugging, the function thtmlbExcelExport in library scripts.js would be a good entry point.
    Regards, Arne

  • Excel comma seperated .csv files save as semicolon seperated

    Hi
    I work with excel 360 student version danish and i'm trying to convert an siemens .xmls generated file to an .csv comma seperated file but excel save it as an semi colon though it's written in help file it should save it as an comma seperated file.
    Any solution on that what i would call a bug thats been there for over a year?

    Kent, I think you're posting a complaint about Excel, which is off topic for the TechNet Website Feedback forum. The best place to post that would be over at http://answers.microsoft.com in the office section.  Below is some boilerplate that
    I've written up that might also help you.
    Thanks,
    Mike
    Unfortunately your post is off topic here, in the TechNet Site Feedback forum, because it is not Feedback about the TechNet Website or Subscription.  This is only one forum among the many that are on the TechNet Discussion Forums, and given
    your post, you likely chose the wrong forum.  This is a standard response I’ve written up in advance to help many people (thousands, really.) who post their question in this forum in error, but please don’t ignore it.  The links I share below I’ve
    collected to help you get right where you need to go with your issue.
    For technical issues with Microsoft products that you would run into as an
    end user of those products, one great source of info and help is
    http://answers.microsoft.com, which has sections for Windows, Hotmail, Office, IE, and other products. Office related forums are also here:
    http://office.microsoft.com/en-us/support/contact-us-FX103894077.aspx
    For Technical issues with Microsoft products that you might have as an
    IT professional (like technical installation issues, or other IT issues), you should head to the TechNet Discussion forums at
    http://social.technet.microsoft.com/forums/en-us, and search for your product name.
    For issues with products you might have as a Developer (like how to talk to APIs, what version of software do what, or other developer issues), you should head to the MSDN discussion forums at
    http://social.msdn.microsoft.com/forums/en-us, and search for your product or issue.
    If you’re asking a question particularly about one of the Microsoft Dynamics products, a great place to start is here:
    http://community.dynamics.com/
    If you really think your issue is related to the subscription or the TechNet Website, and I screwed up, I apologize!  Please repost your question to the discussion forum and include much more detail about your problem, that could include screenshots
    of the issue (do not include subscription information or product keys in your screenshots!), and/or links to the problem you’re seeing. 
    If you really had no idea where to post this question but you still posted it here, you still shouldn’t have because we have a forum just for you!  It’s called the Where is the forum for…? forum and it’s here:
    http://social.msdn.microsoft.com/forums/en-us/whatforum/
    Moving to off topic. 
    Thanks, Mike
    MSDN and TechNet Subscriptions Support
    Did Microsoft call you out of the blue about your computer?
    No, they didn't.

  • OLE Automation EXCEL.APPLICATION OPEN === CSV file

    Hi Gurus,
    no probs to open a XLS file via
          CREATE OBJECT grc_excel 'EXCEL.APPLICATION'.
          SET PROPERTY OF grc_excel  'VISIBLE' = 1.
          CALL METHOD OF grc_excel 'WORKBOOKS' = grc_wbook.
    Open Workbook
          CALL METHOD OF grc_wbook 'Open'
            EXPORTING #1 = gfd_filename.
    but how to deal with CSV ? They're opened not properly.
    I tried #2 = 'CSV' but no luck.
    Any Idea?
    Cheers
    carsten

    COMMA separated files are SEMICOLON separated files in German Windows systems.
    This ist set in Windows System settings for regions (enhanced).
    EXCEL considers this settings when running normally. CSV is stored with ; and will be loaded properly after.
    In OLE mode, EXCEL does not consider this regional setting and expects COMMA
    If there's no option to tell lthe open method of OLE-Excel, I must translate SEMICOLIN toCOMMA before with all risks to translate text instead of separators...
    I saw some opens with #2 as parameter for "read only" but nothing regarding "separator character" (CL_RMPS_MS_OFFICE_TOOLS~GET_BUILTIN_DOC_PROPS_FROM_FIL)
    Thanks & Cheers
    carsten

  • Reading Sheet name from csv file.

    Dear All,
    I am doing one program where i am reading contents from .csv file from oracle forms. I m using utl_file for reading the contents from .csv file.
    But problem is i am having 5 sheets under .csv file and i want to read fifth sheet's data. how do i jump to particular sheet in csv file. please help me in this case. this is very urgent.
    regards,
    Manish n

    I'm not sure of the format of a CSV with sheets : I assume it's a spreadsheet with multiple sheets ?
    I know that using Apache POI you can read (and write) native XLS or XLSX spreadsheets and then iterate through the sheets / rows cells. This requires java knowledge but works really well.
    Steve

  • Docs with prompts can schedule to WebI, not Excel, pdf or CSV

    I have built Custom Access levels but am having problems with scheduling.
    I believe I have given the correct rights in the CAL, but even the standard "Schedule" access level gives this error:
    Sorry, you do not have the right to 'Add objects to the folder' (ID: 1) for 'reportname' (ID: 86429). Please contact your administrator if you require this right.
    This happens for Excel, PDF and CSV formats. WebIntelligence is fine.
    I have checked half a dozen reports in different folders a number of times and results are the same.
    - Users with Schedule rights can refresh reports to webi format
    - Users with Schedule rights can refresh reports WITHOUT prompts to excel / pdf /csv
    - Users with Schedule rights can NOT refresh reports WITH prompts to excel / pdf /csv
    To get Excel, PDF and CSV files created, I have to give "Add objects to folder" access which allows users to save documents which is not wanted for this role.
    It is also not a right granted in the standard "Schedule" role.
    Have added user group with Full Control at root level over all applications and all other folder trees including Temporary Storage, no change.
    BO XI SP 3     BuildVersion=12.3.0.601.BOE_Titan_SP_REL
    BO XI SP 3 FP1     12.3.1.684
    LCM           BuildVersion=12.3.0.601.
    LiveOffice     BuildVersion=12.3.0.601.LO_Titan_SP_REL
    Widgets          BuildVersion=12.3.0.601.

    HI Ralph,
    Were you able to solve this problem?
    Do you know if this is a known bug by SAP?
    thanks,
    Alejandro

  • Working with Excel & CSV Files

    Hello Everyone,
    I am a newbie (well not even that really)! I am thinking of changing from PC to Mac. I have a question about Numbers - for if I can manage it, I don't want to have to buy Microsoft Office for Mac.
    I'm sure these questions are really simple and will make me look stupid, but I have to ask....Firstly, if I only have iWork installed can I still download Excel files onto the computer (to save and then open in Numbers)? Also can I save Numbers files as CSV files (I need to do this to upload data)?
    Those are the two main questions and I would like to thank any responses in advance.
    Cheers,
    Louise

    Hi there!
    First off, being a recent switcher, I'd definitely recommend the switch! Like you, I only bought iWork, and haven't had the need to purchase Office 2008, not that I would need (or like) to.
    I'll just quickly answer your questions, and then elaborate further below.
    -Yes, you can easily open Office 2003 and earlier Excel documents, as well as Office 2007 Excel documents.
    -Yes, you can also export your Numbers file as a CSV file.
    Now, further elaboration. While Numbers can easily open Office 2007, 2003 and earlier Excel files (.xls and .xlsx), as well as many other filetypes, it cannot simply save them as Excel can. For instance, you cannot open an Excel document, edit, and save it - you must save it as a Numbers (.numbers) file, and if you wish to share the document, there is an 'Export' option under the Share menu in the toolbar, through which you can export it as an Excel, PDF or CSV file. It's also worth noting that you can't export as Office 2007 documents as well, not that you should need to.
    Hopefully this answers your questions

  • Need to read each sheet of an excel file and pass it to XI

    Hi
    Actually i need to read each sheet of an excel file and pass it to XI and will create one xml file .I am able to read the excel file by writting a custom module and it is generating the xml output from XI.But my requierment is to read the excel file and create the xml with the sheet name of the excel.suppose sheet name is sheet1, the xml file name will be  sheet1.xml.if sheet name is sheet2 the xml file name will be  sheet2 and so on....how can i pass this parameter from NWDS to SAP XI s i am passing the string which contains the sheet data.

    If I understood correct you are already reading the XLS and creating the XML (not sure if this is a separate executing body out side of XI). Are you using any sort of Object Modal in Java to read the XML? I am aware of Visual Basic object modal for Excel but not sure if one is available in Java from Microsoft.
    The Object modal that you are using must be providing an iterator to loop through each of the sheet in the Excel workbook and you should be able to create the XMLs as you desired.
    I would be glad to look at you module if you are doing it once the XI file adapter has picked up the excel file.
    VJ

  • Read a excel file and split its sheets to seperate file ?

    Dear all :
    How to split a excel file into several file, each have one sheet.my code is as below,thanks:
    import org.apache.poi.hssf.usermodel.*;
    import java.io.*;
    import java.util.*;
    import org.apache.poi.poifs.filesystem.*;
    public class Extractxls {
    public static void main(String[] args) throws Exception
    try {
    POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(args[0]));
    HSSFWorkbook wb = new HSSFWorkbook(fs);
    int sheetCount = wb.getNumberOfSheets();
    System.out.println(sheetCount);
    try {
         while(sheetCount > 0) {
         sheetCount--;
         HSSFWorkbook wb1 = new HSSFWorkbook();
         HSSFSheet s = wb1.createSheet();
         String sheetName = wb.getSheetName(sheetCount);
         HSSFSheet sheet = wb.getSheet(sheetName);
    //     HSSFSheet sheet = wb.getSheetAt(sheetCount);
         System.out.println(sheet.toString());
         s = sheet;
    FileOutputStream fileOut = new FileOutputStream("atest" + sheetCount + ".xls");
    wb.write(fileOut);
    fileOut.close();
    } catch (Exception e) {
         System.err.println("Error: " + e.getMessage());
    } catch (Exception e) { e.toString();}

    The HSSFWorkbook class is part of the POI project:
    http://jakarta.apache.org/poi/
    Regards,
    Dave Gilbert
    JFreeChart Project Leader
    I understand poi porject, my problem is that POI can not read a excel file and split its sheets into seperate file (each have one sheet) ?Does any one know how to do it.

  • Application server file to excel sheet with .csv format

    I am having comma seperated file in the application server, now i want that my program should pick the file from application server and store it in the excel sheet with .CSV extension

    Use the OPEN DATASET and READ DATASET statements to read from the file on application server and the function module GUI_DOWNLOAD to save it on the local system.
    Manoj

  • Moving excel sheet from different files to excel template

    Hi Everyone,
    I need help from you guys.. I want to fetch excel sheet from different files (say for example from 3 excel files) and put in to one template file. If any one have idea regarding this please let me know. Thanks in advance
    Thanks & Regards
    saamy

    Hii Puneet K & nyc,
    Thanks a lot for ur links guys... am already done ...will upload the working code shortly...and am facing some other problem now...when I execute the program in LV 11.0 version its working fine, but when I try to run the same code in LV10.0 (32 bit machine) its showing this error
    "Error -2146827284 occurred at Exception occured in Microsoft Office Excel: Excel cannot insert the sheets into the destination workbook, because it contains fewer rows and columns than the source workbook. To move or copy the data to the destination workbook, you can select the data, and then use the Copy and Paste commands to insert it into the sheets of another workbook.Help Path is C:\Program Files\Microsoft Office\Office12\1033\XLMAIN11.CHM and context 0 in copy_excel_worksheet.vi
    This error code is undefined. Undefined errors might occur for a number of reasons. For example, no one has provided a description for the code, or you might have wired a number that is not an error code to the error code input.
    Additionally, undefined error codes might occur because the error relates to a third-party object, such as the operating system or ActiveX. For these third-party errors, you might be able to obtain a description of the error by searching the Web for the error code (-2146827284) or for its hexadecimal representation (0x800A03EC)."
    If you guys know the solution please let me knoe...thanks in advance..
    Thanks & Regards
    saamy

  • Getting output in excel sheet from jsp file

    Hi,
    I am a new programmer. I am trying to get output in excel sheet by clicking a link on page. I have used that 2 statements
    response.setContentType("application/x-download");
    response.setContentType("application/Octet-Stream");
    response.setHeader("Content- disposition","inline;filename=refdsxresults.xls");
    But it is giving an empty excel sheet. I don't know how to put the data in that sheet which is retrieved by using the query below.
    "select p.port_no,p.block_no,p.slot_no,p.channel_no,p.ref_no,"+
    "p.rr,c.card_type,c.work_or_protect,p.port_status_code,p.tr_id,"+
    "p.dest_rr,p.dest_shelf,p.dest_jack,p.mux,"+
    "sid.work_order_number,sid.pon_a,sid.pon_z,"+
    "sid.circuit_id,sid.account_name,sid.account_no,sid.order_no,sid.item_no,"+
    "sid.a_city_code,sid.z_city_code,p.parent_port_no "+
    "from eon_port p,eon_card c,sonet_item_detail sid "+
    "where p.logical_flag='N' and p.card_no*=c.card_no and "+
    "p.current_path_no*=sid.path_no and sid.action!='DISC' and sid.item_status!='CN' "+
    "and p.equip_no="+equipNumber+
    " order by p.ref_no";
    and also can I use the HTML to get this result in the browser. Could you please give an example. I need it urgently.
    Thanks in advance

    In an earlier post, somebody was saying that you can use regular HTML tables to output an XLS file. I've never tried it, so I don't know it to be true, but give it a look:
    http://forum.java.sun.com/thread.jsp?forum=45&thread=407280&tstart=0&trange=15
    If that doesn't work, you can always return a CSV file (comma seperated values).

Maybe you are looking for

  • World of Warcraft MOP wine OpenGL xf86-video-ati Radeon HD7870

    Good evening ladies and gentlement. I try to run World of Warcraft (currently 5.3) on my machine. My setup: linux 3.10.6-2-ARCH xorg-server 1.14.2-2 xf86-video-ati 1:7.2.0-1 mesa 9.1.6-1 wine 1.7.0-1 World of Warcraft 5.3 Radeon HD7870 GHz Edition Wi

  • Want to move the planning data to HFM

    Any recommendations to move the Planning data to HFM. Thanks in Advance.... Prasanna..

  • SAP Report RSVTPROT: Evaluate Change Logs

    Is there a similar report that anyone knows of to evaluate change logs? A report where you can enter a user name or user range, and a range for table names? Or has anyone customized the SAP logic to do this? We have a very old customized program from

  • How to combine 2 the same tables from 2 different databases

    We have made 2 databases company1 and company2 Both databases contains the same tables Now we want to make a report with server reporting services. The report must give us information from the 2 databases. We use the following query: SELECT     '501'

  • Unable to return books early

    I'm using ADE 2.0 on Windows 7, and can't return books to the library early. I click on "return borrowed item" but nothing happens. Library shows that I still have the book checked out. I used to be able to do this with no problem, but I haven't chec