Help needed with xml to flat file conversion

Hi all,
I am doing a webservice (SOAP) to file scenario. The file I get into the target directory is as below.
<?xml version="1.0" encoding="UTF-8"?>
<ns1:MT_Test_interface xmlns:ns1="http://test_namespace.co.uk"><fieldA>0000012345</fieldA><fieldB></fieldB><fieldC>0010203040</fieldC><transaction_type>NEW</transaction_type><transaction_date>2011/08/21</transaction_date><sales data>PARTNERS (((119006.258 169077.102), (372718.323 77854.466, 371449.872 70783.383), (382225.17 73214.976, 398410.463 95156.636)))</sales data></ns1:MT_Test_interface>
But I want it to be a plain text file like below, not an xml file.
0000012345
0010203040
NEW
2011/08/21
PARTNERS
(((119006.258 169077.102), (372718.323 77854.466, 371449.872 70783.383), (382225.17 73214.976, 398410.463 95156.636)))
What are all the modules I need and also the parameters and their values please?
Any help is appreciated.
Thanks.
Ramesh.

Thanks guys.
My xml now is like this:
<?xml version="1.0" encoding="UTF-8" ?>
- <ns1:MT_test xmlns:ns1="http://test.co.uk">
- <REPORT>
  <company_number>0000043239</company_number>
  <transaction_type>CREATE</transaction_type>
  <transaction_date>2011/08/21</transaction_date>
  <sales_data>Partners (((119006.258 169077.102), (372718.323 77854.466, 371449.872 70783.383), (382225.17 73214.976, 398410.463 95156.636)))</Partners>
  </REPORT>
  </ns1:MT_test>
I am using the content conversion as below:
Recordset Structure: REPORT
Name: REPORT.addHeaderLine      Value: 1
Name: REPORT.fieldSeparator      Value: ,
Name: REPORT.endSeparator      Value: 'nl'
Name: company_number.endSeparator      Value: 'nl'
and I am getting the result as:
company_number,transaction_type,transaction_date,sales_data
0000043239,CREATE,2011/08/21,Partners (((119006.258 169077.102), (372718.323 77854.466, 371449.872 70783.383), 382225.17 73214.976, 398410.463 95156.636)))
But I want file like this:
company_number,transaction_type,transaction_date,sales_data
0000043239
CREATE
2011/08/21
Partners (((119006.258 169077.102), (372718.323 77854.466, 371449.872 70783.383), 382225.17 73214.976, 398410.463 95156.636)))
What will be the CC parameters please?
Many thanks.
Ramesh.

