PeopleCode to "Save As" - convert an excel file to XML file

All,
Is there any way to convert an excel file to XML file via PeopleCode? I can manually "Save As" an excel file to be an XML file, but is there anyway of doing it via PeopleCode? I guess it would be a little possible via VBScript, but since by App server resides on a Unix box, that would not work.
Any help would be really appreciated.
Thanks,
Mani

The attached zip file contains several VI's to read and write directly to Excel using ActiveX. There are several example VI showing how to use everything. This set is saved in LabVIEW 6.0.2.
I suggest you unzip these to your user.lib directory so you'll be able to easily access them from the functions palette.
I have not actually used these, but others that have say they have worked well for them.
Good Luck
Ed
Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Attachments:
excel_lv6i.zip ‏898 KB

Similar Messages

  • Excel file to XML file

    Hi Expets!
    I have a requirement to convert  Excel file to XML file. This is new to me . When i serach in SDN i came to know that we want to create an EJB Module. I am not having much knowledge in Java bean. we are using the PI7.1 version.
    I need to know what is the basic requirements for creating this EJB Module and also some inputs for how to start with this scenario.
    Thanks and Regard's
    Preethi.

    u have to create a adapter module for the same...
    /people/shabarish.vijayakumar/blog/2009/04/05/excel-files--how-to-handle-them-in-sap-xipi-the-alternatives
    http://wiki.sdn.sap.com/wiki/display/ABAP/AdapterModuleToReadExcelFilewithMultipleRowsandMultiple+Columns
    /people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter
    Libraries for adapter module development:
    http://wiki.sdn.sap.com/wiki/display/XI/Where%20to%20get%20the%20libraries%20for%20XI%20development
    how to create adapter module in PI7.1:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c0b39e65-981e-2b10-1c9c-fc3f8e6747fa

  • How to convert Xls file into Xml file

    Hi,
    I am trying to convert Xls file into Xml  but there  is no any direct procedure for it
    Pls help me out to convert Xls file into Xml file
    Thanks
    Anushree

    you will require to write a module in your file adapter for the same.
    ref: /people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter as mentioned in the earlier post.
    Else you can also use Conversion Agent to read the same.
    Ref: http://help.sap.com/saphelp_nw04/helpdata/en/43/4c38c4cf105f85e10000000a1553f6/content.htm

  • How to convert a Form to a Text file and XML file?

    Hi:
    I want to convert a Form to a Text file and XML file,but I don't know how convert?
    Please help!
    Oracle Form Builder V10.1.2.0.2
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
    Thanks in advance!

    ..or follow the steps in Mtalink note; Doc ID: Note:196924.1
    Forms XML Conversion Feature ( Converting Forms To XML)

  • Converting Dom Document object into XML file removes the DTD

    Hi All
    My xml is dtd. I have one xml file. i changed the node value after that i want to create a xml file with the same name. I created new xml file but i am not seeing the old dtd in the new file. This process is done with the help of jaxp.
    My code is given below
    File fileInput = new File("input.xml");
              File fileOutput = new File("output.xml");
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              factory.setExpandEntityReferences(false);
              DocumentBuilder builder = factory.newDocumentBuilder();
              Document document = builder.parse(fileInput);
              TransformerFactory tFactory = TransformerFactory.newInstance();
              Transformer transformer = tFactory.newTransformer();
    transformer.setOutputProperty(javax.xml.transform.OutputKeys.INDENT, "true");
              transformer.setOutputProperty("{http://xml.apache.org/xslt}indent-amount", "2");
              DOMSource source = new DOMSource(document);
              FileOutputStream fos = new FileOutputStream(fileOutput);
              StreamResult result = new StreamResult(fos);
              transformer.transform(source, result);
    Thanks in advance

    The Transformer API does not guarantee the preservation of that information. You may want to check the DOM L3 Load/Save package (http://java.sun.com/javase/6/docs/api/index.html). Alternatively, you may force things by setting the additional output properties 'doctype-public' and 'doctype-system'.

  • How can convert HTML file into xml file?

    Hi,
    I am receving one HTML file as an input and i want to convert that receiving(html file) into .xml file.Is there any converter (tools)to do this.Pls if any give me the details with regard.
    Regards,
    mahesh.

    Use the HTMLEditorKit to parse the html file.
    this kit is having the callback methods which
    are called wenever the tag appears in the HTML
    stream.

  • Java code for converting EDI file to XML file

    Dear friends,
                     Can you please help me in getting the java code for converting to EDI file to XML file.

    Hi,
    You can convert the EDI file to XML in any of the ways
    1) Using third party seeburger adapters
    2) Conversion agent
    3) Stylus studio.
    I think using java code it will be very difficult.
    Thnx
    Chirag

  • Conversion of xls file into xml file

    Hi,
    i want to convert xls file into xml
    pls let me know the procedure for it
    Thanks

    Hi Anu,
    U can use FM <b>SAP_CONVERT_TO_XML_FORMAT</b> to convert data to XML.
    Or u can use some threads related to this FM. So that u can get better idea about this.
    Check this link also
    conversion of xls file into xml file
    regards,
    raghu

  • Is there any way to use the iTunes .itl file or .xml file to see what files I had previously to re-download songs?

    I recently had to restore my computer and in the process of backing up my music library, half of my library from the letter 'm' onward was deleted.
    I want to see if I could use the existing .itl file or .xml file that was automatically saved by iTunes in the iTunes folder previously (which I backed-up in my external drive) to view my past library.
    I tried importing the library by going to File > Library > Import Playlist, but I got an error that said:
    "Some of the songs in the "iTunes Music Library.xml" were not imported because they could not be found.
    The .itl file was no help either in this case.
    IS THERE ANYTHING I CAN DO?

    How did you try to make use of the .itl file? Double-clicking on .itl files doesn't switch libraries but opens whatever is currently the default library. To switch between library files either press and hold down shift as you launch iTunes until prompted to choose or create a library, or swap out one library file with another as described in Empty/corrupt library after upgrade/crash.
    There is also a link there to tips on recovering media from your device or account history. You may also be able to undelete media from the drive if the space it occupied has not yet been reused.
    tt2

  • Message Mapping Error in Text File to XML file Scenario

    Hi Gurus,
    This is Sudheer...I am New to SAP-PI......
    Below link is File to File Scenario(Text File to XML File)...
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/basicFileAdapterContentConversion
    I am facing Message Mapping Error....I am not able to map the fileds...
    Please help me.
    -Sudheer

    Thanks Shabarish & Manisha for your reply....
    Ya I am getting error while I am testing in IR....
    I dont know how to map the fields that shown given below...
           Message Type         ---         Message Type
                 Record                              Employee
                     Header                                 EmployeeID
                         Key                              Name
                         EmpID                          Company
                         Name                            Phone
                         Company                       Prior_Employer
                         Phone                               Company         
                      Detail                                   Location
                          Key
                          Company
                          Location

  • Fixed length file to xml file

    Hi,
    Fixed length file to xml files.
    i have to generate 2 xml files based on a field in the incoming file. structures of both xml files are same.
    I want to know how many target data type ,target msg interfaces have to be created?
    Thanks.

    Ok got you. Best thing would be to use  a simple OS command copy in your receiver communication channel. So do one mapping and generate one file and then use the OS command in receiver comm. channel after message processing then it should work for you.
    Regards,
    ---Satish

  • Flat file to xml file

    hello
    I am having a scenario a flat file to XML file. in the comm. channel of the sender I made a content conversion to the file and I see in the SXMB MONI and it looks ok. the output file, is declared as a file and I recieve an empty xml file.
    what am I missing?
    why it doesnt go out through the mapping that I declared so I will get a valid XML with its data?
    Kfir

    Hi,
    Please can you take the Sender side Payload from SXMB_MONI and try to test the mapping in Message Mapping ---> Test Tab.
    See if you are getting the same results. Even check if you have properly map the Header nodes in Mapping.
    Thanks
    Swarup
    Edited by: Swarup Sawant on Aug 4, 2008 8:08 AM

  • XML file 2 XML file

    Hi all,
    I have low experience with XI but I have created a scenario XML file to XML file (reference wiki.sdn.sap.com) where sender e receiver files are located into XI folders . The steps defined are :
    product;
    software component;
    technical system (thirdy-part);
    business system;
    import sofware component into integration repository;
    namespaces;
    data type (sender/receiver);
    message type;
    message interface;
    message mapping;
    interface mapping;
    configuration scenario into integration config.;
    assign business system;
    communication channel;
    file adapter with source e destination directory (folder XI), file name e processing parameters;
    receiver and interface determination
    sender and receiver agreement.
    When put the input file into sender folder I don't have output file and sxmb_moni is empty for XML message.
    Thanks in advance.
    Miki

    Hi Maurizio,
    you don't see anything entering inside your sxmb_monitoring: do you mean that the payload is empty or that you don't see any messages in the overview table?
    If you don't see any messages, this means that in the message is not send from your adapter engine towards your integration engine.
    Check wether:
    1) your communication is set up properly and is active
    2) your communication channel is functioning correctly via communication channel monitoring in the runtime workbench (goto the integration builder --> runtime workbench --> Component monitoring --> click on display --> click on adapter engine --> click on communication channel monitoring --> search for you communication channel and check for errors.
    3) check your sender agreement
    If you have an empty payload, check your payload in the first step of your message pipeline and check wether the payload has the expected layout.
    Kind regards
    Joris

  • 403 Error Transmitting the message to endpoint for XML file to XML file

    Friends,
    This is my 4th day learning XI and getting below issue.
    I'm trying to follow the steps to transfer XML file to XML file scenario and when I drop the sender XML file, it seems the file has been picked-up but it does not generate the output file.
    I checked in RWB for the message and found below error:
    2008-01-04 13:09:48 Error Transmitting the message to endpoint http://sappc:8000/sap/xi/engine?type=entry using connection AFW failed, due to: Received HTTP response code 403
    I tried to access http://sappc:8000/sap/xi/engine?type=entry from new browser window and I get the same error "403".
    I'm able to access http://sappc:8000 fine.
    I would appreciate help on this.
    Thanks in advance.
    Hetal

    Sorry! you were correct I was looking at wrong file adapter. The message is error: (It gives 401 error during XICACHE update)
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Receiver Identification
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="XICACHE">UPDATE</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>HTTP status code401 Unauthorized</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>An error occurred when refreshing the XI runtime cache</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>

  • How can I convert an Excel file to XML file

    The problem is I am given an Excel file and have been asked to convert it to an XML file using Java.Can any body highlight any clue regarding this? My thanks in advance.

    Gotta use your own imagination.
    I'd have a root tag <excel-spreadsheet>. Under that I'd have a <worksheet> tag for each worksheet. Under that I'd have a <row> tag for each row. Each <row> tag would have <column> tags, with "name" attribute, and the spreadsheet entry as the value.
    The problem is that you can't really map everything that will go into a spreadsheet into this stream (e.g., graphs, stray cells, etc.) It maps well to tables, but that's it.

