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

Similar Messages

  • 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

  • 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

  • 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

  • File Content conversion - IDOC to Fixed length File

    Hi,
    Scenario : SAP R/3(IDOC) -> XI -> Fixed Length file
    IDOC is sending from SAP R/3, XI has to do the mapping and send a Fixed length File to /tmp in XI.
    When I am using the message Protocol as "File" in the Receiver communication channel, XML file is writing to /tmp. When I am using "File Content Conversion" as a message protocol,Empty File is writing. Can anybody tell me why empty file is creating. Can we use File content Conversion in this scenario. Is there any additional parameter or settings required?
    Receiver communication channel settings:
    Message Protocol: File Content Conversion
    File type       : Binary
    Recordstructure : MT_V_PER01
    Name                             Value
    MT_V_PER01.fieldFixedLengths     25,35
    MT_V_PER01.fieldNames            PERSNR,NAME
    File Data Type : DT_V_PER01,
    Message type   : MT_V_PER01
    IDOC type      : WP_PER01.
    Expecting your expert advice.
    Thanks
    vineesh

    Hi Moorthy,
    I am getting success messages in Audit log as below:
    2006-09-29 12:08:53 Success Trying to put the message into the send queue.
    2006-09-29 12:08:53 Success Message successfully put into the queue.
    2006-09-29 12:08:53 Success The message was successfully retrieved from the send queue.
    2006-09-29 12:08:53 Success The message status set to DLNG.
    2006-09-29 12:08:53 Success The message was successfully transmitted to endpoint http://nslcxi08:8010/sap/xi/engine?type=entry using connection AFW.
    2006-09-29 12:08:53 Success The message status set to DLVD.
    2006-09-29 12:08:53 Success The message was successfully delivered.
    I have checked the Payload maindocument,the IDOC structure contains data.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <WP_PER01>
    - <IDOC BEGIN="1">
    - <EDI_DC40 SEGMENT="1">
      <IDOCTYP>WP_PER01</IDOCTYP>
      <MESTYP>WP_PER</MESTYP>
      <STDMES>WP_PER</STDMES>
      <SNDPOR>SAPLCD</SNDPOR>
      <SNDPRT>LS</SNDPRT>
      <SNDPRN>LCDCLNT210</SNDPRN>
      <RCVPOR>LXDCLNT250</RCVPOR>
      <RCVPRT>LS</RCVPRT>
      <RCVPRN>LXDCLNT250</RCVPRN>
      </EDI_DC40>
    - <E1WPP01 SEGMENT="1">
      <PERSNR>0000100006</PERSNR>
    - <E1WPP02 SEGMENT="1">
      <NAME>Consumer</NAME>
      </E1WPP02>
      </E1WPP01>
      </IDOC>
      </WP_PER01>
    Thanks
    Vineesh

  • Complex file content conversion in case of CSV file

    Hi Friends,
    What you see below is generated from Excel i.e excel file saved as CSV file. This file i need to map in XI.
    Problem is i have to take only the data and not the header part.
    for e.g in this particular line
    Employee ID          :,,E00315
    I need only E0315 and not the header value. Similarly i have to find some solution to map all the required data.
    Please suggest me how to use file content conversion in such scenarios.
    Solution is required on top priority. Points will be immdly rewarded.
    Thanks & Regards
    K.Ramesh
    ,,Time Sheet,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    ,,,,,,,,,,Ref. No: T-PRO-01-011,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    ,,,,,,,,,,Page No.: 01,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    Employee ID          :,,E00315,,,Sale Order No /  Line Item :,,,SO123456,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    Employee Name    :,,K.RAMESH,,,Client Name                         :,,,NCLIENTELE,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    Month / Week        :,,Jul-08,,,Project Name                       :,,,Internal Project,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    Sales Team            :,,,,,Project  Role Start date      :,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    Location                   :,,BANGALORE,,,Project Role End date         :,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    Sl. No.,Date,Day,AA Type, Task Description,,,,,No.of Hours,Remarks,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    1,7/1/2008,Tue,0814-Talent acquitision,task 1,,,,,12.00,rmk 1,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    2,7/2/2008,Wed,0814-Talent acquitision,task 2,,,,,10.00,rmk 2,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    3,7/3/2008,Thu,0814-Talent acquitision,task 3,,,,,12.00,rmk 3,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    4,7/4/2008,Fri,0814-Talent acquitision,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    5,7/5/2008,Sat,0814-Talent acquitision,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    6,7/6/2008,Sun,0950-Holiday,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    7,7/7/2008,Mon,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    8,7/8/2008,Tue,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, , , ,,,,,,,,,,,,,,,,,,,,
    9,7/9/2008,Wed,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    10,7/10/2008,Thu,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    11,7/11/2008,Fri,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,, , ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    12,7/12/2008,Sat,0950-Holiday,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    13,7/13/2008,Sun,0950-Holiday,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,
    14,7/14/2008,Mon,0900-Paid leave,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    15,7/15/2008,Tue,0900-Paid leave,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    16,7/16/2008,Wed,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    17,7/17/2008,Thu,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    18,7/18/2008,Fri,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    19,7/19/2008,Sat,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    20,7/20/2008,Sun,0950-Holiday,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    21,7/21/2008,Mon,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    22,7/22/2008,Tue,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    23,7/23/2008,Wed,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    24,7/24/2008,Thu,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    25,7/25/2008,Fri,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    26,7/26/2008,Sat,0814-Talent acquitision,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    27,7/27/2008,Sun,0950-Holiday,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    28,7/28/2008,Mon,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    29,7/29/2008,Tue,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    30,7/30/2008,Wed,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    31,7/31/2008,Thu,0804-Development,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    Prepared By:,,,,,Approved By:,Company Project Manager,,,,Client Project Manager,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    Name,,K.RAMESH,,,Name,YYY,,,,ZZZ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    Signature,,,,,Signature,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    Date   ,,31.07.2008,,,Date           ,31.07.2008,,,,31.07.2008,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

    Hi,
    In this CSV file, what all i need is the value E00315 after the label Employee ID. I used in FCC the parameters u asked me to do. Also in the Document Offset i gave value 3 so that the first three lines are ignored.
    1,,,Time Sheet,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    1,,,,,,,,,,,Ref. No: T-PRO-01-011,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    1,,,,,,,,,,,Page No.: 01,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
    1,Employee ID          :,E00315
    But still i am getting the error
    Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 4 according to structure 'tims_header':java.lang.Exception: ERROR in configuration / structure 'tims_header.': More elements in file csv structure than field names specified!
    Please help.
    Thanks
    Ramesh

  • FIle Content Conversion Problem in IDOC-XI-File Scenario

    Dear All,
    I am doing IDOC-XI-FILE scenario.
    I am facing one problem related to File Content Coversion.My requirement was to generate a dynamic file like <b>%store_code%_%current_date%_sitemaster.xml</b> , I have completed the dynamic generation successfully .
    Now there is slight change in the requirement ,<b>we have to suppress the current_date node of the xml content</b> . i have tried to suppress the current_date using these <b>DATE.fieldFixedLengths 0 , Date.fixedLengthTooShortHandling Cut</b> , But I am unable to suppress it Can some body provide me the details on this .
    The output xml version generated by Reciever file adapter is as below :
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_SITE_MASTER xmlns:ns0="http://sample-xitest.com/sitemaster">
    - <SITE_DATA>
    <STORE_CODE>N002</STORE_CODE>
    <TITLE_MEDI>Company</TITLE_MEDI>
    <STORE_NAME>Mount Road</STORE_NAME>
    <STREET>Chennai</STREET>
    <COUNTRY>IN</COUNTRY>
    <SALES_TAX_NO>12345678910</SALES_TAX_NO>
    </SITE_DATA>
    </ns0:MT_SITE_MASTER>
    Plz provide me the code I have to write in the file content conversion .
    Thanks in advance
    Regards
    Prabhat

    If u see my earlier reply, I mentioned that u can not suppress the field from the one node.i.e Form SITE_DATA data type u can not suppress the field called CURRENT_DATE.
    My suggestion is that , modify the Data type in such a way that you will be having two nodes as I have mentioned earlier.  Then use the Suppress Logic for the Current Date.
    So it will look like this-
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_SITE_MASTER xmlns:ns0="http://sample-xitest.com/sitemaster">
    - <SITE_DATA>
    <STORE_CODE>N002</STORE_CODE>
    <TITLE_MEDI>Company</TITLE_MEDI>
    <STORE_NAME>Mount Road</STORE_NAME>
    <STREET>Chennai</STREET>
    <COUNTRY>IN</COUNTRY>
    <SALES_TAX_NO>12345678910</SALES_TAX_NO>
    </SITE_DATA>
    <CURR_DATE>
       <CURRENT_DATE>20051105</CURRENT_DATE>
    </CURR_DATE>
    </ns0:MT_SITE_MASTER>
    So ur SITE_DATA is not having a field called CURRENT_DATE. This field is in separate node (segment ) called CURR_DATE. Now u can use the Suppress Logic for the same like this.
    CURR_DATE.fieldFixedLengths - 0
    CURR_DATE.fixedLengthTooShortHanling - Cut
    And in your Variable Substitution you can use the date from the other segment called CURR_DATE.
    Hope this solves ur problem.
    Regards,
    Moorthy

  • File Content Conversion--- Removing Quotations from csv file

    I have a csv file in the folowing format:
    field1,field2,field3,field4
    "111","222","333","444"
    "aaa","bbb","ccc","ddd"
    Suppose the header name is row in IR.
    While configuring the sender file adapter in XI, i have given following parameters under file content conversion.
    row.fieldNames=field1,field2,field3,field4
    row.fieldSeparator=","
    row.processFieldNames=fromConfiguration
    row.beginSeparator="
    After picking up the XML file XI processes the data so that we have out put as
    row
    field1 111
    field2 222
    field3 333
    field4 444"
    row
    row
    field1 aaa
    field2 bbb
    field3 ccc
    field4 ddd"
    row
    My Problem is what parameter should I add in ID to remove this last quote say 444" and ddd" from the XML message ????
    I tried using
    row.endSeparator=" but it is still giving the same output.
    Can anyone help ????????????????????????

    Hi,
    Try this FCC instead
    row.fieldNames=field1,field2,field3,field4
    row.fieldSeparator=,
    row.processFieldNames=fromConfiguration
    row.enclosureSign=u201C
    row.enclosureSignEsc=u201Cu201C
    row.endSeparator='nl'
    http://help.sap.com/saphelp_NW04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
    If you specify xml.enclosureSign=u201C and xml.enclosureSignEsc=u201Cu201C, text enclosed in quotation marks is transferred unchanged and the quotation marks are removed.
    Thanks
    SaNv...

  • File Content Conversion in PI 7.1 (file to Proxy)

    Hi 
    I am working on a file (text) to Proxy scenario in PI 7.1 version, where I receive the file as shown below
    1. Record is header
    2. 2nd and 3rd records are Details with the different formats
    3. Last Record is trailer
    File will have the 2nd and 3rd records sequentially, ex file will have 2nd format, 3rd record format, 2nd record format, 3rd record format, 2nd record format, 3rd record format like that
    0200
    1BFKKOPKC_C  MC  -20090803-01MC  5444002244564364  2009073000000000BOSTON RED SOX
    2BFKKOPKD_C  MC  -20090803-0190000000006520090112
    1BFKKOPKC_C  VISA-20090803-01VISA4011080000404419
    2BFKKOPKC_C  VISA-20090803-01VISA4011080000404416
    1BFKKOPKC_C  VISA-20090803-0190000000006620090112
    2BFKKOPKC_C  VISA-20090803-0190000000006720090112
    1BFKKOPKC_C  VISA-20090803-01VISA4011080000404450
    2BFKKOPKC_C  VISA-20090803-01VISA4011080000404450
    3BFKKOPKS_C            5,500.00-USD      5
    4BFKKOPKS_C            5,500.00-USD      5
    Can anyone let me know what are the parameters needs to be declared in the file content conversion, and how to process the file if the file contains different formats sequentially
    Thanks a lot for the input
    PR

    PR ,
    You would be needing these ones.. :
    NameA.fieldNames
    NameA.fieldSeparator.
    NameA.endSeparator
    NameA.fieldFixedLengths (this one not sure though....depends upon ur req,..)
    Regards,
    Edited by: Santosh Rawat on Aug 10, 2009 11:17 AM

  • How to do a sender File Content Conversion with this structure ?

    Hi SDN,
    I have a flat file with this format :
    header1
    header2
    headerN
    detail1
    detail2
    detailM
    header and detail are strings with differents lengths.
    There is no key field.
    What are the method to do a FCC with this structure ?
    thanks in advance
    Greg

    Hi,
    Here is my test data :
    3D10512224046N350 106500002000020083,450072413090545023500280242
    3D10512224142N388  63400012000120138,050062213030641032902310041
    3D10512224143N355 191600009000080333,850062914360806045901430124
    3D105122230127/014046N 106501080015301051222084500170000,6894840047,4027610101
    3D105122233970/014046N 106501090011001051222105800110000,6895330047,3884300102
    3D105122228864/014142N  63402050008301051222065900080000,7999170047,3951100101
    3D105122210381/014142N  63401073011001051222071500190000,7397000047,3853100102
    3D105122210668/014142N  63403070011591051222081200100000,8302500047,3871200103
    3D105122210342/014142N  63405073011591051222082700130000,8269000047,3866200104
    3D105122223934/014142N  63404073011301051222085100120000,8365170047,3757800105
    3D105122210380/014142N  63409063011591051222092900120000,9868670047,3974300106
    3D105122201670/014142N  63406050011591051222100000110000,9861830047,5372000107
    3D105122210514/014142N  63410073011001051222103300070000,9895830047,4272700108
    3D105122201339/014142N  63407090014301051222105300190000,9831410047,4126660109
    3D105122204940/014142N  63408073014301051222111700150001,0161500047,4243200110
    3D105122225675/014142N  63411090012001051222121100191000,7733330047,3888700111
    3D105122205447/014142N  63401080012001051222123800061000,7442170047,3867100112
    3D105122216716/014143N 191601080011001051222074300091000,2266940047,8758400101
    3D105122222952/014143N 191601073011301051222081800360000,3559120047,9371010102
    3D105122225232/014143N 191601063014001051222090600130000,4123830047,8753300103
    3D105122216516/014143N 191601083012001051222095700080000,4648000047,8643300104
    3D105122230377/014143N 191601070012001051222100700040000,4714830047,8638500105
    3D105122221885/014143N 191601073012001051222104500130000,5358330048,0378500106
    3D105122208380/014143N 191601071517001051222122500110000,5779500047,7382700107
    3D105122224171/014143N 191601070011001051222124300081000,6140330047,7543800108
    There is no key code because the data are different depending on the companies in my group.
    Greg

  • File content Conversion Issuse for a Sender File Adapter

    Hi All ,
                 I am working for a Migration project , so my  File structure will be as follows
    <HEADER>
          <DATA1>
         <DATA2>
         <DATA3>
       <HEADER>
    <ITEM>
         <ITEM1>
         <ITEM2>
         <ITEM3>
    <ITEM>
    WHERE i do have flat file will be as follows
    10001,20081902,US
    10,soda,1
    30,soda,4
    40,soda,5
    10002,20081902,US
    10,steel,1
    30,steel,4
    40,steel,5
    how to pick this file using FCC from sendere flat file adapter without keyfields , and i can use fixed length also

    Sridhar,
    You can use a work around like this. Create a generic Data Type something like below.
    <Message Type>
       <Recordset> - root node
          <ROW>  - element with occurence 0..unbounded
    Now create an outbound MI with the above MT, in FCC in sender file adapter, give Recordset structure as ROW, *
    This way , you will read the entire file inside XI as an XML like below
    <ROW> header record </ROW>
    <ROW> item record 1 </ROW>
    <ROW> item record 2 </ROW>
    <ROW>....</ROW>
    In XI , since your header row & item rows are fixed length, now, you can use that in a UDF in your message mapping , or parse the xml using DOM parser in Java mapping, you should be good. Hope this helps.
    ~Saravana

  • File Content conversion for Fiexed length output file

    Hi,
    I am Working on Idoc to File scenario.
    I would like to know the content conversion partmenrts for the follwoing structure.
    Structrure is as below:
    Message Type
      Header Record  1..unbounded
    .    Field1   0...1
    .    Field2   0...1
    .    Field3   0...1
    ..    Detaillines   0...unbounded
    ...       Field3  0..1
    ...       Field4  0..1
    ..    Detaillines2   0..unbounded
    ...       Field6   0...1
    ...       Field7   0...1
    Can you please advise.
    Regards,
    Manoj Kumar

    Hi Manoj
    Give the FCC parameter as
    RecordSet Structure = Header,,Detaillnes,,Detaillines2,*
    Header.endSeparator = 'nl'
    Header.fieldFixedLengths = field length
    Header.fieldFixedLengthType = char/byte
    Header.fieldNames = field1,field2,field3,.....
    Header.keyFieldValue = Header
    Detaillnes.endSeparator = 'nl'
    Detaillnes.fieldFixedLengths = field length
    Detaillnes.fieldFixedLengthType = char/byte
    Detaillnes.fieldNames = field1,field2,field3,.....
    Detaillnes.keyFieldValue = Detaillnes
    Detaillines2.endSeparator = 'nl'
    Detaillines2.fieldFixedLengths = field length
    Detaillines2.fieldFixedLengthType = char/byte
    Detaillines2.fieldNames = field1,field2,field3,.....
    Detaillines2.keyFieldValue = Detaillines2
    The keyFieldValue should be the Value which identifies your record either as Header/Detaillines/Detaillnes2.
    Regards
    Santhosh
    Message was edited by:
            Santhosh Kumar V

  • File content conversion scenario-empty file

    Hi all,
    I am doing file content conversion for my sender flat file. And I want to generate XML file in my receiver location.When I check with test tab in my message map in IR , no structure gets generated in RESULT.Overalls cenario is working fine and message is processed successfully but empty file is getting generated in target directory.When I check the payload in message content in RWB communication channel monitoring,it's picking data correctly from the file.I am not getting what might have gone wrong with my message mapping in IR. It's not showing any syntax error.Even it's not generating target message structure in Results window of test Messsage mapping.Could you suggest what mistake might be there in message mapping.

    Hi all,
       I am getting this message in message monitor(SXMB_MONI).
    com.sap.aii.utilxi.misc.api.BaseRuntimeException
    thrown during application mapping
    com/sap/xi/tf/_MM_Flat_content_conv_:
    RuntimeException in Message-Mapping transformatio~
    I am able to see the output structure in test window of message mapping in IR and communication channel monitoring is also showing successful message.
    fcc parameters used are:
    Header.fieldNames KEY,EMPID,NAME,COMPANY,PHONE
    Header.fieldFixedLengths 1,4,20,15,12
    Header.processConfiguration FromConfiguratiion
    Header.keyFieldValue H
    Detail.fieldNames KEY,COMPANY,LOCATION
    Detail.fieldFixedLengths 1,15,10
    Detail.processConfiguration FromConfiguratiion
    Detail.keyFieldValue D
    Please suggest the mistake in mapping
    Edited by: Jaya on Mar 3, 2010 12:45 PM
    Edited by: Jaya on Mar 3, 2010 12:47 PM

  • 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

  • Create IDoc from flat file - How to do the message mapping

    Hi everybody,
    I want to create an IDoc from a flat file.
    The file structure looks like this:
    MT_XYZ
    - Node001       0...1
      - Leaf001
    - Node002       0...unbounded
       - Node003    0...1
          - Leaf002
          - Leaf003
       - Node004    0...1
          - Leaf004
       - Node005    0...1
          - Leaf005
    I have created a mapping and all the other stuff to set up the IDoc adapter.
    Now when I try to test the interface the IDoc is created properly but obviously no information from the nodes "Node003" to "Node005" is inserted in the IDoc. Only the information kept in the elements (leafs) of "Node001" are inserted.
    All IDoc segments and their "Segment" elements are linked to the root node of the file structure "MT_XYZ". I tried to link some IDoc segments only to "Node002" but then this segment is not created.
    So how can I set up the message mapping in a way that the information from "Node003" to "Node005" is transported to the IDoc? Can anyone help me here?
    Thanks in advance for all answers!
    Regards,
    Torben
    Edited by: Torben Hönemann on Dec 14, 2009 4:26 AM

    Hi Torben,
    >>I want to create an IDoc from a flat file.
    So you are using File content Conversion on the sender side. Right?
    >>no information from the nodes "Node003" to "Node005" is inserted in the IDoc.
    Are these information available in the source XML (you can check in transaction SXMB_MONI-> Input Payload).. There is a limitation in File Content Conversion of File adapter and it is that I can make an XML structure of 3 level.. Since these nodes details are in level 4 and 5 they should be missing in Source XML structure itself (after content conversion of File adapter). check that
    >>So how can I set up the message mapping in a way that the information from "Node003" to "Node005" is transported to the IDoc? Can anyone help me here?
    So you need to take an alternate approach where you do File Content Conversion and make 3 level structure.. then using a mapping convert this three level structure to your 5 level one and then try to map with the idoc.
    Check this blog for an idea
    http://www.riyaz.net/blog/xipi-file-content-conversion-for-complex-structures/
    http://www.riyaz.net/blog/xipi-convert-flat-file-to-deeply-nested-xml-structures-using-only-graphical-mapping/
    Regards
    Suraj

