IDOC to flat File----Problem in File Content Conversion at receiver

hi experts,
I am doing a IDOC to flat file secnario.
My requirment is IDOCXI-Flat file
Format of flat file is like:--
Every segment in the IDOC will be converted into a single line of file(without any delimiter). So number of lines in flat file will be equal to number of segments in IDOC.
I am facing problem in File Content conversion. 
Please help me out..
Thanks
Jaideep

Check this doc...
[How To...Convert an IDoc-XML structure to a flat file and vice versa in XI 3.0 |https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a]

Similar Messages

  • Idoc 2 file - file content conversion in receiver

    Hi,
    My scenario is idoc to file.
    if i want to use file content conversion at receiver side,
    so i need to create record set according to sender side data type or receiver data type?
    plz give some inputs reg. this.
    Thanks

    Hi,
    There is problem while refreshing in sap xi also.
    when i pass new parameter like 7 in my recordset structure,
    it is immediately reflecting in CC monitoring.
    error it is showing that '7'.
    but if i remove that in record set structure
    (after activating that in ID)
    even though
    if i stop and start my CC manually also,
    still it is showing that error in CC monitoring
    like '7'
    basic concept of this file content conversion is
    I have to keep at least field separator (ie 'nl' )for outer most node element ie Customer_copy and record set stru. as Customer_copy
    is it right?
    I tried my own way...still it is giving that error.
    what could my fieldSeparator, endSeparator, for ur last case plz tell me?
    Edited by: ruban R on Apr 22, 2008 3:01 AM

  • Problem with file content conversion in receiver file adapter

    Hi All
    I have a problem with file content conversion in receiver file adapter.
    This is my recordset structure: Header_Record,1,Claim_Record,*,Check_Rec,1
    These are the content conversion parameters:
    Header_Record.fieldSeparator = ,
    Header_Record.endSeparator = 'nl'
    Claim_Record.fieldSeparator = ,
    Claim_Record.endSeparator = 'nl'
    Check_Rec.fieldSeparator = ,
    Check_Rec.endSeparator = 'nl'
    In SXMB_MONI, i can see that the data is correctly extracted from proxy, and correctly mapped to receiver message, and i see a checkered flag (success).
    But, Adapter status is RED with the following error message:
    Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter '1.fieldFixedLengths' or '1.fieldSeparator' is missing
    In communication channel monitoring, i get the following error message:
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Channel has not been correctly initialized and cannot process messages
    What is going wrong here? Can anyone please tell me?
    Thanks
    Chandra

    Posted in Incorrect forum.
    Posted again in Process Integration forum

  • Problem with reciver file adapter in the content conversion.

    I have starnge situation where the fileds in the file created after the content conversion are center aligned.
    Can someone let me know how to make it right aligned?
    For eg, i have a field with Char(6) in the file it looks as follows:
    1.23 ->    | 1.23 |
    10.23 ->  |10.23 |
    100.23-> |100.23|
    I want it to be like this :
    1.23 ->    |  1.23|
    10.23 ->  | 10.23|
    100.23-> |100.23|
    Please let me know ASAP as its a critical issue for the customer.
    Warm Regards,
    Nilesh Kumar

    Hi Nilesh,
    if You are using file content conversion on Sender Adapter, then do you java mapping between your two interfaces(sender and receiver)
    use java.text methods for formatting the values according to your requirement.
    first check the java API 1.4.2....
    with in that check java.text.* methods
    Also there will be lot of examples availble on internet on this. Check online.
    Also check this link this will definitely solve issue
    [http://www.iro.umontreal.ca/~vaucher/Java/tutorials/Formatting.html]
    Sample code on this link
       double x = 1.0 / 7;
       for (int n = 1; n<5; n++)
          System.out.println( "1/7 : "  + format( x, n, -6)
                                        + format( x, n, 10));
    Thanks
    Gujjeti
    Edited by: Praveen Gujjeti on Apr 16, 2008 6:16 AM

  • File content conversion in receiver

    Hi,
    My receiver Message type structure is
    Heading1
      subheading 1
        FieldValue1
        FieldValue 2
        Fieldvalue3
    I want to create file content conversion in receiver side.
    plz help me to create what could be my recordset structure, name, value.
    my scenario is Idoc to file.

    Ruban:
    Your FCC goes like this
    subheading1.fieldSeparator = ','               /* if comma is the separator you want, if u need any other replace it*/
    subheading1.endSeparator = 'nl'
    Did you check my previous post in your other thread, I posted similar example there.

  • File-Sender: Probl. with Content conversion - Read whole line in singleTag

    Hello,
    I have a flat file that i read with the sender file adapter.
    After content conversion I get not the result i wished to have...
    The source flat file looks for example like this:
    ABC;DEF;GHIJ
    KLM;NOP;Q
    RSTU;VW
    After the Content Conversion I would like to have this result:
    <Recordset>
         <Data>
              <Row>ABC;DEF;GHIJ
               <Row>KLM;NOP;Q
              <Row>RSTU;VW
              <……>
    What sounds very similar but didn’t work for me yesterday….
    I defined a data type that looked like this:
    DT_TEST (Complex Type)
         Recordset (0..unbounded)
              Data (1)
                   Row (type string / 0..unbounded)
    During the file content conversion I just did this:
    Recordsetname: Recordset
    Recordset structure: Data, 1
    Data.fieldNames = Row
    Data.fieldSeparator = ‘nl’
    This was also described in blog:
    /people/sravya.talanki2/blog/2005/08/16/configuring-generic-sender-file-cc-adapter
    But my result is always like this:
    <Recordset>
         <Data>
              <Row>ABC;DEF;GHIJ
         </Data>
    </Recordset>
    <Recordset>
         <Data>
              <Row> KLM;NOP;Q
         </Data>
    </Recordset>
    <Recordset>
         <Data>
              <Row> RSTU;VW
         </Data>
    </Recordset>
    ….And not like I wished….
    Can anybody help me…?
    Greetings
    Tobias

    Hi,
    I just gone thru the blog and as per the structure defined I have no idea how this works this way.
    But if you modify the structure to
    RecordSet - occurs 0-1
    Data - occurs 0-n
    Row - occurs 0-1
    And in the Content conversion mentions Data,* instead of Data,1.
    In this case you will be getting a output like
    <Data>
      <Row>ddf,sdfsd,sdf</Row>
    </Data>
    <Data>
      <Row>fff,sdfsd,sdf</Row>
    </Data>
    You can achieve this but I don't have any idea how to generate that kind of output with the Structure and the conversion parameter mentioned in the blog.
    Thanks,
    Prakash

  • File sender adapter and content conversion with polish character

    We are loading a csv file with PI 7.0 file sender adapter using "content conversion" - all fields go through EXCEPT a special character hex '208C' (space in front) looks like "Æ" is converted to hex 'C28C'.
    We are using code page UTF8
    We are using:
    enclosuresign "
    enclosuresignescape ""
    fieldcontentformatting nothing
    enclosureconversion NO
    Hope some one can help

    Hi Bohamo,
    Hope you have set the following for your file sender adapter :
    1. Transfer Mode is set to Binary,
    2. File Type Text,
    3. Encoding ISO-8859-1( for Western European Latin ).
    Inorder to recognize Polish Character, try as follows :
    Your sender file after coming into Pi has XML encoding declaration 'UTF-8'.
    Write a simple XSLT mapping to change the value of the attribute "encoding" to "ISO-8859-1" in the output XML of message mapping . Include this XSLT map as the second mapping step in your interface mapping.
    First step in your interface mapping will be your already existing message mapping.
    An example of the XSL code :
    <?xml version='1.0'?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method='xml' encoding='ISO-8859-1' />
    <xsl:template match="/">
    <xsl:copy-of select="*" />
    </xsl:template>
    </xsl:stylesheet>
    or you can also do java mapping if you are comfortable with java code !
    Cheers,
    Ram.

  • Content Conversion in receiver channel

    Hi all,
    I have a proxy to FTP scenario with no mapping involved.Over proxy communication PI is receiving the data, I am creating the CSV file using content conversion in receiver channel and placing the file at FTP.
    The file name is coming in one of the field of the input xml,I am using variable substitution and setting the file name from that particular field value.But as I don't want that node and file name element in my output file content, please guide me what parameters can I set in my content conversion to remove the FileNode from o/p csv file.
    The sample input xml is
    <MT>
    <Record>
    <Field1>1</Filed1>
    <Field2>2</Filed2>
    </Record>
    <Record>
    <Field1>3</Filed1>
    <Field2>4</Filed2>
    </Record>
    <FileNode>
    <FileName>InutFile</FileName>
    </FileNode>
    </MT>
    I want output xml to be like
    1,2
    3,4
    I have followed this blog /people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12 to cut the FileNode, but it gives an error in cc parameters.
    In my actual i/p payload,the Record is 0..unbounded and there are 50 sub elements inside Record element.
    Please provide your inputs.
    Thanks,
    Ruchi

    Hi Ruchi,
    Change your structure like this.
    MT>
    <Record>
    <Field1>1</Filed1>
    <Field2>2</Filed2>
    </Record>
    <Record>
    <Field1>3</Filed1>
    <Field2>4</Filed2>
    </Record>
    <FileNode>
    <FileName>InutFile</FileName>
    </FileNode>
    </MT>
    Dont put the filenode under Record.
    Also Add the below parameters.
    FileNode.fieldSeparator     '0'
    FileNode.endSeparator     '0'
    FileNode.fieldFixedLengths     0
    FileNode.fixedLengthTooShortHandling     Cut
    FileNode.fieldNames     FileName
    Now use the same parameter mentioned in the blog .Your problem will be resolved.

  • Poulate the header levels fields in Content Conversion in receiver FAdapter

    Hi All,
    I have req in that there is table stucture , this table strcture I want to populate the header level and item level also at receiver side. I am using Content Conversion at receiver side.
    the data is like this
    at header level
    Country      City       Name   Age
      India           bom       kk        19
      Sweden    Stock     GG       20
    for this type file How can I create the datatype  and In wht way I  will use content conversion for this.wht paramters I have to give in in Content Conversion.......
    Regards

    HI Sudip,
    the field labels I want in excel file at top or header of every coloum are)
    Country City Name Age
    below these fields only the value of these fields will come like this
    India bom kk 19
    Sweden Stock GG 20
    for this u mean to say I have to declare only header
    Create Data Type with sub-element ITEMS(just an example)
    Then Country,Name,Age or whatever field you want to add in header of output file.
    Once data type is ready now time to configure Receiver CC:
    Use following Content Conversion Parameters:
    Recordset Structure: ITEMS
    ITEMS.addHeaderLine: 1
    ITEMS.fieldSeparator: (space)
    ITEMS.endSeparator: 'nl'
    and my data will come like this in file
    Country    City            Name    Age
    India          Banglore   jjjjj          24
    England     london      kkkk      88
    Can u plz cofirm for this...........
    Regards

  • Content Conversion in Receiver

    Hi,
    This is my target structure which i need to convert to text file. (File Content Conversion)
    <b>Header1 1-1(Occurence)</b>
       |_
          Field1 1-1 (Occurence)
          Field2 1-1 (Occurence)
    <b>Header2 1-1(Occurence)</b>
        |_
           Field3 1-1 (Occurence)
           Field4 1-1  (Occurence)
    <b>Header3 1-1(Occurence)</b>
         |_
            Field5 1-1(Occurence)
    <b>Header4 1-Unbounded(Occurence)</b>
        |_
          <i><b>SubHeader1 1-1 (Occurence)</b></i>
            |_
               Field6 1-1(Occurence)
          <i><b>SubHeader2 1-1 (Occurence)</b></i>
            |_
               Field7 1-1(Occurence)
          <i><b>Subheader3 1-Unbounded(Occurence)</b></i>
             |_
                Field8 1-1(Occurence)
                Field9 1-1(Occurence)
          <i><b>Subheader4 1-1</b></i> 
             |_
                Field10 1-1 (Occurence)
    <b>Header5 1-1 (Occurence)</b>
        |_
           Field11 1-1 (Occurence)
    The target structure must be converted to a text fiel in the following format:
    Header1
    Header2
    Header3
    Subheader1
    SubHeader2
    SubHeader3(Repeats)
    Subheader4
    Subheader1
    Subheader2
    Subheader3(Repeats)
    Subheader4
    Header5
    I have to make use of File Content Conversion. Please guide me as I am new to XI.
    Thank you very much.
    BestRegards,
    Prits

    For File Content Conversion in receiver file adapter, please refer to the following link,
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    I believe the file adapter support for two level of structure, in your case,
    header1
    subline1
    subline2
    should be OK. But need you to have some trial.
    --Wenning

  • Flat File to XML using content conversion.

    Hi Experts,
    I am converting a flat file to xml structure.
    i need the structure of xml like :
    <LineA>
    </LineA>
    <LineB>
          <LineC>
          </LineC>
    </LineB>
    I am able to generate it in hierarchy
    <LineA>
    </LineA>
    <LineB>
    </LineB>
    <LineC>
    </LineC>
    How should i write structure of Recordset so that for  LineC so that it comes under the LineB tag ? I also dont want the name of recordset in my output, how can i do that ?
    Kulwinder.

    Hi
    Refer
    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
    File content conversion sites
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.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
    /people/harrison.holland5/blog/2006/12/20/xi-configuration-for-mdm-integration--sample-scenario - FCC - MDM
    XI in the role of a FTP
    /people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp - FCC
    File to R/3 via ABAP Proxy
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy - FCC
    /people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter - EOIO - File
    http://help.sap.com/saphelp_nw04/helpdata/en/ee/c9f0b4925af54cb17c454788d8e466/frameset.htm - cc
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/95/bb623c6369f454e10000000a114084/content.htm - fcc cOUNTER
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/da1e7c16-0c01-0010-278a-eaed5eae5a5f - conversion agent

  • Receiver File Adapter: Problem with NewLine Content Conversion Parameter

    Hello Everybody
    On our SAP-XI (SAP NetWeaver 2004s, sp14) I have the scenario to send a price catalogue (IDoc PRICECATALOGUE.PRICECATALOGUE02) from SAP R/3 as csv PRICAT file to a file share.
    In the receiver communication channel I have defined
    Message Protocol = File Content Conversion
    using the following RecordSet:
    RecordSet = HeaderRow,MainBody
    One header row is followed by one or more main body rows. The csv PRICAT message format demands that there is an empty row (i.e. one carriage return) between header and main body and another carriage return after the last main body row:
    <Header Row>
    carriage return
    <MainBody 1>
    <MainBody 2>
    carriage return
    As content conversion parameters I tried to use NewLine ('nl') to create the carriage returns in the file:
    HeaderRow.fieldSeparator = ,
    HeaderRow.endSeparator = 'nl'     " new line
    MainBody.fieldSeparator = ,
    MainBody.endSeparator = 'nl'
    Using the settings I have been able to created the carriage return at the end of the file but not the one between header and main body.
    As workaround I have used the following approach:
    " Add the following XSLT mapping between header and body:
                <SeparatorLine>
                    <value>
                        <xsl:value-of select=" '' "/>
                    </value>
                </SeparatorLine>
    RecordSet and parameters have been changed accordingly:
    RecordSet = HeaderRow,SeparatorLine,MainBody
    HeaderRow.fieldSeparator = ,
    HeaderRow.endSeparator = 'nl'  
    SeparatorLine.fieldFixedLength = 0,0   " sic! 
    MainBody.fieldSeparator = ,
    MainBody.endSeparator = 'nl'
    Has anybody an idea why I failed to receive the first carriage return and has somebody a more elegant solution?
    Kind Regards
       Uwe

    Hi,
    Thanks for reply. I have already used 'nl'.
    When i open into the notepad it is showing [] boxes rather then new line.
    e.g. 1 [] 2 []
    but when we open into wordpad it opens properly.
    Customer wants when he opens in notepad it should show line by line.
    e.g.
    1
    2
    How should i convince to customer ?

  • Hierarchy on file content conversion for receiver?

    Y'all,
    I'm stuck in this problem and I haven't find a solution to solved it... so, all your clues and reply's are really appreciate...
    The basic problem is a File content conversion for a receiver C.C. that is not working and it's raising some errors in the RWB, I have gone thru some blogs but I still having a lot of doubts...
    I want to produce a flat TXT file that will have a line for every node or subnode, it doesn't matter if it's not represented as hierarchical structure like this one... but the records must be produced or written in the same order...
    Man_Del_Header as main node with Man_Header, Delete_Detail and Trailer as subnodes...
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:MT_DISTRIBUTOR_DELETE xmlns:ns1="http://xxx.com/xi/POSout">
       <Man_Del_Header>
          <MD_Header>|HM|1|</MD_Header>
          <MD_StoreNumber>051</MD_StoreNumber>
          <MD_filler1>|2|0000|3|</MD_filler1>
          <MD_EffDate>09/17/07</MD_EffDate>
          <MD_filler2>|4|005|5|dsdvnd|7|</MD_filler2>
          <MD_BatchNumber>500</MD_BatchNumber>
          <MD_fiiller3>|8|</MD_fiiller3>
          <MD_BatchDescr>DELETE PREV CST BTCH</MD_BatchDescr>
          <MD_filler4>|10|D|</MD_filler4>
          <MD_linef>1</MD_linef>
          <Man_Header>
             <Man_Header>|HM|1|</Man_Header>
             <Man_StoreNumber>051</Man_StoreNumber>
             <Man_filler1>|2|0000|3|</Man_filler1>
             <Man_EffDate>09/17/07</Man_EffDate>
             <Man_filler2>|4|005|5|dsdvnd|7|</Man_filler2>
             <Man_BatchNumber>500</Man_BatchNumber>
             <Man_filler3>|8|</Man_filler3>
             <Man_BatchDescription>Delete Distributor</Man_BatchDescription>
             <Man_filler4>|</Man_filler4>
             <Man_linef>Constant</Man_linef>
          </Man_Header>
          <Delete_Detail>
             <Delete_Detail>|D|901|170|</Delete_Detail>
             <Delete_DistribNumber>0000005010</Delete_DistribNumber>
             <filler9>|</filler9>
             <delete_linef>1</delete_linef>
          </Delete_Detail>
          <Delete_Detail>
             <Delete_Detail>|D|901|170|</Delete_Detail>
             <Delete_DistribNumber>0000005011</Delete_DistribNumber>
             <filler9>|</filler9>
             <delete_linef>1</delete_linef>
          </Delete_Detail>
          <Trailer>
             <Trailer>|T|1|</Trailer>
             <TotalRecCnt>00005</TotalRecCnt>
             <filler1>|2|</filler1>
             <NoOfHeaders>00002</NoOfHeaders>
             <filler2>|3|</filler2>
             <NoOfAdds>00000</NoOfAdds>
             <filler3>|4|</filler3>
             <NoOfChanges>00000</NoOfChanges>
             <filler4>|5|</filler4>
             <NoOfDeletes>00002</NoOfDeletes>
             <filler5>|13|</filler5>
             <NoOfSubstitution>00000</NoOfSubstitution>
             <filler6>|</filler6>
             <linef>1</linef>
          </Trailer>
       </Man_Del_Header>
       <Man_Del_Header>
          <MD_Header>|HM|1|</MD_Header>
          <MD_StoreNumber>061</MD_StoreNumber>
          <MD_filler1>|2|0000|3|</MD_filler1>
          <MD_EffDate>09/17/07</MD_EffDate>
          <MD_filler2>|4|005|5|dsdvnd|7|</MD_filler2>
          <MD_BatchNumber>500</MD_BatchNumber>
          <MD_fiiller3>|8|</MD_fiiller3>
          <MD_BatchDescr>DELETE PREV CST BTCH</MD_BatchDescr>
          <MD_filler4>|10|D|</MD_filler4>
          <MD_linef>1</MD_linef>
          <Man_Header>
             <Man_Header>|HM|1|</Man_Header>
             <Man_StoreNumber>061</Man_StoreNumber>
             <Man_filler1>|2|0000|3|</Man_filler1>
             <Man_EffDate>09/17/07</Man_EffDate>
             <Man_filler2>|4|005|5|dsdvnd|7|</Man_filler2>
             <Man_BatchNumber>500</Man_BatchNumber>
             <Man_filler3>|8|</Man_filler3>
             <Man_BatchDescription>Delete Distributor</Man_BatchDescription>
             <Man_filler4>|</Man_filler4>
             <Man_linef>Constant</Man_linef>
          </Man_Header>
          <Delete_Detail>
             <Delete_Detail>|D|901|170|</Delete_Detail>
             <Delete_DistribNumber>0000005012</Delete_DistribNumber>
             <filler9>|</filler9>
             <delete_linef>1</delete_linef>
          </Delete_Detail>
          <Delete_Detail>
             <Delete_Detail>|D|901|170|</Delete_Detail>
             <Delete_DistribNumber>0000005013</Delete_DistribNumber>
             <filler9>|</filler9>
             <delete_linef>1</delete_linef>
          </Delete_Detail>
          <Delete_Detail>
             <Delete_Detail>|D|901|170|</Delete_Detail>
             <Delete_DistribNumber>0000005014</Delete_DistribNumber>
             <filler9>|</filler9>
             <delete_linef>1</delete_linef>
          </Delete_Detail>
          <Trailer>
             <Trailer>|T|1|</Trailer>
             <TotalRecCnt>00006</TotalRecCnt>
             <filler1>|2|</filler1>
             <NoOfHeaders>00002</NoOfHeaders>
             <filler2>|3|</filler2>
             <NoOfAdds>00000</NoOfAdds>
             <filler3>|4|</filler3>
             <NoOfChanges>00000</NoOfChanges>
             <filler4>|5|</filler4>
             <NoOfDeletes>00003</NoOfDeletes>
             <filler5>|13|</filler5>
             <NoOfSubstitution>00000</NoOfSubstitution>
             <filler6>|</filler6>
             <linef>1</linef>
          </Trailer>
       </Man_Del_Header>
    </ns1:MT_DISTRIBUTOR_DELETE>
    |HM|1|051|2|0000|3|09/17/07|4|005|5|dsdvnd|7|500|8|DELETE PREV CST BTCH|10|D|1
    |HM|1|051|2|0000|3|09/17/07|4|005|5|dsdvnd|7|500|8|Delete Distributor|Constant
    |D|901|170|0000005010|1
    |D|901|170|0000005011|1
    |T|1|00005|2|00002|3|00000|4|00000|5|00002|13|00000|1
    |HM|1|061|2|0000|3|09/17/07|4|005|5|dsdvnd|7|500|8|DELETE PREV CST BTCH|10|D|1
    |HM|1|061|2|0000|3|09/17/07|4|005|5|dsdvnd|7|500|8|Delete Distributor|Constant
    |D|901|170|0000005012|1
    |D|901|170|0000005013|1
    |D|901|170|0000005014|1
    |T|1|00006|2|00002|3|00000|4|00000|5|00003|13|00000|1
    So as you can see, i wanna produce a flat file that will have line or record for each node, it doesn't matter that it has a hierarchy or a deeper level, it should be a simple flat file...
    The thing is that i have been trying to setup the receiver comm. channel and it's raising some errors like Could not process due to error:
    <i>java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Consistency error: more fields found in XML structure than specified in conversion parameters! (Value 'XXXX')', probably configuration error in file adapter (XML parser error)'</i>
    I have checked this blog:
    /people/karthiknarayan.kesavan2/blog/2007/08/22/file-content-conversion-for-multi-hierarchical-structure
    Unfortunately i don't know if there's another way to achieve this...

    Jerry,
    it easy if you go with multi mapping concept and without BPM if you are above >XI3.0 SP14.and use Append mode in the receiver file adapter.
    just create the target structure like root under that Man_Del_Header,Man_Header,Detail,Trailer at the same level but got be careful with occurences.
    <b>Source:</b>
    I think from your structure you have
    Man_Del_Header  (1-unb)
    Man_Header   (1-1)
    detail   (0-unb ) may be (1-unb)
    trailer (1-1)
    create <b>target DT</b> like:
    ROOT
    ..Man_Del_Header  (1-1)
    ..Man_Header   (1-1)
    ..detail   (0-unb ) may be (1-unb)
    ..trailer (1-1)
    all are at same level under ROOT.
    create MT,MI,MM,IM.
    in MM just map correspoding fields and if you have any unbounded onces map the nodes too. and map Man_Del_Header in the source to MT_XYZ (important)
    and in the MM go to MESSAGES tab and change the occurences of the target Message to 0-unbounded same way in the interface mapping 0-unbounded.
    here it create anothe extra node in the mapping something like Message1,this is ok.
    and in ID just create all other objects like as usual except  creating Interface determination ,in that select the extended radio button.
    in reciever File CC use FCC ,would be very simple in the recordsetstrcture give
    your four nodes Man_Del_Header,Man_Header,Detail,Trailer.
    and use either fixed or field seperator.use append mode in recv File CC otherwise it will generate files as many occurences your source "Man_Del_Header" has ,cos we are mapping it to the MT--xyz .
    thats it you are ready to go...
    if any error post back here again.
    you can make use of this thread
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible  (here there are two target DT ,but you just create one DT,remaining are similar)
    good luck.
    Babu

  • File Content Conversion in Receiver Adapter Help

    Hi,
    I need to have a flat file at receiver side with the following structure.
    Product
    LineItem
    Notes
    Product
    LineItem
    Notes
    But i am getting as
    Product
    Product
    LineItem
    Notes
    Notes
    Please suggest me the changes to be made in File Content Conversion Parameter
    Your Help will be appreciated.
    Thanks in advance,
    Ashok

    Singh,
    I think we wont give field names in the receiver file adapter. Please find the details below:
    RecordSet Structure: Product,LineItem,Notes.....
    Parameters:
    Product.fieldFixedLengths:30,10...
    Product.endSeparator:'nl'
    LineItem.fieldFixedLengths:30,10..
    LineItem.endSeparator:'nl'
    Notes.fieldFixedLengths:30,10...
    Notes.endSeparator: 'nl'
    Thanks
    Ashok

  • File Content Conversion at receiver end

    Hi
    My XML structure is
    <?xml version="1.0" encoding="UTF-8" ?>
    <ns0:MT_CreatePurchaseOrder xmlns:ns0="http://demo.com/POCreate">
    <recordset>
       <POHeader> (min 1 max 1)
       </POHeader>
       <POLineItem> (min 1 max unbounded)
       </POLineItem>
       <POScheduleLine> (min 1 max unbounded)
       </POScheduleLine>
       <POPromiseScheduleLine> (min 1 max unbounded)
       </POPromiseScheduleLine>
       </recordset>
    </ns0:MT_CreatePurchaseOrder>
    I am mapping this particular structure from Idoc orders05(PO create). My client needs the out file as txt with tab as delimiter and should be one line.(Nodes POLineItem and POScheduleline will repeat)
    Help me out what should be passed as Content conversion Parameters..
    Thanks in advance
    Gowri K

    Hi Gowri,
    Please take a look at these threads.. They clearly explain File CC on the reciever side
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm
    Hope this helps you out!
    cheers,
    Prashanth
    P.S Please mark helpful answers
    It shows the CC params done on the reciever side.

Maybe you are looking for

  • Is there any way to export data from a calendar 5 instance to 6.3?

    I've run into yet another issue with my migration from calendar 5 to 6.3. It turns out that one of our satellite clinics has a very large amount of data stored on our older server. Right now we're having to put the migration on hold because there are

  • Cursor freezes on wake-up

    In the last few weeks, whenever my Macbook wakes up from sleep mode, the cursor/trackpad freezes. This occurs at least half the time. The only fix seems to be to close the lid, wait a moment, and reopen it -- more often than not (but not all the time

  • Lost iChat somehow how do i get it back in the system

    I am a newbe for mac. I had a msn messenger update and i downloaded it for the im, and when it finished it showed a ? in the middle of the iChat icon. I clicked on it and nothing happened. I got out of MSN and came onto mac said and the iChat icon wa

  • Regarding idoc segments modifcation

    Hi,       I created a segment zdh_name in we31. Then i released the idoc segment. Also i created a corresponding idoc type and released it and also created a message type .       When an idoc is created for a Purchase order in me21n the segment e1edp

  • Subscription start but can't call

    I can see this mess but in my account the subscription is started for unlimited calls world but still can't make any call anywhere . As in my account there is mess below You are currently restricted from purchasing services or redeeming vouchers. Ple