OSB XML to Flat file(write)- MFL?

Hi,
OSB 11G
I will be invoking the db to get XML data and I have to write to a text file(pipe delimiter).
I saw below forum, but I am not sure how to create MFL .Can you anyone pls mention the steps. (MFL ->XML to flat file )
Do I have import xsd in Native Builder and convert to a flat file with pipe delimiter ?
How to write a CSV file in OSB
Thanks
Edited by: soauser on Jul 7, 2011 8:07 PM

truth must be said, MFL is very sensitive to input data, any deviation from the contract is punished with a NullPointerException, especially when the input is in binary format. One would expect a better error message, but what can we do.
Make sure your input data complies with the Schema, for instance do a xsd validation...

Similar Messages

  • 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.

  • Call Pipeline in orchestration for converting XML to flat file

    Hi ,
    Can we call Pipeline in orchestration for converting XML to flat file ?
    Or we have some another option for this task ?
    Prakash

    Hi,
    You can refer this article from Abdul Rafay on how to work with Flat files and how to call receive and send pipelines within your orchestration. He
    has provided detailed step by step explanation of the process.
    Calling Send and Receive Pipelines
    from the orchestration expression shapes
    The code shared by Abdul at http://abdulrafaysbiztalk.wordpress.com/files/2009/06/processingflatfiles.doc (Change the extention to rar) and try it.
    One common mistake I have seen people doing will working with Flat File Assembler is that they miss to set the Document schema property in the Properties
    window to the flat file schema.
    If the Document schema property is not specified, runtime schema discovery will be attempted. During schema discovery, BizTalk Server attempts
    to determine the correct flat file schema to assemble the message with, based on the namespace and root node of the message, its added performance hit.
    Rachit

  • 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

  • XML to flat File:ABAP Class

    Hi ,
    Please can someone answer my question asap.
    I have to write an ABAP Class which receives an XML Document which has multiple IDOCS.The IDOC has several Segments which can repeat and also the segments have Sub-Segments.
    Please can someone provide me a sample code which can convert the fields of each segment to a line of the output flat file.
    I need a flat file where fields under each segment should come in one line.I mean the control record should come in one line.The fields of 1st segment ex:E1EDK01 should come in 2nd line.....
    Please revert.
    Thanks in Advance,
    Harish.

    You will need to use ABAP ixml technology to parse the content from the xml file:
    You can reference following ABAP mapping.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/15ecdf90-0201-0010-d792-941a3c3c30a4
    or SAP help doc:
    http://help.sap.com/erp2005_ehp_04/helpdata/DE/86/8280d212d511d5991b00508b6b8b11/frameset.htm
    Regards.
    Liang

  • J2SE XML to Flat File Content Conversion

    Hi
    I've currently got a scenario which sends a flat file to the integration server, it gets mapped and sent to a receiver adapter on a deployed j2se engine.
    I'm now trying to convert the xi-xml structured file to a flat file again on the j2se side (the same flat file format it originally had).
    My original flat file looks like this -
    477
    477=AA1
    My xml file looks like this -
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:ResultMessage xmlns:ns0="urn:xxxx-com:a_test_j2se_filetofile">
    <Item>
              <field1>477</field1>
    </Item>
    <Item>
              <field1>477</field1>
              <field2>AA1</field2>
    </Item>
    </ns0:ResultMessage>
    I am using these content conversion parameters:
    xml.addHeaderLine=0
    xml.fieldSeparator==
    xml.endSeparator='nl'
    I get this error on the integration engine (sxmb_moni):
    Error while sending by HTTP (error code: 500, error text: Internal Server Error:java.lang.NullPointerException) (See attachment HTMLError for details)
    and the j2se adpater log says this:
    17:16:32 (4120): Message "13b9d644-54c9-4ffb-0c40-db4c14458d77" of type "application/xml", kind "B" received
    17:16:32 (4124): Parsing XML message
    17:16:32 (4131): ERROR: Message processing failed with "java.lang.NullPointerException"
    What am i missing?

    So, now... I did a test configuration in XI and sent your test-payload...it worked.
    The J2SE adapter configuration:
    File adapter java class
    classname=com.sap.aii.messaging.adapter.ModuleXMB2File
    version=30
    mode=XMB2FILEWITHCONVERSION
    #Adress for XMB endpoint -
    XI.httpPort=8111
    XI.httpService=/file/receiver
    #File Adapter specific parameters -
    file.createDir=1
    file.targetDir=c:/transfer/inbound
    file.targetFilename=xmboutput.txt
    #file.writeMode=append
    #file.writeMode=overwrite
    file.writeMode=addCounter
    file.counterMode=immediately
    #file.counterMode=afterFirst
    file.counterSeparator=_
    file.counterFormat=00000
    file.counterStep=1
    #File Content Conversion specific parameters -
    xml.addHeaderLine=0
    xml.fieldSeparator==
    xml.endSeparator='nl'
    And here the configuration of the receiver communication channel in the integration directory:
    Adapter Type: XI
    Receiver
    Transport-Protocol: HTTP 1.0
    Message-Protocol: XI 3.0
    Adapter-Engine: Integration Server
    Adressing-Type: URL Address
    Target Host: <yourJ2SEip>
    Service Number: 8111
    Path Prefix:http://<yourJ2SEip>:8111/file/receiver
    Authentication Data
    Logon data for non-SAP systems
    User
    Password
    That's it... sent your payload and got the wished result:
    477
    477=AA1
    Regards,
    Heinrich

  • XML to Flat File design issue

    Hi,
    A newbie to SSIS but was able to create an SSIS package which extracts XML data from one of the SQL server columns using "Execute SQL Task" and passes that to a for each loop container which contains an XML task for apply transform to each input
    xml and append it to a flat file(additonally using a script task within for each container).
    All good so far but now I want to apply conditional splitting to "Execute SQL Task" in the above and additionally pipe it to the exact similar additional process(For each container doing xml task as described above) for a different kind of
    flat file.
    If I alter the design to use the data flow approach and apply OOTB conditional split, I run into not knowing how to connect and execute more than one  foreach container and embedded XML and script task (dataflow to control flow connection)
    It is easy to put everything in a sequence container and repeat the Execute SQL Task . But to me that is very inefficient.
    Any creative ideas or pointers to some internet content which tells me how can this be done most efficiently.
    Hope my question makes sense and let me know if you need more clarification.
    Thanks in advance.
    SM

    As I understand what you're asking for is a way to create conditional branches to do different typeof processing for each subset of data. For this you can do like below 
    1. Add set of tasks to additional processing for each type of flat file and link them to Execute sql task.
    2. Make the precedence constraint option as Expression And Constraint for each of them. Make constraint as OnSuccess and expression based on your condition. You may need to create SSIS variables to capture value of fields to be used in expression manipulation.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • XML to flat file

    Hi all,
    Scenario:
    R/3 -> Proxy -> XI -> JMS -> MQ
    Is it possible to deliver a FLAT FILE to MQ via the JMS adaptor?
    I need to get reed of all the XML tags, since the receiving system is expecting a flat structure.
    Thanks - /Thomas

    hi,
    you can use the following module to remove xml tags and namespaces
    the module is XMLAnonymizerBean
    the url:
    http://help.sap.com/saphelp_nw04/helpdata/en/45/d169186a29570ae10000000a114a6b/frameset.htm
    regards,
    ujjwal

  • XML to Flat File DB Table So I and Others Can Use SSRS for Reporting

    I'm using a program called Orbeon Forms to quickly create and distribute forms on the local network.
    The program just recently got updated to Version 4.6 so as to use SQL Server DB as a backend. (I was using MySQL in a lower versions)
    The data created when you submit a form into the database is held in  xml fomat in one of the columns. (see below).
    I am trying to create a separate table, to pull that data from the xml column (for that particular form) and place it in to a seperate table using the xml tags as columns.
    I have no idea where to start or how to do this. Please keep in mind I'm a novice when it comes to sql server (but I do know how to do select statements :-)....
    Is this very difficult to do? If it is (for me at least) where can I go to get someone to do it for me along with the documentation to do it?  I was also thinking of a way to create a trigger on the Orbeon table (this is how it is setup currently in
    the MySQL database) to automagically insert any saved form data to the new form data table. Is this also difficult to do? And can I have a trigger for each form I create on the table?
    If anyone can help, I'd appreciate it. Thanks.
    I would eventually like to add the form data from the old MySQL database table into this new Orbeon table but it appears the upgrade also added two extra columns. I figuring once in the Orbeon table then I will have to run whatever statements to place into
    the separate table so I can use the data.
    Randy Marrero

    Erland thanks for the reply. Even after reviewing the link you sent I'm still having problems. Guess that is why I'm not a programmer. Anyway I've create a test data form xml I've created and it is copy and pasted below.
    Again I'm only really interested seeing if I can get the information out of the xml and create it in its own flat file table. I keep reading that creating a trigger (when the form gets submitted into this database in the xml format, an on insert trigger
    would take all the data submitted and inserted into another table with just the data, into separate columns)  for this is the best way but I'm not sure how to do this either. I have a copy of what the MySQL trigger would look like but keep running
    into errors when I try to run it in SQL Server.  Also the issue with how I would create another trigger if / when I create another form. I read somewhere I can only create one on insert trigger per table, still don't know this to be true. Anyway below
    is the xml as it is in the xml table in the database.
    XML STARTS HERE------------------
    <
    formxmlns:oxf="http://www.orbeon.com/oxf/processors"xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"xmlns:xh="http://www.w3.org/1999/xhtml"xmlns:xi="http://www.w3.org/2001/XInclude"xmlns:ev="http://www.w3.org/2001/xml-events"xmlns:saxon="http://saxon.sf.net/"xmlns:xs="http://www.w3.org/2001/XMLSchema"xmlns:odt="http://orbeon.org/oxf/xml/datatypes"xmlns:fb="http://orbeon.org/oxf/xml/form-builder"xmlns:xxf="http://orbeon.org/oxf/xml/xforms"xmlns:xbl="http://www.w3.org/ns/xbl"xmlns:xpl="java:org.orbeon.oxf.pipeline.api.FunctionLibrary"xmlns:sql="http://orbeon.org/oxf/xml/sql"xmlns:p="http://www.orbeon.com/oxf/pipeline"xmlns:fr="http://orbeon.org/oxf/xml/form-runner"xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"xmlns:xf="http://www.w3.org/2002/xforms"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:exf="http://www.exforms.org/exf/1-0">
      <
    Header>
        <
    HHIFR_Patch>/fr/service/persistence/crud/bfp/permits/form/738433584d6c0aff25e0ab8ca1bd99bcc7e10b49.bin</HHIFR_Patch>
      </
    Header>
      <
    Permit_Number_Hdr>
        <
    Permit_Number>Test123</Permit_Number>
      </
    Permit_Number_Hdr>
      <
    Permit_Info_Hdr>
        <
    Permit_Date>2014-07-15-05:00</Permit_Date>
        <
    Permit_Station>HQ</Permit_Station>
        <
    Permit_Employee_Number>0676</Permit_Employee_Number>
        <
    Permit_Status>Active</Permit_Status>
        <
    Employee_Name>Randy
    Marrero</Employee_Name>
      </
    Permit_Info_Hdr>
      <
    Applicant_Info_Hdr>
        <
    Applicant_Name>Randy
    Marrero</Applicant_Name>
        <
    Applicant_Phone>8434741099</Applicant_Phone>
        <
    Applicant_Email>[email protected]</Applicant_Email>
      </
    Applicant_Info_Hdr>
      <
    Mailing-Address-Section>
        <
    Mailing_Address>40
    Summit Dr</Mailing_Address>
        <
    Mailing_Suite/>
        <
    Mailing_City>Hilton
    Head Island</Mailing_City>
        <
    Mailing_State>SC</Mailing_State>
        <
    Mailing_Zip>29926</Mailing_Zip>
      </
    Mailing-Address-Section>
      <
    Physical_Burn_Hdr>
        <
    Physical_Address>35
    Summit Dr</Physical_Address>
        <
    Physical_Suite/>
        <
    Physical_City>Hilton
    Head Island</Physical_City>
        <
    Physical_State>South
    Carolina</Physical_State>
        <
    Physical_Zip>29926</Physical_Zip>
      </
    form>
    XML ENDS HERE ------------
    Randy Marrero

  • 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

    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

  • Convert XML to flat file with File adapter

    Hi all.
    Trying to configure a file adapter according to the following link.
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/d2/bab440c97f3716e10000000a155106/frameset.htm
    What i want it to do is the following.
    I have the following incoming message:
    <header>
         <h_field1></h_field1>
         <h_field2></h_field2>
    </header>
    <data>
         <d_field1></d_field1>
         <d_field2></d_field2>
         <infotext>
              <i_field1></i_field1>
              <i_field2></i_field2>
         </infotext>
    </data>
    I want this to become a flat file that looks as follow.
    h_field1¤h_field2
    d_filed1¤d_field2
    i_field1¤i_filed2
    Every field in each segment should be concatenated with the ¤ char as separator.
    I've done the following:
    Content Conversions Parameters
    Record Structure: header,data,infotext
    header.fieldSeparator   ¤
    data.fieldSeparator    ¤
    infotext.fieldSeparator   ¤
    The adapter just gets into wait mode.
    Does anybody know why?
    BR
    Kalle

    Hello kalle,
    As per your source structure, if you perform FCC on it you should have 2 level hierarchie, Your RecordSet  will be your root node.
    and the RecordSetStructure is : header,1,data,1,
    Since the node infotext is in the data, you can not refer this node and is not appropriate.
    <header>
        <h_field1/>
    <h_field2/>
                 </header>
                <data>
      <d_field1/>
       <d_field2/>
        <infotext>
    <i_field1/>
    <i_field2/>
    <  /infotext>
              </data>
    Change The above strucutre to like this
    <header>
        <h_field1/>
         <h_field2/>
      </header>
       <data>
          <d_field1/>
          <d_field2/>
        </data>
          <infotext>
                <i_field1/>
               <i_field2/>
           < /infotext>
    Your RecordSet  will be your root node.
    and the RecordSetStructure is : header,1,data,1,infotext,1
    This resolves your issue..
    Regards,
    Prasanna

  • 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.

  • 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

  • Problem while writing to fixed length flat file from xml

    Hi,
    I have a problem in writing data into a flat file of fixed length...
    My input is a xml file and i want the output as a flat file. I am successful in converting the xml into flat file... But the main problem is, i am unable to insert spaces in between my fields in the flat file.
    The data in the flat file comes without spaces... Any suggestions on writing the schema...
    Regards
    Surya.

    Have a look at this doc
    http://otndnld.oracle.co.jp/document/products/as10g/101310/doc_cd/integrate.1013/b28994/nfb.htm#BGBBAJFD
    your element should be something like this, it pads with a space using the paddedBy expression
    <xsd:element name="C1" type="xsd:string" nxsd:style="fixedLength" nxsd:length="4" nxsd:paddedBy=" " nxsd:padStyle="tail" />if having trouble post what you want the file to look like, and the xsd you are using.
    cheers
    James

