XSLT Mapping for creating Excel files

Hi ,
I am following the blog /people/michal.krawczyk2/blog/2005/12/10/xi-generating-excel-files-without-the-java-nor-the-conversion-agent-not-possible by Michal regarding conversion of Flat files to Excel file format.
My input xml format is
         <?xml version="1.0" encoding="utf-8"?>
         <FILE>
              <Record>
     <Name>Navin</Name>
                     <EmpID>123456</EmpID>
                     <Location>Bangalore</Location>
              </Record>
             <Record>
     <Name>Ravi</Name>
                     <EmpID>789456</EmpID>
                     <Location>Hyderabad</Location>
              </Record>
         </FILE>
i need to convert this file into an Excel format with each record in single rows with Column Header names as Name,EmpID,Location.
Could you please suggest how the XLST mapping should be done for this as i am very new to XSLT mapping concept.
Please suggest how we can attain the target structure(datatype) and  steps to do this XSLT mapping.
Note:- We are not doing Adapter module for this conversion.
Thanks,
Navin

> i need to convert this file into an Excel format with each record in single rows with Column Header names as Name,EmpID,Location.
This can be done with file content convertion. Use delimiter ; for excel
> Could you please suggest how the XLST mapping should be done for this as i am very new to XSLT mapping concept.
If you do not understand XSLT, you you want to maintain your development, in case if an error?
http://w3schools.com/xsl/default.asp

