File content conversion : Deep Structure

Hi,
I have to do a file conversion(receiver file adapter) of an xml file which has a structure
<root>
<header>
  <recordtype>H</recordtype>
</header>
<company>
  <recordtype>C</recordtype>
  <companycode>001</companycode>
  <detail>
   <recordtype>D</recordtype>
    <customer>c1</customer>
  </detail>
  <detail>
    <recordtype>D</recordtype>
    <customer>c2</customer>
  </detail>
</company>
<company>
  <recordtype>C</recordtype>
  <companycode>002</companycode>
  <detail>
   <recordtype>D</recordtype>
    <customer>c3</customer>
  </detail>
  <detail>
    <recordtype>D</recordtype>
    <customer>c4</customer>
  </detail>
</company>
<trailer>
  <recordtype>T</recordtype>
</trailer>
</root>
I would like to convert it into
H
C001
DC1
DC2
C002
DC3
DC4
T
This is what i put in the
content conversion parameters..
HEADER,COMPANY,DETAIL,TRAILER
HEADER.fieldFixedLengths     1
COMPANY.fieldFixedLengths     1,3
DETAIL.fieldFixedLengths     1,2
TRAILER.fieldFixedLengths     1
the file adapter failed during conversion.
I am just wondering if it is to do with the deep structures
ANY THOUGTHS....

what do you mean by target structure.the mapped structure or the final file that is written to the FTP Folder.
the mapped structure is a treee
<root>
<header>
<recordtype>H</recordtype>
</header>
<company>
<recordtype>C</recordtype>
<companycode>001</companycode>
<detail>
<recordtype>D</recordtype>
<customer>c1</customer>
</detail>
<detail>
<recordtype>D</recordtype>
<customer>c2</customer>
</detail>
</company>
<company>
<recordtype>C</recordtype>
<companycode>002</companycode>
<detail>
<recordtype>D</recordtype>
<customer>c3</customer>
</detail>
<detail>
<recordtype>D</recordtype>
<customer>c4</customer>
</detail>
</company>
<trailer>
<recordtype>T</recordtype>
</trailer>
</root>
with the company 1 to unbounded
under which there can be multiple details...