Maybe you are looking for

  • Delta question while using 'RSAX_BIW_GET_DATA_SIMPLE for delta datasource

    Hello all, we have created a custom datasource using FM and we have written it pretty much as a copy of this FM 'RSAX_BIW_GET_DATA_SIMPLE'. we are using this extractor to extract data from one of the HR infotypes. Now how it works with infotypes is s

  • Oracle BI Publisher - Passing multiple wildcard search to a bind variable

    Hi, Please help me in resolving the below mentioned issue: I have developed a report in oracle BI Publisher with a SQL query. While scheduling the report to run I used to pass mutilple parameters like CGAMSVC08,RLCSVC51 If the pass the parameter with

  • Error 43 when trying to access smb network mount

    I have on a couple of laptops this problem where when I try and connect to a network share using smb I get my authentication window as normal, but it fails to mount with an eero of -43. I have deleted my keychain entries for the network share and hav

  • Can someone explain what a smart album is?

    I went to the iPhoto help section but need a basic explanation of what a smart album is and why I should make one. Thanks!

  • Re: Very slow broadband speeds

    how can i speed up my broadband its 1mg up load and 0.37 download i have rung bt and they said its because i live far from the exchange in milton keynes why dont BT TELL US THIS WHEN WE SIGN UP IMWANT TO CANCEL MY CONTRACT BUT IM NOT WILLING TO PAY T