Similar Messages

  • XML to flat file conversion

    Hi,
    Iam working on Idoc to file scenatio.Using java mapping I have mapped the Idoc to an XML format. Now I have a problem in converting the XML format to flat file format.
    My XML is as follows:--
    <Record_Idoc>
      <Record>
        <Header>
            <Order_no>10000398</Order_no>
            <Order_Type>ZSTQ</Order_Type>
            <Material_Head_no>1800406</Material_Head_no>
            <Material_Head_Desc>MARC MOL MEZ R16 FY02.</Material_Head_Desc>
            <Production_version>0003</Production_version>
            <Test_Order/>
            <Quantity_planned>801.00</Quantity_planned>
            <unit>PCE</unit>
         </Header>
        <operations>
             <operation_number>0010</operation_number>
             <Work_center>P_SIG</Work_center>
             <setup_start_date>20020619</setup_start_date>
             <Setup_start_time>060000</Setup_start_time>
             <Processing_start_date>20020619</Processing_start_date>
             <Processing_Start_Time>060000</Processing_Start_Time>
             <End_date>20020619</End_date>
            <End_Time>061600</End_Time>
         </operations>
        <operations>
             <operation_number>0020</operation_number>
             <Work_center>P_BFB</Work_center>
             <setup_start_date>20020619</setup_start_date>
             <Setup_start_time>060000</Setup_start_time>
                <Processing_start_date>20020619</Processing_start_date>
             <Processing_Start_Time>060000</Processing_Start_Time>
             <End_date>20020619</End_date>
             <End_Time>074926</End_Time>
          </operations>
      </Record>
    </Record_Idoc>
    My output flat file should be as follows:--
    Each record contains the following lines
    Header.........
    Operations......
    Operations......
    I have used File content Conversion in message Protocol
    These are my setting:--
    Header.addHeaderLine  nl
    Header.fieldSeparator  ,
    Header.endSeparator   nl
    operations.addHeaderLine  nl
    operations.fieldSeparator  ,
    operations.endSeparator   nl
    But seems that these settings does not work.
    Could some one help in solving this issue.
    regards
    Praveen

    try,
    Recordset Structure - Header,operations
    Header.fieldSeparator ,
    Header.endSeparator nl
    Header.addHeaderLine X  *****
    operations.fieldSeparator ,
    operations.endSeparator nl
    and in case it doesnt work try removing the Record_Idoc node from the XML in mapping and then try the Cont. Conv.
    X can be
    0 – No header line
    1 – Header line with column names from the XML document
    2 – As for 1, followed by a blank line
    3 – Header line is stored as NameA.headerLine in the configuration and is applied
    4 – As for 3, followed by a blank line

  • SAP IDOC XML to Flat File Conversion

    Hello,
    I have downloaded SAP schema through the "Consume Adapter Service" with properties GenerateFlatFileCompatibleIdocSchema = "true" and FlatFileSegmentIndicator = "SegmentType". I am trying to convert IDOC XML into a IDOC Flat File.
    Though the flat file gets created it has a "/" at the end of each blank field which I do not want in the flat file. I see the schema has <recordInfo structure="delimited"...> which I believe should be "positional". I tried
    changing preserve_delimiter_for_empty_data="True" and suppress_trailing_delimiters="False" properties also but did not help.
    I would appreciate any help on this.
    Thanks,
    Tarun

    Hi Tarun....
    please check this property set this property GenerateFlatFileCompatibleIDoc is set to false

  • XML to flat file conversion using file content conversion in reciever CC

    Hi,
    Iam working on Idoc to File scenario.
    Iam having a problem in the communication channel of reciever.
    Iam using File content conversion in Reciever Adapter.
    My xml format is asfollows:--
    - <Header>
      <FILLER1>KTP</FILLER1>
      <YEAR_IDOC>YEAR 2006</YEAR_IDOC>
      <FILLER2>FIRSTWEEKNUMBER</FILLER2>
      <WEEK_IDOC>51</WEEK_IDOC>
      <FILLER3>NUMBER WEEKS 26</FILLER3>
      <PLANT_CODE>FACTORYM019</PLANT_CODE>
      </Header>
    - <Record>
      <First_material>731000</First_material>
      <First_quantity>0000.0</First_quantity>
      <First_quantity>0001.9</First_quantity>
      <First_quantity>0000.0</First_quantity>
      <First_quantity>0000.0</First_quantity>
      <First_quantity>0020.0</First_quantity>
      <First_quantity>0000.0</First_quantity>
      <First_quantity>0000.0</First_quantity>
      <First_quantity>0000.0</First_quantity>
      <First_quantity>0018.0</First_quantity>
      <First_quantity>0000.0</First_quantity>
      <Second_material />
      <Seond_quantity>000000</Seond_quantity>
      <Second_quantity>0011.0</Second_quantity>
      <Seond_quantity>000000</Seond_quantity>
      <Seond_quantity>000000</Seond_quantity>
      <Seond_quantity>000000</Seond_quantity>
      <Seond_quantity>000000</Seond_quantity>
      <Second_quantity>0049.0</Second_quantity>
      <Seond_quantity>000000</Seond_quantity>
      <Seond_quantity>000000</Seond_quantity>
      <Second_quantity>0067.0</Second_quantity>
      <Third_material />
      <Third_quantity>000000</Third_quantity>
      <Third_quantity>000000</Third_quantity>
      <Third_quantity>000000</Third_quantity>
      <Third_quantity>0008.0</Third_quantity>
      <Third_quantity>000000</Third_quantity>
      <Third_quantity>000000</Third_quantity>
      </Record>
    The file format should be as follows:--
    KTP   YEAR 2006 FIRSTWEEKNUMBER 51   NUMBER WEEKS 26  FACTORYM019
    731000  0000.0 0001.9 0000.0 0000.0 0020.0 0000.0 0000.0 0000.0 0018.0 0000.0
            0000.0 0011.0 0000.0 0000.0 0000.0 0000.0 0049.0 0000.0 0000.0 0067.0
            0000.0 0000.0 0000.0 0008.0 0000.0 0000.0  
    Could some one help me in resolving this issue.
    Regards
    Praveen

    Hi Praven,
    couldn't you simply modify your target DATA type so it will be easier to handle?
    For example something like:
    <Header>
    </Header>
    <Record>
    <Material>
    <Number>..</Number>
    <quantity>..</quantity>
    <quantity>..</quantity>
    </Material>
    In this way file content conversion will be easier (easy)!
    Regards,
    Sergio

  • Immediate help needed with XML Parser

    I am currently running Oracle 8i and trying to use the XML utilities. Just to make sure things are working, I tried a very simple program. I followed the xslsample.sql code that was supplied by Oracle. Code is as follows:
    declare
    p xmlparser.parser;
    begin
    p := xmlparser.newparser;
    end;
    When the code executes, I get a PLS-00201: identifier 'XMLPARSER.PARSER' must be declared. Anyone have any ideas on what is going on and how to fix it? Any assistance would be greatly appreciated. You can email directly if you wish since I am really under a tight timeline to get these utilities to work correctly.

    Michael,
    Seems to be some problem with privileges. XMLPARSER is owned by SYS. You will need to grant execute access from SYS to the user under which you are trying to compile the procedure. It might be useful to create a public synonym and then grant access.
    Hope this helps.

  • Help needed with xml list

    hi,
    i need to make a list in which all the list items will come
    from xml file. these items will also be clickable so that they open
    a new respective hyperlink on click. i need something like
    www.sponky.com ' s portfolio list. can somebody please help me? i
    really need your help.
    thanks,
    gaurav

    I'm hoping I understand what you're doing... I would probably
    do it all in one frame and just toggle the .visible property of the
    subcategory list after the first one has been clicked, but there's
    no rules about how you do it.
    Without being sure, I think what you may have done is put a
    second "copy" of the category list on another keyframe, which
    replaces the previous instance. By taking away the second copy it
    should work. If that's not the case, then I'm stumped... otherwise
    read on.
    So if you have the category list in its own layer, just have
    it in frame one, on frame 2 of the same layer have a frame but
    not a keyframe. This will mean the instance in frame one is
    still the same one when the playhead gets to frame 2.
    And have the subCategory list on a separate layer, it appears
    on frame 2...
    BTW the .getSelectedItem() method of the list reminds me of
    flash mx... is that the version you're using (curiosity only I
    don't think its relevant, because its obviously working).

  • Help Needed with XML Attribute Access (Bold/Italics)

    Hi,
    I have a form that displays data in livecycle designer. When someone imports an xml file into the form in Adobe Acrobat it should be able to display some data as bolded and some italicized based on the xml file.
    Here is the sample xml file
    <Table1>
         <Row1>
              <Cell1 style="none">1</Cell1>
              <Cell2 style="bold">2</Cell2>
              <Cell3 style="italics">3</Cell3>
         </Row1>
    </Table1>
    And the output should be:
    1 2 3 
    Can someone please help! If the xml file should be designed differently please let me know.
    Thank you!

    Paul,
    Thanks for the help! I tried it out and it worked. One last question please. According to your explanation I added to the xml file the tags
    <body xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/" xmlns="http://www.w3.org/1999/xhtml" xfa:APIVersion="Acroform:2.7.0.0" xfa:spec="2.1">
    <p style="font-weight:bold;">2</p>
    </body>
    do I need to place this body tag around each number or can I place it in one location in the xml file?
    Thanks again.

  • Help needed with layers and project files....

    Hello
    I am new to after effects so this might be a simple issue for most. I am having an issue with my layers not matching the files in my project window. I accidently deleted a comp file the other day so I had to remake a few layers but they are not showing up in the project window/solids folder. I have 5 layers on my timeline and only 4 files in the project/solids folder. Some of the files names do not match the ones in the timeline. Is there a way to create a new comp with the files that I have open in my timeline or to replace the ones in the project window?  I started a project a few days ago, Im trying to make a few partical orbs dancing on there own path then they will come together and then creates a few smaller ones. Im at the point where I want to copy one comp to another or copy the layers over but the particals follow one light instead of the original light from its own comp. I think the file names in the project window might be the issue but I really don't know. Any help or comments would greatly be appreciated
                                                     Thanks a million
                                                                   Adam                                                                                                                                                              
    Using trapcode particular and AE CS6
    Windows system

    Layers on the timeline are just instances of the source footage. If you rename them on the timeline, that won't affect the number or naming of the sources in the project window. Toggle the column header in the TL to see which laywer uses which source.
    Mylenium

  • Help needed in XML Publisher rtf file

    Hi,
    My RTF is like, In first Page I will get Customer details, after that in the same page I will get invoice details, You can find my RTF srtucture from fallowing.
    Customer Name               Phone Number:
    Address
    Invoice_Number     Inv_Date     Inv_Amount
    My RTF output is fine. But I have another requirement like if Invoice details are going to second page then I need to show message 'Continued' in the first page bottom right side, I need to show this before the last page.
    How can I control the number of Invoice lines per each page and how can I show that 'continued' message?
    Could you help me in this?
    Thanks in advance

    Hi,
    Thanks for your help. I tried with that solution. But after page break I have another page which is like
    If you have any queries contact us
    Yours faithfully
    Emploee Name.
    This page is cominng repeatedly after each page break.
    Suppose If I give the variable value=4 then, this last page is coming one time for each page before the Invoice lines.
    Could you help me in this?
    Thanks

  • Help needed with XML

    Hi guys,
    i was wondering if it is possible to copy data from xml file
    into array and use that data to make search in some other xml file.
    Since i coulnt get any help on my previous post am raising this
    question. I have lot more to ask but right now this much only. :).
    Thanks in advance.

    Depending on the structure of the XML file, you should be
    able to use E4X syntax to put required data into an Array, or
    perhaps an ArrayCollection.
    Then I would think you should be able to once again use E4X
    syntax to search (filter???) the other XML file using the data in
    the ArrayCollection.

  • Help needed with XML Schema Processor sample

    I'm trying to run the sample that came with the Oracle XML Schema Processor (XSDSample.java) and get the following error:
    -- process file: catalogue.xml
    file:/D:/java/xml/ORACLE/XSD/catalogue.xml<Line 8, Column 32>: XSD-2001: (Error) Can not create instance of: 'oracle.xml.parser.schema.XSDBuilder'
    What am I doing wrong. I am running the sample unchanged.
    thx,
    e
    null

    Looks like unzipping the jar and making sure its in your classpath fixed the problem. not sure why explicitly having the xschema.jar in the classpath didn't work.
    e

  • Xml to flat file scenario

    hi guys,
    I am new to XI.am tryin to configure xml to flat file scenario.i have configured the scenario but the problem is am getting the flat file into my receiver system with no content..what might be the problem.pls do help me out

    Hi,
    Please find here with the required parameters for receiver end file to get it as flat file
    Please refer below scenarios, this could be used as reference for your scenario
    IDOC-XML to flat file
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
    XML to Flat file conversion
    XML to flat file conversion
    File Receiver with Content Conversion
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    Configuring the Receiver File/FTP Adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/95/bb623c6369f454e10000000a114084/frameset.htm
    Please see the below links for file content conversion..
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
    File Content Conversion for Unequal Number of Columns
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns - FCC
    Content Conversion (Pattern/Random content in input file)
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file - FCC
    Thanks
    Swarup

  • Urgent, Help on conversion: xml to flat file

    Dear experts,
    Here is the scenario, XML FILE ->XI-> JMS
    In JMS recevier side, we use localejbs/AF_Modules/MessageTransformBean to convert xml to flat file.
    Transform.Class: com.sap.aii.messaging.adapter.Conversion
    Transform.ContentType: text/plain;charset=utf-8
    xml.conversionType: SimpleXML2Plain
    xml.fieldFixedLengths: 5,20,5,8
    When input source xml file contents are non-unicode, it works fine.
    But when the contents contain unicode characters such as Chinese word,  it works but with wrong length in the output flat file. It seems xi treat one Chinese word length is 1. Actually, one chinese word should take 2 bytes.
    My question is how to make XI handle unicode characters  with correct lengths while conversing to flat file.
    Thanks in advance.

    Jai Shankar
    Thanks for your response.
    I am already using the standard adapter modules provided by SAP:
    localejbs/AF_Modules/MessageTransformBean
    Transform.Class: com.sap.aii.messaging.adapter.Conversion
    My input file's encoding is UTF-8
    "You need to change the encoding scheme according to your input file" , do you mean change the output file's encoding or else?
    I can't find the article you mentioned: "Encoding schemes in XI", Would you please give me the link?
    Thanks a lot.

  • Receiver CC File - Complex Flat File Conversion

    Dear forum users,
    I want your opinion about the feasibility of the content conversion described below using Receiver CC.
    The structure of my file is the following
    - A File header segment (FH)
    - 1...N Business Object that is described by many segments
    - A file footer segment (FF)
    Exemple of business Object : Purchase Order :
    1 Header Segment (POH)
    N Item Segments (POI)
    Exemple of file :
    FH
    POH (PO 1)
    POI (PO 1)
    POI (PO 1)
    POH (PO 2)
    POI (PO 2)
    POI (PO 2)
    FF
    Is content conversion standard tool can deal with such a structure ?
    Note that in the file created, the order of each segment has a big importance :
    PO Items of PO 1 must be after PO Header of PO 1 but before PO Header of PO 2 !
    I thnik the structure requested by converter described in documentation do not fit with my case :
    <root>...
      <nameA>
            <value1>value</value1>
            <value2>value</value2>
            <value3>value</value3>
      </nameA>
      <nameB>
            <value4>value</value4>
      </nameB>
    </root>
    I should have :
    <root>
    <FH>
      <PO>
        <POH>...</POH>
        <POI>...</POI>
        <POI>...</POI>
      </PO>
      <PO>
        <POH>...</POH>
        <POI>...</POI>
        <POI>...</POI>
      </PO>
    </FH>
    </root>
    Thanks very much for your help and opinions
    Jean-Charles.
    Edited by: Jean-Charles CARRET on Jan 3, 2011 6:12 PM

    Thank you Stephan for your answer.
    Firstly, could you confirm whether the "row" elements under the root tag are on the same level than other elements (POH, POI, FF and FH) or not ?
    I just check the both following parts of the help documentation called :
    - [Inserting MessageTransformBean in the Module Processor|http://help.sap.com/saphelp_nwpi711/helpdata/en/57/0b2c4142aef623e10000000a155106/frameset.htm]
    - Using the dispatcher : Example
    For me, it is not clear.
    1. Do I need to create an external class (XSLT Library for example) to manipulate my XML data before passing it to the standard Flat File Conversion tool ? (Here the manipulation would be to remove the row XML elements)
    2. Where is located the famous "Data" directory in which I must put my xsl file ?
    Thanks for clarifications.
    Jean-Charles

  • Help needed with itunes

    help needed with itunes please tryed to move my itunes libary to my external hard drive itunes move ok and runs fin but i have none of my music or apps or anything all my stuff is in the itunes folder on my external hard drive but there is nothing on ituns how do i get it back help,please

    (Make sure the Music (top left) library is selected before beginning this.)
    If you have bad song links in your library, hilite them and hit the delete button. Then locate the folder(s) where your music is located and drag and drop into the large library window in iTunes ( where your tracks show up). This will force the tunes into iTunes. Before you start, check your preferences in iTunes specifically under the"Advanced" tab, general settings. I prefer that the 1st 2 boxes are unchecked. (Keep iTunes Music folder organized & Copy files to iTunes Music folder when adding to library). They are designed to let iTunes manage your library. I prefer to manage it myself. Suit yourself. If there is a way for iTunes to restore broken links other than locating one song at a time I haven't found it yet. (I wish Apple would fix this, as I have used that feature in other apps.) This is the way I do it and I have approx. 25,000 songs and podcasts and videos at present. Hope this helps.

Maybe you are looking for