Similar Messages

  • Need help in file content conversion complex structure

    Hi Guys ,
    Iam new to this file content conversion , Please let me know whether below requirement is possible .if yes than how ?
    Inbound XML file from Proxy
    <Data>
      <keyfield1>0011</keyfield1>
      <keyfield2>0012</keyfield2>
      <Keyfield3>0013</Keyfield3>
      <field1>Test1</field1>
      <field2>testfield1</field2>
      <field3>0001</field3>
    <Data>
      <keyfield1>0021</keyfield1>
      <keyfield2>0022</keyfield2>
      <Keyfield3>0023</Keyfield3>
      <field1>Test2</field1>
      <field2>testfield2</field2>
      <field3>0002</field3>
    output pgp flat file .
    pgp file format should be as below after file content conversion
      0011|0012|0013|Test1||||||
      0011|0012|0013|Testfield1||||||
      0011|0012|0013|0001||||||
      0021|0022|0023|Test2||||||
      0011|0012|0013|Testfield2||||||
      0011|0012|0013|0002||||||
    thanks a lot .
    Regards
    Prabhu

    Hi.
    Try this.
    First you need to use a message mapping  and create a target structure to convert a similar output  structure that do you want.  like this
    <Target>
    --  Field1
    --  Field2
    --  Field3
    --  Field4
    --  Field5
    --  Field6
    --  Field7
    --  Field8
    --  Field9
    </Target>.
    Then map
    keyfield1-> Field 1 ,keyfield2-> Field 2 , keyfield 3---> Field 3
    map  field1-> field4 .. for the others fields duplicate the Target node (right click)  and  map map  field2-> field5 ..etc.
    For the field 5 until field 9 map with constant ("'')
    Then in you receiver comunication channel put simple parameters. 
    Target.fieldSeparator = |
    Target.endSeparator = 'nl'
    Regards.

  • Sender Content Conversion - Deep Structure Question

    Hello!
    I receive a file that has the following format:
    HEADER  (occurrence = 1)
    INVOICES (occurrence = n)
         HEAD     (occurrence = 1)
         DETAIL   (occurrence = n)
    TRAILER (occurrence = 1)
    The file looks something like this:
    1Field1Field2...Fieldn
    2Field1Field2...Fieldn
    3Field1Field2...Fieldn
    3Field1Field2...Fieldn
    3Field1Field2...Fieldn
    2Field1Field2...Fieldn
    3Field1Field2...Fieldn
    3Field1Field2...Fieldn
    3Field1Field2...Fieldn
    4Field1
    Where 1 is the keyfieldvalue for Header, 2 for the Invoice Header, 3 for the Invoice Detail and 4 for the Trailer.
    Is it possible to manage this kind of file using the File Content Conversion. I'm haven't been able to get it to work. I don't wan't to split the file into separate msgs so I'm not using the option Recordsets per message. 
    I'll greatly appreciate any help, suggestions.
    Kind Regards,
    Carlos López

    Thank you all for your replies.
    Ramkiran, I tried your suggestion but I still get an error:
    Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR consistency check in recordset structure validation (line no. 5: missing structure(s) before type 'INVOICE_HEADER'
    It seems as if it was expecting a file with the following structure:
    HEADER
    INVOICE_HEADER1
    INVOICE_HEADER2
    INVOICE_HEADERn
    INVOICE_DETAIL1
    INVOICE_DETAIL2
    INVOICE_DETAILn
    TRAILER
    Instead of:
    HEADER
    INVOICE_HEADER1
    INVOICE_DETAIL1_1
    INVOICE_DETAIL1_2
    INVOICE_HEADER2
    INVOICE_DETAIL2_1
    INVOICE_DETAIL2_2
    INVOICE_DETAIL2_n
    INVOICE_HEADERn
    INVOICE_DETAILn_1
    INVOICE_DETAILn_2
    INVOICE_DETAILn_n
    TRAILER
    This is how my input file looks like:  (line 5 is in BOLD):
    A9166407    <---HEADER
    11231200    <----INVOICE_HEADER1
    20014014    <----INVOICE_DETAIL1_1
    200231       <----INVOICE_DETAIL1_2
    11231200    <----INVOICE_HEADER2
    20014014    <----INVOICE_DETAIL2_1
    20025077    <----INVOICE_DETAIL2_2
    20014014    <----INVOICE_DETAIL2_3
    20025077    <----INVOICE_DETAIL2_4
    99999999    <----TRAILER
    It's complaining about line 5 which is the Second Invoice Header.
    I defined the Recordset Structure like this:
    HEADER,1,INVOICE_HEADER,*,INVOICE_DETAIL,*,TRAILER,1
    Kind Regards,
    Carlos López Hernández
    Edited by: Carlos Lopez Hernandez on Feb 23, 2009 2:26 PM
    Edited by: Carlos Lopez Hernandez on Feb 23, 2009 2:32 PM

  • File Content Conversion - Recordset Structure required??

    Hi,
    I have a File Sender Communication Channel (CC) to convert very simple csv format to XI data type (XML).
    The contect of csv file will look something like this and will always have one line per file.
    111,222,333,444,555
    And I have defined the Data Type/Message Type with 5 fields as follows:
    Sender_DT
    ---F1
    ---F2
    ---F3
    ---F4
    ---F5
    Assuming that I'll always get one line of data in a csv file, I don't really need to set Recordset Structure in Content Conversion Paramters of File Sender CC but it is required parameter so you can't save it without populating this parameter.
    I understand that I can add a recordset to my DT so that it will look like below and type in Recordset in the Recordset Structure parameter but wanted to see if there is any other way to go around this without adding Recordset to DT.
    Sender_DT
    ---Recordset
    F1
    F2
    F3
    F4
    F5
    Thanks,
    Jay

    Hi Jay,
    You are correct. You can't have a struct like
    DT_SOURCE
    --F1
    --F2
    --F3
    You need another node with in DT_SOURCE like recordset
    DT_SOURCE
    -Recordset
    --F1
    --F2
    --F3
    If you don't get multiple lines in source file, you can simpl set the Recordset occurance to 1..1 but it is mandatory.
    Regards,
    Jai Shankar

  • File Content Conversion : Recordset Structure with * not reading file

    Hallo all,
    we have the following problem.
    we implemented a scenario as sown in this blog
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    but there is a problem.
    If the file structure is declared as :
    Header,1,Items,*
    then the adapter does not even read the file from the directory (so I assume that for some reason the file structure is not as expected).
    If on the other had the structured is declared as :
    Header,1,Items,3
    everything works.
    Obviously though, this is not satisfying since we need variable cardinalities.
    Here is an example :
    I have a specific file in a standard directory, called xi_input.
    The file is edited straight into that directory, so there can't be filename errors etc.
    If the file is left empty :
    Nothing happens . No message of any kind in sxmb_moni/monitoring xml messages .
    If the file contains the following (data is random) , where 'H' is the key for the header and 'I' is the key for the items :
    H 20060403 16 3 316001 kapou lalla morellala 20060403 F3 23
    I 277101010 2
    I 277101011 3
    I 277101012 4
    There are to cases :
    if the file structure is declared as :
    Header,1,Items,*
    Then nothing happens .
    If on the other had the structured is declared as :
    Header,1,Items,3
    everything works .
    Any suggestions and help is appreciated
    Thank you .

    Actually yes, there is an error message :
    Error     5/30/08 3:12:45 PM     fda9d3c5-4775-4df8-17b8-dfd14191171d     
    Retry interval started. Length: 5.0 seconds
    Error     5/30/08 3:12:45 PM     fda9d3c5-4775-4df8-17b8-dfd14191171d     
    Could not archive file 'E:\tmp\NetBeauty\In\xi_input.dat' after processing
    5/30/08 3:12:45 PM           Processing started
    And the details are :
    2008-05-30 16:07:00     Success     Channel CC_File_adapter: Entire file content converted to XML format
    2008-05-30 16:07:00     Warning     Channel CC_File_adapter: Empty document found. Proceed without sending message
    2008-05-30 16:07:00     Error     Attempt to archive file "E:\tmp\NetBeauty\In\xi_input.dat" after processing failed. Retry
    Only that they don't look very helpful. From this I only understand that the data in my input.dat file is not in the format expexced.
    I Have configured key fields as :
    keyfield name : keyfield
    Header.fieldNames : keyfield,CreationDate,CentralCustomerCode,CustomerCode,ReferenceDocumentNumber,DeliveryPlace,Message,ReturnMessage,DeliveryDate,SalesmanCode,Rest
    Items.fieldNames : keyfield,Material,Quantity
    Header.keyFieldValue     "H"
    Items.keyFieldValue     "I"

  • File Content Conversion - nested structures

    In the above bolded  message ... 
    2 Records are repeating  for  multiple times..
    i know how to do..
    if its repeats like  below.. i know how to do..
    Record1
    Record1
    Record1
    Record1
    Record1
    Record1
    Record1
    Record2
    Record2
    Record2
    Record2
    Record2
    Record2
    Record2
    Record2
    But in my case its Records are repeating  in this way...
    Record1
    Record2
    Record1
    Record2
    Record1
    Record2
    Record1
    Record2
    Record1
    Record2
    Record1
    Record2
    Record1
    Record2
    Record1
    Record2
    Record1
    Record2
    can  some help me .. please.. 
    Thanks
    sagar
    Message was edited by: sagarkavi srungarakavi

    If each record type starts with a key, and it looks like they do, it shouldn't matter what order they are in.
    In the recordset structure just make sure both of those are set like: Record1,,Record2,
    Set the recordset sequence to variable.
    Fill in the key field name and type, and then use the keyFieldValue parameter below. 
    Record1.keyFieldValue PO1
    Record2.keyFieldValue PID

  • Issue w/ File content conversion (Receiver side)

    Folks, there seems to be an issue with the conversion. I've read several of threads on this forum, but none helped! Although the file is generated with 8 bytes there seems to be nothing in the file.
    However when 'File' message protocol is used, the xml file is generated correctly as expected. All my other settings are fine.
    Here is the scenario:
    1) created Message type -
    MTX
    ..Material
    ..BaseUnit
    ..MatGrp
    ..Division
    2) comm. channel created for -
    Transport protocol: File (NFS)
    Message protocol: File content conversion
    Recordset Structure: MTX
    parameters:
        MTX.fieldSeparator: ,
        MTX.endSeparator: 'nl'
    Should recordset struc. and parameters have 'ns0' prefix, i.e.,
    Recordset Structure: ns0:MTX
    parameters:
        ns0:MTX.fieldSeparator: ,
        ns0:MTX.endSeparator: 'nl'
    What esle is missing? any thoughts are welcome.
    Thanks and appreciate your responses.

    Hi ABAP JUNOON,
    Could you please create another Test scenario and
    try
    MTI_XXX
         - DATA(0..unbounded)
             - fields?
    i mean, without redundant RS(Record Structure).
    and use 
    Transport protocol: File (NFS)
    Message protocol: File content conversion
    Recordset Structure: DATA.
    it will written the complete output file.
    some people create the Reciver data type for  test scenario's as follows.
    MTI_XXX
       -RS
         - DATA(0..unbounded)
             - fields?
    i mean with redundant RS
    in this case file is generated, but nothing will be appear.
    so plz take care while creating the reciver data type with FCC.
    and the following case also will work i.e
    MTI_XXX
       -RS
         -Header(0,1)
             - fields?
         - DATA(0..unbounded)
               - fields?
         - Trailer(0,1)
             - fields?
    Regards
    Mahesh.

  • Doubt regarding file content conversion Recever File adapter.

    target structure.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:MT_ChangeOfAddress xmlns:ns1="urn:passhe.com/ChangeOfAddressISA28">
         <BUSINESS_PARTNER>
              <item>
                   <CAMPUSCODE>65</CAMPUSCODE>
                   <STUDENTNUMBER>6500000192</STUDENTNUMBER>
                   <ST_OBJID>732298498</ST_OBJID>
              </item>
         </BUSINESS_PARTNER>
    </ns1:MT_ChangeOfAddress>
    target structure is look like this.
    MT_ChangeOfAddress
         BUSINESS_PARTNER  (1,1)
              item       (0 to unbounded)
                  CAMPUSCODE (0,1)
                  STUDENTNUMBER (0,1)
                        ST_OBJID      (0,1)
    I have given below parameters in recever file adapter (file content conversion)
    Recordset Structure : item
    item.fieldNames  : CAMPUSCODE,STUDENTNUMBER,ST_OBJID
    item.fieldSeparator: , (comma)
    i am getting first two digits in my output file: that  file has only first two digits that is : 65
    may i know how hould i define file contente conversion recever adapter to get proper data in file adapter.
    thanks,s
    Dhanush

    Hi,
    Go through these blogs:
    /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/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/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
    Thanks,
    Satya

  • File Content Conversion - Creating Mulitple structured Flat Files

    Hello,
           I am trying to create a flat file using File content Conversion.For simple XML strcutures like
    <Header>
    </Header>
       <Item>
       </Item>
    <Trailer>
    </Trailer>
    the file content conversion works fine. But whe the XML structure gets complicated like
    <Header>
    </Header>
       <Item>
          <Item_Detail>
          </Item_Detail>
       </Item>
    <Trailer>
    </Trailer>
    or
    <Header>
    </Header>
       <Item>
          <Item_Detail_1>
               <Item_Detail_2>
               </Item_Detail_2>
          </Item_Detail_1>
       </Item>
    <Trailer>
    </Trailer>
    I am not able to create the correct flat file with the Item_Detail information.How can I do the same ?
    Regards,
    Sandeep

    well same in the receiver side too....
    REF: http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    and sorry abt the earlier blogs, u can chk out the one below ....
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

  • File content conversion for file with hierarchical structure

    Hi
    I want to read a flat file in the following message structure using file content conversion.
    Message structure is :
    01 ( occurence = 1)
    _ 1B (occurence = unbounded)
    _ 1G (occurence = unbounded)
    _1H (occurence = 1)
    _1N ( occurence = unbounded)
    99 (occurence = 1, trailer record)
    In short there will be one 01 ( header record) in file. There will multiple 1B records. Under one 1B record there will multiple 1G records. Under each 1G record there will be one 1H recoprd and multiple 1N record. At the end there will one 99 record.
    File format : Fixed length
    Data in the text file would be as follows :
    01Test
    1BF0001MS005       4855390859  
    1GF000172075F31501  GBPINV 040806
    1HF000172075F 
    1NF000172075F0011MS0051125002FOOUKSTFOOD
    1NF000172075F0021MS0056540003ICOMSIEARCA 
    1BF0111TT005       3454390859  
    1GF011172075F31501  INRINV 040806
    1HF011172075F 
    1NF011172075F0011MS0051125002FOOUKSTFOOD
    1NF011172075F0021MS0056540003ICOMSIEARCA 
    99002187004855390859
    Is it possible to do above using file content conversion or is there any method to do it. Please suggest.
    Thanks
    Varun

    you cant acheive this heirarchy using the file adapters cont. conv, cos it supports only to a single level.
    Maybe you can have a module or use the conversion agent !!
    Some good reads on the Conv. agent!!!
    /people/william.li/blog/2006/03/17/how-to-get-started-using-conversion-agent-from-itemfield
    /people/paul.medaille/blog/2005/11/18/conversion-agent-a-free-lunch
    /people/alexander.bundschuh/blog/2006/03/14/integrate-sap-conversion-agent-by-itemfield-with-sap-xi
    /people/paul.medaille/blog/2005/11/17/more-on-the-sap-conversion-agent-by-itemfield

  • File Content Conversion for Multi Hierarchical Structure for Sender Adapter

    Hi Gurus,
    My text file is coming as
    Header,filed1,field2(Occurrence=1)
    Content,field3,field4(Occurrence =1-Unbounded)
    Detail,field4,field5(Occurrence = 1-unbounded)
    Trailer,fieldN(Occurrence=1)
    My requirement is to write a file content conversion, so that, in the resultant XML Structure the Detail will come under Content.
    I have defined the  Record Set Structure as
    Header,1,Content,*,Detail,*,Trailer,1
    But after FCC, the Detailed record is coming in the same level as the Content Record. But the business requires that, the Detailed Record should come under Content Record, so that they can correlate.
    Could any one advise?
    Regards,
    SS
    Edited by: Subhendu Sahu on Jun 17, 2011 4:43 PM

    Hi,
    Please use the below parameters -
    ○       NameA.keyFieldValue
    Specify the value of the key field for the structure.
    This entry is mandatory if the key field name is set. Otherwise, the entry is ignored.
    NameA.keyFieldInStructure
    ■       If the key field of the substructure is to be added to the XML document, enter add. This is the default.
    ■       If the key field is to be ignored, enter ignore.
    http://help.sap.com/saphelp_nwpi711/helpdata/en/44/6713ec3f914ddee10000000a1553f7/frameset.htm
    cheers,
    Sunil

  • File Content Conversion with Multiple structures

    Here is the scenario
    Legacy to XI -> XI to R/3 (App Server)
    txt file and fixed length.
    <b>Test file</b>
    100WELCOME    0430000960603201321
    2000000000040008000803
    <b>Table2</b>
    RecordType
    PriorityCode
    Destination
    BankOrginNo
    CreationDate
    CretionTime
    Spaces
    <b>Table2</b>
    RecordType
    Destination
    BankOrginNo
    ReferenceCode
    ServiceCode
    RecordLength
    CharactersPerBlock
    PartialCompression
    CompressionSpaces
    <b>Content Conversion Parameters:</b>
    Document Name: Details
    RecordsetName  : recordset
    Recordsetstructure  : Table1,1,Table2,*
    Recordsetsequence: Ascending
    RecordsetperMessage: *
    Keyfieldname          : KF
    Kefieldtype          : String(Case-Sensitive)
    Table1.keyFieldValue     :'1'
    Table1.fieldFixedLengths:1,2,10,10,6,4,47
    Table1.fieldNames :RecordType,PriorityCode,Destination,BankOrginNo,CreationDate,CretionTime,Spaces
    Table2.keyFieldValue     :'2'
    Table2.fieldFixedLengths: 1,10,10,10,3,3,4,1,38
    Table2.fieldNames:RecordType,Destination,BankOrginNo,ReferenceCode,ServiceCode,RecordLength,CharactersPerBlock,PartialCompression,CompressionSpaces
    ignoreRecordsetName     :true
    When I am trying with first structure it is working fine, where as 2 structures it is not.
    in the adopter monitoring it show it pics the file from Legacy(file adopter display green), where as SXMB_MONI it is not showing any thing.
    can any body help on this do I need to maintain any other parameters for file content conversion.
    Thanks
    M

    HI,
    I can see that.
    The number of characters in the file for TABLE2 is lesser then the number of field size given.
    for eg. if the table2 fixed field length sum is 20 ,your file contains only 10 characters. Please give complete data for table2
    Test file
    100WELCOME 0430000960603201321
    <b>2000000000040008000803</b>
    Table2.fieldFixedLengths: 1,10,10,10,3,3,4,1,38
    Ragards
    vijaya
    Message was edited by: vijaya kumari

  • File Content Conversion for complex structure

    Hi
    I have a requirement to repeat a structure consisting of three lines i.e the segment  containing these 3 lines will have occurrence 0....unbounded and will be repeated in the File multiple times ,
    What is the level that can be handled in File Content Conversion's recordset structure ?
    My issue is that  the structure is
    Dt_File -> Repeating Level1->Level2 ->Field1
                                                ->Level2a->Field3
                                                -> Level2b->Field5
    where the first level is DT_File
    under which I have RepeatingLevel1 as a SubElement
    and under Repeating level I have Level2 , Level2a and Level2b at its subelementsl
    and under Level2 I have Field1 , Under Level2a i have Field3 and under Levle 2b i have Field5
    How do i handle this in the Content Conversion ?? as in how do I create my Recordset Structure ?? as it just handles one level below the Document Name (i,e) Message Type)
    Is it possible ??? or should i consider some other way to constuct my data type ??
    Thanks
    Dev

    Hi Tarang
    My DT according to the target file structure is this :
    DT_File
    >Main1(1,1)
    >Main2(1,1)
    >Main3(0...unbounded)
    >Record1(1,1)
    >Field1
    >Field2
    >Field3
    >Record2(1,1)
    >Field4
    >Field5
    >Record3(1,1)
    >Field6
    >Field7
    SO I want to confirm if the receiver FCC will be   -     Main1,Main2,Main3,Record1,Record2,Record3
    Record1.fieldSeparator  ,
    Record1.endSeparator     'nl'
    Record2.fieldSeparator  ,
    Record2.endSeparator     'nl'
    Record3.fieldSeparator  ,
    Record3.endSeparator     'nl'
    or                                                                   Main1,Main2,Record1,Record2,Record3
    Thanks
    Dev

  • Receiver File content conversion with nested structure

    Hi Guys,
    I have the below nested structure and have to convert it using receiver file content conversion.
    <Header> [o, unbounded]
       <A>a</A>
       <B>b</B>
    </Header>
    <record>   [0, unbounded]
       <field1>
            <X1>x</X1>
            <Y1>y</Y1>
       </field1>
       <field2>
             <X2>x</X2>
             <Y2>y</Y2>
       </field2>
    </record>
    The file is a comma separated one. Please let me know how to configure the content conversion.
    Thanks

    Hi Mukesh,
    Have a look at the Shabz's blog for the receiver File content conversion : File Adapter (Receiver) - Are we "really" sure about the concepts?
    Thanks,
    Pooja

  • 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

Maybe you are looking for

  • How can I create a Music Video playlist (for Universal Dock)?

    Ok, I created a smart playlist of all my Music Videos but this is a music playlist. I want a *Music Video* playlist so that all my music videos will play one after the other without user interaction (when playing in the Universal Dock with it's usele

  • Missing 'Chart View' in visual composer

    Netweaver Visual Composer Client Version 701.5.0027 Model>Package>Page>Iview Compose Model>  _Chart View_  missing from components. I have created this graphic chart in QA (data sourced from BI query) but need to create in dev to follow correct migra

  • Converting date to dayNumber

    Post Author: kalyan CA Forum: Formula Hi i have a typical problm .. , i have a column with receiveddate from which i should show some count of recods on that date here is the requirement The Day 0 should be u2018todayu2019s dateu2019 and items appear

  • Minor irritations with N80...

    Hey there, I have two little problems with my phone and just wondered if anyone could help... Firstly in Music Player, when I press pause the music stops, but then often won't play again. The pause button briefly flashes the play symbol, but then goe

  • App for billing, time management for contractor..

    Need an app to keep expenses, time billing by job or project for construction jobs.  Need to be able to attach notes--would like to be able to generate on the spot invoice for customers and email copy to home office.  Also, would like sketch pad with