Maybe you are looking for

  • Please help. G5 no longer recognizes my monitor.

    Hello. I have a Gateway FPD1975W widescreen monitor connected via VGA to my G5's DVI port. My computer recognized the display right out of the box and showed the proper resolutions for the display (native 1440x900). Recently, however, I hooked up the

  • Notifications are not secured in nokia asha 210

    my sister is having nokia asha 210.i logged into facebook account in her phone and after logging out my account she is still getting notifications and half message and there is only an option to disable it but i wanna remove notifations  forever.now

  • Apple TV / iphone remote

    Ive just set up and synced ATV with my PC (not Mac) and tried to use the remote App on my iphone to control it - the remote works my PC and plays music from my library but it doesn't play through Apple TV? Is there a way of controlling ATV with my ip

  • Problem with jsp tag in jsf file c:import

    <!-- <c:import url="#{backing_Home.whichMenu}"/>--> <jsp:include page="#{backing_Home.whichMenu}"/> I am trying to use a JSF variable in jsp tag I am getting error like this javax.servlet.jsp.JspTagException: /#{backing_Home.whichMenu}     at org.apa

  • Arabic language not display when i make search by arabic language why

    <p>Hi guys in my database i have hrdatabase has table Employee</p><p>Table Employee has field EmployeeName nvarchar(50)</p><p>my sql server support arabic language but i dont know how to handel query to accept arabic</p><p>in query analyzer i write</