Similar Messages

  • File TO File-Using XSLT mapping (for Beginners) --- Error in XSLT

    Hi,
    I am following this wiki (TO File-Using XSLT mapping (for Beginners))
    https://wiki.sdn.sap.com/wiki/display/XI/FileTOFile-UsingXSLTmapping%28forBeginners%29
    When creating  Xslt from the MapForce, when I click on the XSLT Tab I am getting the following error
    http://www.flickr.com/photo_zoom.gne?id=1216715484&size=o
    How to correct this error ?.....
    Thanks
    srini
    Message was edited by:
            srinivas

    Hello,
    The XSD you are using is from Data Type and you are using it for mapping.
    Instead export XSD for Message Type and also pass the XML schema for source that will solve the issue and your XSLT will be generated.
    Regards,

  • Customised module for reading Excel files.

    Hi Gurus,
    I have to develop a customsed java module for reading Excel files from PI. I downloaded NWDS 7.31 from following location NWDS Download links - Java Development - SCN Wiki. I have installed it on my local laptop. For developing the module I need following Jar files.
    com.sap.aii.af.ms.svc_api
    com.sap.aii.proxy.svc_api.jar
    com.sap.aii.sec.svc_api.jar
    com.sap.aii.utilxi.server.jar
    com.sap.aii.utilxi.core.jar
    com.sap.xi.mapping.tool.lib_api.jar
    sap.com~tc~bl~txmanagerimpl~plb~impl.jar
    sap.com~tc~je~appcontect_api~API.jar
    com.sap.aii.af.cpa.svc.api
    com.sap.aii.af.lib.mod
    com.sap.aii.af.ms.ifc_api
    com.sap.aii.af.svc_api
    com.sap.xpi.ib.mapping.lib
    1. Where can i get these jar files. I checked these files in my downloaded NWDS 7.31  package, but cold not find them.
    Thanks in advance

    Hi.
    Check this thread.
    Where to get the libraries for XI development - Process Integration - SCN Wiki
    Regards
    Lucho

  • Creating Excel Files on 9i

    What is the best approach/method to creating excel files on 9i using PL/SQL stored procedures/packages?
    I have seen multiple posts on this topic but would like one source for this solution. I have also visited asktom and seen an example using owa_sylk. However, that one is specific to Oracle 8. Is there a newer and more efficient way to creating Excel files?
    Regards...

    Is there a newer and more efficient way to creating Excel files?Nope.
    And if you are required to use a stored procedure, then the best way is to write out a .csv file using UTL_FILE which is probably what you saw in the examples you mentioned.

  • Create Excel file in application server but the field value is incorrect

    Hi Experts,
    i am facing a problem when create excel file in application server using OPEN DATASET command.
    the internal table have 4 field and one of those field contains 19 digit number --> ICCID.
    the code running well, successfully create EXCELfile in application server but the problem is SAP only copy exactly first 15 digit numeric only and the rest became zero 0
    Example :
    the field value in internal table is 8962118800000447654 but when i opened in the excel file the value became 8962118800000440000.
    and if i add alphabet like a8962118800000447654 then it is correct.
    is there is anything wrong with my code?
    here is my code
    CONSTANTS: c_tab TYPE abap_char1 VALUE cl_abap_char_utilities=>horizontal_tab. "Tab Char
    Data : begin of lt_zdsdmmdt00005 occurs 0,
             SERNR (18) type c,
             MSISDNl(20) type c,
             BOX1 (20) type c,
             ICCID(30) type c,
           end of lt_zdsdmmdt00005.
    data : ld_temp(100) type c.
    i_file = '/usr/sap/DM/test_excel.xls'.
    open dataset i_file for output in legacy text mode.
      loop at lt_zdsdmmdt00005.
        move lt_zdsdmmdt00005-ICCID to ld_iccid .
        concatenate lt_zdsdmmdt00005-sernr  lt_zdsdmmdt00005-MSISDN  lt_zdsdmmdt00005-BOX1 ld_iccid
        into ld_temp separated by c_tab.
        transfer ld_temp to i_file.
      endloop.
      close dataset i_file.
    Best Regard,
    Akbar.

    Hi Naveen,
    thanks for your reply,
    i already tried and the result still the same. any idea?
    Best Regard,
    Akbar.

  • Problem to create Excel file

    Hi,
    I'm to create Excel file by C# codes and have got this
    Error 1 Assembly 'Microsoft.Office.Interop.Excel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' uses 'office, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' which has a higher version than referenced assembly 'office, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
    Error 2 Assembly 'Microsoft.Office.Interop.Excel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' uses 'Microsoft.Vbe.Interop, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' which has a higher version than referenced assembly 'Microsoft.Vbe.Interop, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
    using these codes
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.IO;
    using System.Text.RegularExpressions;
    using System.Globalization;
    using System.Collections;
    using System.Diagnostics;
    using System.Drawing;
    using Microsoft.Office.Interop;
    using Excel = Microsoft.Office.Interop.Excel;
    namespace ns1
    class Program
    static void Main(string[] args)
    string orp_path = "//ABC";
    bool allowappend = true;
    string test = "test";
    Excel.Application app = null;
    Excel.Workbook workbook = null;
    Excel.Worksheet worksheet = null;
    Excel.Range workSheet_range = null;
    object misValue = System.Reflection.Missing.Value;
    Excel.Application xlApp = new
    Microsoft.Office.Interop.Excel.Application();
    workbook = xlApp.Workbooks.Add(misValue);
    workbook = xlApp.Workbooks.Add(misValue);
    worksheet = (Excel.Worksheet)workbook.Worksheets.get_Item(1);
    worksheet.Cells[1, 1] = "Run Date";
    workbook.SaveAs("c:\\" + test + ".xls", Excel.XlFileFormat.xlOpenXMLTemplate, misValue, misValue, misValue, misValue, Excel.XlSaveAsAccessMode.xlExclusive, misValue, misValue, misValue, misValue, misValue);
    workbook.Close(true, misValue, misValue);
    xlApp.Quit();
    releaseObject(worksheet);
    releaseObject(workbook);
    releaseObject(xlApp); ...
    on VS 2013. Any advice?
    Many Thanks & Best Regards, Hua Min

    Hey,
    Not sure what the problem is, I got the code working.
    One thing you're doing wrong though: Excel.XlFileFormat.xlOpenXMLTemplate supposes you're using the file extension ".xlsx" (Open XML format) and not ".xls" (Microsoft Excel 97-2003).
    So you should start by changing either the extension to xlsx or the XlFileFormat to
    xlExcel8.
    For further reference take a look
    here

  • ORA-06508 cannot create excel file

    Hi,
    I have forms 6i and windows 7. We have few forms which should create excel files but all of them fail with ORA-06508 and it happens only on my PC. Other colleagues don't have any problem with it. Forms path on my PC is the same as ones on other PC's.
    Also weird, when I run problematic forms through debugger, they work correctly and create excel files.
    How to solve this?
    Tnx in advance,
    Nati

    Nati,
    Recompiling libraries is not an option because of dependencies on too many forms. The number of Forms in your application and their dependencies is irrelevant if you follow one simple rule: Always compile PL/SQL Libraries first; compile Menu Modules second and lastly, compile your Forms. This will eliminate the dependency issues.
    Anyway, mass recompiling is not allowed because of company rules. I disagree with this rule, but I don't work for your company! ;) Perhaps it is time for your company to re-evaluate this rule. :)
    I tried with replacing ";" with ";" in particular form and the result was non-oracle exception 304500 which unfortunately doesn't say anything detailed. If this produced an error, I recommend you close all Forms related applications; re-open Forms builder and try again. This method should never produce an error.
    I have forms 6i and windows 7.Forms 6i is not supported with Windows 7. More importantly, they are not compatible with each other. Forms 6i was designed to run on Windows 95/98. The differences between the Windows versions is tremendous. If you are unable to upgrade your Forms version, then at the very least, I recommend you run your application in Windows XP mode. This is not just setting the "Compatibility" to Windows XP. Take a look at Windows XP Mode - Windows 7 features, Install and Use Windows XP Mode in Windows 7 and Download Windows XP Mode.
    Running Forms 6i on Windows 7 is like mixing Pickles with Ice Cream. Somethings are just not meant to go together. :)
    Craig...

  • Automatically schedule FR or IR reports to create Excel files???

    Hello,
    My client asked me to 1) create reports against Essbase cubes, 2) automate the update of the reports to Excel files and 3) email the results to various people. In the first phase of this project I was able to do some of this as follows:
    1) Created FR reports.
    2) Scheduled the update of the FR reports to PDF files using the scheduler in Hyperion Workspace. NOTE: I created PDF files because that is the only thing that the scheduler can automatically produce from FR reports.
    3) Created an Excel VBA application that emails the PDF files to a variable list of recipients (each report goes to a different list of people).
    Now we are entering the second phase of this project and the client is asking to have the reports created in Excel files instead of PDF.
    ***** Questions *****
    1) Can an IR report be scheduled using the Hyperion Scheduler in Hyperion Workspace to create Excel files?
    2) Is there a utility (either Hyperion or other) that can convert PDF files to Excel files with the exact formatting of the original PDF?
    Thank you,
    Bill H

    Thank you for your reply. After your reply I looked in the Hyperion Workspace User Guide and found how to schedule an IR report to create an Excel file. I think the next thing I am trying to determine is how to do "bursting" in IR. I currently have an FR report that gets data from Essbase. I have scheduled this in Workspace to run for all children of a member (or a different example would be all zero level decendants of a member). The Workspace scheduler allows me to create a file for each member and to add the member name to each filename so that they are different. Can I do the same type of thing with IR?
    Thank you,
    Bill H

  • How to Create Excel File in Background processing with different colors

    HI All
    I am trying to create Excel file in background & send it to user through e-mail, this i could acheive using fucntion module SO_DOCUMENT_SEND_API1, but here my requirement is i want to put different colors to columns of excel & this should happen in Background processing,
    Initially i completed above requirement by using HTML type of document with attachment type 'ALI'  & formatted output using write statement & used colors, after that i took this o/p using save_list function module & then table compress...etc.
    but i don't know how to achieve same if we need o/p in excel as size of object of excel file is less than that of HTML
    I am thankfull to everybody who will help me.
    Regards
    Lokesh

    Lokesh,
    Iam also trying to populate my text file with colors as an attachment . If you know this please let me know.

  • Open data set for reading excel file on application server in back ground

    open data set for reading excel file on application server in back ground

    hi Vijay,
    I am afraid you won't be able to read from Excel file on Appl. Server.
    ec

  • Create excel file in document library from the data in datatable

    Hi ,
    I want to generate files dynamically and have then saved to my documetn library instead of  some location on the  harddisk.
    I want to generate and excel file  which will read data from the sharepoint list.
    Form that data excel will be genereated in the code ,and i want the generated excel directly available in the  document library.
    I could use open xml of excel itneroperablity for the excel file generation.
    How can i do that.

    Hi,
    According to your description, you might want to gather data from a SharePoint list as an excel file and upload it to a Document Library.
    As you said, you can generate an Excel file using the Open XML SDK, I will provide some information about how to get data from SharePoint list and how to upload files
    to a Document Library.
    About the retrieving data from a SharePoint list, we can use SharePoint Object Model:
    SharePoint Object Model -
    SPListItem class
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.aspx 
    Add, Update and Delete List Items Programmatically in SharePoint
    http://www.mindfiresolutions.com/Add-Update-and-Delete-List-Items-Programmatically-in-Sharepoint-372.php 
    About
    How to: Upload a File to a SharePoint Site from a Local Folder:
    https://msdn.microsoft.com/en-us/library/office/ms454491(v=office.14).aspx
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Patrick Liang
    TechNet Community Support

  • Mapping for IDoc to File

    Hi,
           I am doing mapping for IDoc to file scenario.
    Idoc is INVOIC02.
    Source field  is KRATE from segment E1EDP05
    Target field is Rate.
    Mapping rule is as follows.
    zero when Condiditon type (E1EDP05-KSCHL ) = YCSE  ( enter total 15 digits without any decimal in it. The last 2 digits will be treated as digits after decimal )
    Can someone explain the mapping?
    I have to map KRATE and Rate but where does KSCHL comes into this?
    Please explain

    TAKE HELP FROM THESE LINKS : These links can be helpful for you.
    http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/5d/db0e83e8e74202a5bff527055ab7e5/content.htm
    Regards,
    Sandeep Kaushik

  • Java API for reading Excel Files.

    Hi,
    Can you please suggest me any api for reading excel files.
    Right now i am using jxl.jar for this purpose but i am searching for an open source java api better than this.
    Whether POI gives better than this ?
    Thanks,
    Amit Shah.

    Can you please suggest me any api for reading excel
    files.
    Right now i am using jxl.jar for this purpose
    but i am searching for an open source java api better
    than this.
    Whether POI gives better than this ?i don't know about jxl but poi has several features which an excel can contain and it has been vastly improved in the past few versions.

  • Does Adobe provide a free API for creating PDF files

    Does Adobe provide a free API (for Windows) for creating PDF files?   We are currently using
    a basic, internally developed API for creating PDF files, but would like some additional
    capabilities ... in particular the ability to add a watermark that appears when printing
    but not when viewing PDF files on-line.
    If this is not the right forum for this question, please let me know what forum would be
    appropriate.
    Thanks,
    Mark

    OK, with a little bit of searching on Adobe's web site, I found the answer to my question.   Yes, Adobe does offer
    an API for creating/manipulating/reading PDF files:  it's called the Adobe PDF Library SDK and it has to be
    licensed.  Version 9 is the latest.   The cost is decided on a case-by-case basis.    Here is the link:
    http://www.adobe.com/devnet/pdf/library/
    Mark

  • Creating excel file on client machine using oracle pl/sql code

    Hi All,
    I have a situation where in i need to create an excel output file in my client machine, but using UTL_FILE i understood that i need to create the directory on server and i need to read and write on server itself.
    Is there any other way where we can create a excel file other than oracle server, bcos this is used only once and there is no scheduler to execute on server.
    Please do the needful.
    Thanks,
    Santhosh.S

    santhosh.shivaram wrote:
    I have a situation where in i need to create an excel output file in my client machine, but using UTL_FILE i understood that i need to create the directory on server and i need to read and write on server itself.I would say that you only need to to look at basic client-server architecture - what is the client component responsible for and what is the server component responsible for.
    The server should create the data set required by the client - do all the (intense) server processing that servers do well. This data set is then send to the client. The client is responsible for rendering that data set.. or saving it to the client machine storage if needed.
    Within PL/SQL that is quite easy to do using the most common/standard client-server in use today - web based client-server.
    The client is a web browser. It makes a call to the web server, that is serviced by a PL/SQL database procedure - a so-called web enabled procedure. It processes the request from the web browser, and returns a dynamic response. This response can range from HTML and XML, to video and image streams - and also CSV (Character Separated Values) data.
    By default, most web browsers will use the local client spreadsheet application (like MS Excel) to open the CSV response received. Many web browsers will also provide an alternate option of saving that response as a CSV file (that can then be opened later using MS Excel).
    Straight forward and basic client-server - and easily done using PL/SQL. Even easier done using (freeware) Oracle APEX (Application Express). APEX is a PL/SQL software suite that provides a web development system (only web browser required for development) and a run-time system to run the web application you have created.