Maybe you are looking for

  • How to use multiple configuration files in a web Application

    Hi, I am using JDev 11 TP3,JBoss4.2.1,Trindad 1.2.4. In my project I have to use a set of (Login) pages over several other projects. So I stored those pages (& backing beans) at an external location. Now while editing the deployment profile of the we

  • Creative Suite 5.5 loops the SLA when I try to open any Adobe program

    Creative Suite 5.5 loops the SLA when I try to open any Adobe program. BIG time frustration. Adobe Creative Suite 5.5 Premium, Mac OX versions 10.7.5 processor 2.4 GHz Intel Core i7 Memory 4GB 1333 MHz DDR3 Here's what happened. I was trying to open

  • When i connect my iphone to the computer, win 7 i get the mtp driver error  (Code 31).

    When i connect my iphone to the computer, win 7 i get the mtp driver error  (Code 31). I must mention that connecting the phone and accesing it as a camera worked before but at some point it didn't and i keep recieving this mtp driver error. I tried

  • File renaming question plus shortcut keys

    I do a lot of work with renaming files for an archiving project. I was wondering if anyone knew: a.) the shortcut keys to skip to the next word when dealing with a file name with underscores without jumping to the beginning or the end. (i.e. somethin

  • Cannot resolve symbol-- data access problem

    hi, everyone, i am new to java... thx for helping me. i have two files 1) dls.java 2) SliderDemo.java in the dls.java i have the following coding: JPanel slider = new SliderDemo(this); slider.framesPerSecond(0); and in the SliderDemo.java i have foll