Maybe you are looking for

  • Universal Dock 'adapter' #14 and #15

    This is a bit esoteric but I have an Apple Universal Dock and it uses a little plastic adapter to match it up to each of the many versions of ipods and iphones. Each of the little white plastic adapters has a number code like 1 or 14 or 15 which maps

  • White space in XML source code

    Ok, I have tried all of the tricks to prevent white space in the code.  The page displays fine, but there are 4 lines at the top of the source code making the file not vaild.  Ideas?  Thanks in advance.

  • Problems with 10.6.2 and ARD

    i updated to 10.6.2 today and when i connect to ARD i get the beach ball when trying to observe computers. so i uninstalled ARD and reinstalled it (version 3) and i get error messages saying there are files missing and to contact the vendor. anyone e

  • "Given final block not properly padded" when using wrong secretKey

    Hello guys, I browsed the questions in this forum regarding my problem, but somehow couldn't find a solution to this. I generated two SecretKey key1 and key2. Now I'm using the Cipher class to encrypt a message to key1. If I try to decrypt it with ke

  • Dynamic Convert get conversion error-Unable to get dynamic conversion.

    Hi , I cheked in a Academy template that system delivered in path /app/ucm/server/customer/DynamicConvert/samples/gui_template and a default layout that system delivered in path /app/ucm/server/customer/DynamicConvert/samples/gui_layout. Then i click