Sender File Content Conversion with headerline

Hi,
Is it possible to do via the sender file content conversion in the file adaptor for the following flat file?
Inbound flatfile format:-
FILEHEADER
HEADER1
DETAILS1
DETAILS2
DETAILS3
HEADER2
DETAILS1
DETAILS2
DETAILS3
Target XML file format:-
<XML>
<FILEHEADER></FILEHEADER>     occurrence 1
<RECORDSET>                occurence *
   <HEADER></HEADER>     occurence 1
   <DETAILS></DETAILS>    occurence *
</RECORDSET>
</XML>
Edited by: Bee Huat, Leonard Yong on Oct 16, 2008 10:52 AM

I've read through all the blogs, and have no leads on how to get this done?
I tried putting the following into the recordset.  FileHeader, 1, Header, 1, Details, *
But it does'nt seem to work, the above is expecting the Fileheader and header to be repeated in the file to be sent.
My file is in the following format.
Fileheader
Header1
Details1
Details2
Details3
Header2
Details1
Details2
Details3
I need the following XML format
<XML>
<Fileheader>
<invoice>
   <header1>
      <details1>
      <details2>
      <details3>
  </header1>
</invoice>
<invoice>
   <header2>
      <details1>
      <details2>
      <details3>
     </header2>
</invoice>
</XML>
Edited by: Bee Huat, Leonard Yong on Oct 16, 2008 5:34 PM

Similar Messages

  • Sender File Content Conversion with re-occuring record pairs

    Hi,
    Our FCC works fine with the following structure:
    Header1: H1F1, H1F2, H1F3,... (1:1)
    Header2: H2F1,H2F2,H2F3,..... (1:1)
    Notes: NF1,NF2,NF3,.............(1:1)
    Line1:L1F1,L1F2,L1F3,.............(1:N)
    Line1:L1F1,L1F2,L1F3,
    Line1:L1F1,L1F2,L1F3,
    Line1:L1F1,L1F2,L1F3
    Line2:L2F1,L2F2,L2F3,............(1:N)
    Line2:L2F1,L2F2,L2F3,
    Line2:L2F1,L2F2,L2F3,
    Line2:L2F1,L2F2,L2F3,
    But we have structure as below:
    Header1: H1F1, H1F2, H1F3,... (1:1)
    Header2: H2F1,H2F2,H2F3,..... (1:1)
    Notes: NF1,NF2,NF3,.............(1:1)
    Line1:L1F1,L1F2,L1F3,.............(1:N)
    Line2:L2F1,L2F2,L2F3,.............(1:N)
    Line1:L1F1,L1F2,L1F3,
    Line2:L2F1,L2F2,L2F3,
    Line1:L1F1,L1F2,L1F3,
    Line2:L2F1,L2F2,L2F3,
    Line1:L1F1,L1F2,L1F3,
    Line2:L2F1,L2F2,L2F3,
    Lin1 and Line2 occur as multiple pairs making it as multiple line items. When we use content conversion parameters as below:
    Header1.fieldNames          H1F1,H1F2,H1F2,...
    Header1.fieldFixedLengths     10,5,10,.....
    Header1.keyFieldValue          H1 
    Header1.keyFieldInStructure     add
    Header1.endSeparator          'nl'
    Header1.lastFieldsOptional     YES
    and same for Header2, Notes, Line1, Line2
    It picks up only first Header1, Header2, Notes, Line1 and Line2 in a recordset.
    Does anyone have idea how could we do this content conversion? Any help would be appreciated.
    Reagrds,
    N@v!n

    Hi Navin,
    You can check the below links :-
    Complex File Content Conversion - with random multiple occurrences
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2007/08/03/file-adapter-receiver--are-we-really-sure-about-the-concepts
    Complex content conversion File sender
    These might be of some help.
    Regards,
    Rohit

  • 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

  • Need Help in Sender File Content Conversion

    Hi All,
    I request your expert advice on Sender File content Conversion. I need to process the below pasted file. I was able to achieve this by keeping a offset of 6 in Sender PI File Adapter (PI 7.1) to ignore first 6 lines and used a Unix script to remove last line"END OF REPORT".
    Now my new requirement is I need to capture the date "DECEMBER 2009" from line 3. How can I do this. I have set offset as 6 so Adapter will start processing from line 7. If I don't set offset Interface fails. Please suggest. Thank you.
    ABC LAB            XYZ LIMITED"
                       TRIAL BALANCE"
                       FOR THE PERIOD ENDED DECEMBER 2009"
    "TEST Bank","101000",-1589365.58,0.00,738295.08,0.00
    "TEST Bank Clearing A/c","101200",0.00,0.00,14848018.55,0.00
    "TEST Bank Sweeps","101250",104315957.19,0.00,7571985482.08,0.00
    "TEST Receipts","101260",0.00,0.00,19788596.15,0.00
    "TEST Corporate Deposits","101270",-7776629.87,0.00,-135914980.50,0.00
    "SHARES","00SH",0.00,0.00,-7869890086.22,0.00
    "END OF REPORT"

    Dear Phani,
    Please go through the below blogs:
    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
    Thanks,
    Satya

  • Doubt regarding sender file content  conversion

    Hi Experts
    This is my source XML structure, how to define Sender file adapter (Content Conversion)  and filed lenths: COMMIT_I 1, STUDENT 12, ID_TYPE 6, ID_NUMBER 60, VALID_FROM 8,VALID_TO 8
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:IDENTIFICATION_ADD_Req_MT xmlns:ns0="urn:passhe.com/UpdateIdNumberISA32">
       <COMMIT_I>X</COMMIT_I>
       <IDENTIFICATION>
          <STUDENT>Student</STUDENT>
          <ID_TYPE>New</ID_TYPE>
          <ID_NUMBER>12345</ID_NUMBER>
          <VALID_FROM>12/03/2008</VALID_FROM>
          <VALID_TO>13/04/2008</VALID_TO>
       </IDENTIFICATION>
    </ns0:IDENTIFICATION_ADD_Req_MT>
    Please suggest me how to configure Sender file content conversion
    Thanks
    Dhanush.

    hi sekhar,
    Just go through this blogs & links.
    /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
    reward points if found helpfull
    regards
    chandra.k

  • Sender File Content Conversion Complexity

    It is again time to dip into the well of knowledge that is SDN.
    I have a question about sender file content conversion.  
    It appears that I can only create simple XML structures with it, but I'm hoping someone here can help.
    Lets says I have a file where each record layout is the same.   There are not header records, trailer records, etc.   Basically only one structure within the recordset.
    However the record itself may have a complicated structure.   For example, the layout of each record may be:
    String1, String2, String3, Array(0:3) consisting of String4, String5, String6.
    Can I convert that to a structure of
    <Node>
        <string1>
        <string2>
        <string3>
        <array>
            <string4>
            <string5>
            <string6>
        <array>
            <string4>
            <string5>
            <string6>
    </Node>
    Or must I create a DT containing one node giving string4,5 and 6 a unique name for each occurance?
    Thanks in advance.

    Hi,
    You can go with generic structure and then either in the adapter module or Mapping, you can format the structure. Because content conversion has a limitation to upto one level.
    check this for limitation-
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50061bd9-e56e-2910-3495-c5faa652b710
    check this for generic structure-
    /people/sravya.talanki2/blog/2005/08/16/configuring-generic-sender-file-cc-adapter
    Rgds,
    Moorthy

  • Receiver file Content Conversion with Header line

    Hi,
    Here I am doing receiver file content conversion with header line.
    I am able to get the output file correct, when I open the file in notepad the header line and data appearing in the same line (not accepted).
    But when I tried to open the name file in internet explorer I can see the header line and data in two different lines (accepted).
    What should I do I want to see the same output in the notepad?
    Please help me out.
    Thanks in advance,
    Srikanth.

    You can use NameA.addHeaderLine.
    Specify whether the text file will have a header line with column names. The following values are permitted:
    0 u2013 No header line
    1 u2013 Header line with column names from the XML document
    2 u2013 As for 1, followed by a blank line
    3 u2013 Header line is stored as NameA.headerLine in the configuration and is applied
    4 u2013 As for 3, followed by a blank line
    The below weblinks will help you to know the other paramters.
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    http://help.sap.com/saphelp_nwpi71/helpdata/en/44/686e687f2a6d12e10000000a1553f6/content.htm

  • XML file conversion after sender file content conversion

    Hi,
    I have issue refarding file content conversion.
    My input structure is
    <MT_RCICrecords>
    <TRNH>
      <RCIC>
        <RECH>
        <RECL>
      <RCIC>
    <TRNH>
    Afetr sender File content conversion (csv to xml) it produces xml file as below (since file conversion does not support 3rd level of hierarchy)
    <TRNH>
    <RECH>
    </RECH>
    <RECL>
    </RECL>
    </TRNH>
    It does not recognize RCIC.
    Now i am trying to map this to IDOC and getting error as
    'MT_RCICRecords tag found instead of IDOC BEGIN ='.
    CAn anyone suggest me how to chaage this xml output after File content conversion to add RCIC tag in xml file?
    I am new to XI so please give me some sample code to.
    Thanks.
    Yashpal
    Its urgent!

    My problem is xml generated from content conversion is like below
    <MT_RCICrecords>
    <TRNH></TRNH>
    <RECH></RECH>
    <RECL></RECL>
    <TRLR></TRLR>
    </MT_RCICrecords>
    and i want it to be
    <MT_RCICrecords>
    <TRNH></TRNH>
    <RCIC>
    <RECH></RECH>
    <RECL></RECL>
    </RCIC>
    <TRLR></TRLR>
    </MT_RCICrecords>
    which is not happening
    My input message structure is
    MT_RCICrecords
    TRNH
    RCIC
    RECH
    RECL
    i hope it is clear now
    TRLR

  • Sender File Content Conversion. Pls suggest

    Hi All,
    I have to do the Sender File content conversion for the below file.
    First Line is for Sender. Second Line is for Receiver. Third ,Fourth and Fifth lines are Invoice Numbers which can be more also.
    The issue is coming that there is no Key Field defined for third ,fourth and Fifth line .
    GB283032086         LANGFORD LODGE ENGINEERING
    GB762702827         AIRBUS UK LIMITED                 
    D58785          20030407         71.82        
    D58786          20030407         49.10         
    D58787          20030407         49.10         
    Pls let me know how will I do Sender File content conversion (to make it in XML) form.
    Regards

    Hi Rachit,
                  In that case you can use temporary source structure to hold contents from the source flat file and using FCC you split the content by 'nl' and store it in one node (For rg:-<SDATA>) then using mapping you can map that to original source structure and then to target structure, here you need to use intermediate mapping (i.e two mappings) to archive the target structure.
    Temp source structure
    <SDATA>GB283032086 LANGFORD LODGE ENGINEERING </SDATA>
    <SDATA> GB762702827 AIRBUS UK LIMITED </SDATA>
    <SDATA>D58785 20030407 71.82 </SDATA>
    <SDATA>D58786 20030407 49.10  </SDATA>
    <SDATA>D58787 20030407 49.10  </SDATA>
    Map the above to the actual source structure and the to target, hope it helps you to overcome your problem
    [FCC for unequal entries|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414900)ID0137316650DB10272139644103542695End?blog=/pub/wlg/2740]
    [Key field problem|http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414900)ID0137316650DB10272139644103542695End?blog=/pub/wlg/3228]
    Regards,
    Prasanna
    Edited by: PrasannaKrishna Mynam on Dec 1, 2009 8:14 AM
    Edited by: PrasannaKrishna Mynam on Dec 1, 2009 8:17 AM

  • Problem with Sender File Content conversion

    Hi everybody,
    I have a flat file with the following structure:
    PR1xxxx
    CL1.1xxx
    ALxxx
    PTxxx
    PTxxx
    PTxxx
    CL1.2xxx
    ALxxx
    PTxxx
    PTxxx
    Cl1.3xxx
    PR2xxx
    CL2.1
    Alxxx
    PTxxx
    Ptxxx
    CL2.2xxx
    ALxxx
    PR3xxx
    I need to send an IDOC (ORDERS05) per CL and I also need that the PR goes together with the CL.
    Something like that:
    IDOC 1
    PR1xxx
    CL1.1xxx
    ALxxx
    PTxxx
    PTxxx
    PTxxx
    IDOC 2
    PR1xxx
    CL1.2xxx
    ALxxx
    PTxxx
    PTxxx
    IODC 3
    PR2xxx
    CL2.1xxx
    The problem is that I am not able to attach the PR with each CL because the PR is written once at the beginning.
    I have tested all the posibilities in the content conversion area but I don`t find the way to achiveve that.
    Maybe, Have I to do something in the mapping program?
    Nested substructures are possible in the File Content Conversion?
    Any idea?
    Thanks for everything

    We can handle this in mapping as follows
    Crate an Intermediate structure Identical to your input structure. Just you need to add an sub element (Let’s say "T" to your CL node.
    This sub element will be used to remember CL node belongs to which PR node.
    Map your Input structure to Intermediate structure.
    While mapping PR Node of input to PR Node of Intermediate structure use a user defined function as follows
    Integer ii;
    GlobalContainer g;
    g=container.getGlobalContainer();
    Object o= g.getParameter("_&HLID");
    if (o==null) ii=new Integer(0);
    else
    ii =(Integer)o;
    ii =new Integer(ii.intValue()+1);
    g.setParameter("_&HLID",ii);
    Use another user defined function to retrieve the value of this _&HLID and put it to T as follows:
    GlobalContainer g;
    g=container.getGlobalContainer();
    Object o= g.getParameter("_&HLID");return o.toString();
    For all other fields just do a 1:1 mapping.
    Then
    Map your intermediate structure to destination structure (IDOC)
    Here the only catch is:
    For populating the value of PR for each CL
    Pass both the element T and the element of PR from which you want to pick the value to a user-defined function (raise the context of both elements to the top node).
    In array a we have the value of T
    In array b we have the value of element of PR
    int j=0;
    for(int k=0;k<b.length;k++){
    for (int i=0;i<a.length;i++)
         if (a<i>.equals(new Integer(j+1).toString())){
              System.out.println(b[j]);
         j=j+1;
    Hope this takes care of your problem.
    If you don't get anything please get back to me.
    Abinash

  • Sender File Content Conversion

    I am using the file content conversion in sender file adapter with fieldFixedLengths parameter in recordset structure. This work fine when the columns in row is exactly with the length set in the parameter recordset. But in same cases, the row in the file has less columns, which occurs errors. If I use the parameter fixedLengthTooShortHandling usage by the receiver file adapter, will it work for the file sender?

    Hi Elton,
    The parameter fixedLengthTooShortHandling is not a part of the Sender File Adapter's content conversion paramteters, So i guess it will not work for the sender file adapter.
    I would suggest that you try it anyways, and if it does work, then it means that this field has been forgotten in the help documentation
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    Regards,
    Bhavesh

  • Error in Sender File content Conversion - how to ignore keyfieldName

    Dear Frndz,
    I'm new to SAP PI. I want to post a flat file to ECC.
    The Souce Structure is:
      Record(1-unbounded)
        |_Header(1.1)
              field1
              field2
              field3
        |_Detail(1.unbounded0
            field4
            field5
            field6
    Sample File:
    first header - xx,yy,zz
    Detail 1 -      1,b,c
    Detail 2  -     2,e,f
    second header - aa,bb,cc
    Detail 1 -     1,g,d
    I wrote the file content conversion as follows
       Recordset name - Record
       Recordset Structure - Header,1,Detail,*
    Header.fieldNames  field1,field2,field3
    Header.feldseparator  ,
    Header.endseparator  'nl'
    Detail.fieldNames  field4,field5,field6
    Detail.fieldseparator  ,
    Detail.endseparator  'nl'
    Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Mandatory parameter 'xml.keyfieldName': no value found
    It's asking me to give the input to keyfieldname. But I dont have such field in my record. Ther's no common field . no field is repeating like record type or doc_type as in other cases.
    So, Coud you please guide me to proceed with this.
    Thanks in advance.....

    Hi,
    Please, take a look to these Blogs related to FCC
    Troubleshooting the File Adapter (Last Updated on 02 July'10)
    Content Conversion (Pattern/Random content in input file)
    File Content Conversion for Unequal Number of Columns
    The specified item was not found.
    Content Conversion ( The Key Field Problem )
    NAB the TAB (File Adapter)
    Rgds
    RP-.

  • Define attributes in Sender File Content Conversion

    Hello everybody,
    I have the following issue:
    I have the next flat file:
    0001;159;2008-04-03;Customer_2008-04-03.xml
    0001;953;0;1;0
    0002;2907;0;1;0
    And I have to convert it to the next XML structure:
    <DocumentsBatch id="0001" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <BatchInfo>
      <SumDocumenten>159</SumDocumenten>
      <date>2008-04-03</date>
      <name>Customer_2008-04-03.xml></name>
      </BatchInfo>
      <Document id="0001">
      <Customer>953</Customer>
      <Portnumber>0</Portnumber>
      <denied>1</denied>
      <Port>0</Port>
      </Document>
      <Document id="0002">
      <Customer>2907</Customer>
      <Portnumber>0</Portnumber>
      <denied>1</denied>
      <Port>0</Port>
      </Document>
    My question is: Is it possible to define an attribute (e.g. id="0001" in <Document id="0001">) in File Content Conversion? If so, how can I do that?
    Your answers will be rewarded with points.
    Kind regards,
    Kamran

    Hi Kamran,
    its not possible to define attribute in File Content conversion.Instead u can create one more field "id" under the segments DocumentsBatch, Document etc.
    Thanks
    Ritu

  • 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

  • Sender File Content Conversion Issue

    Hi guys,
    I´m trying to convert a flat file into a xml structure using FCC. The flat file looks like:
    G220520102205201003062010
    D824000            006500015010000000000000GPDME                                   4521005   LP00
    D351023            006500015010000000000000GPDME                                   4521005   LP00
    D523000            006500015010000000000010GPDME                                   4521005   LP00
    G220520102205201003062010
    D824000            006500012510000002442490GPDME                                   4521005   LP00
    D351023            006500012510000000049530GPDME                                   4521005   LP00
    D523000            006500012510000000517790GPDME                                   4521005   LP00
    G220520102305201003062010
    D824000            006500012510000000025240GPDME                                   4521005   LP00
    I´ve created the following DT:
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:sap.com" targetNamespace="urn:sap.com">
       <xsd:complexType name="DT_PRODUCTS_OUT">
          <xsd:sequence>
             <xsd:element name="RECORDS" maxOccurs="unbounded">
                <xsd:complexType>
                   <xsd:sequence>
                      <xsd:element name="REG_TYPE" type="xsd:string"></xsd:element>
                      <xsd:element name="PSTNG_DATE" type="xsd:string"></xsd:element>
                      <xsd:element name="DOC_DATE" type="xsd:string"></xsd:element>
                      <xsd:element name="FECINT" type="xsd:string"></xsd:element>
                      <xsd:element name="DETAIL" maxOccurs="unbounded">
                         <xsd:complexType>
                            <xsd:sequence>
                               <xsd:element name="REG_TYPE" type="xsd:string"></xsd:element>
                               <xsd:element name="MATERIAL" type="xsd:string"></xsd:element>
                               <xsd:element name="PLANT" type="xsd:string"></xsd:element>
                               <xsd:element name="STGE_LOC" type="xsd:string"></xsd:element>
                               <xsd:element name="MOVE_TYPE" type="xsd:string"></xsd:element>
                               <xsd:element name="ENTRY_QNT" type="xsd:string"></xsd:element>
                               <xsd:element name="ENTRY_UOM" type="xsd:string"></xsd:element>
                               <xsd:element name="ITEM_TEXT" type="xsd:string"></xsd:element>
                               <xsd:element name="COSTCENTER" type="xsd:string"></xsd:element>
                               <xsd:element name="TR_PART_BA" type="xsd:string"></xsd:element>
                            </xsd:sequence>
                         </xsd:complexType>
                      </xsd:element>
                   </xsd:sequence>
                </xsd:complexType>
             </xsd:element>
          </xsd:sequence>
       </xsd:complexType>
    </xsd:schema>
    As you can see the record DETAIL is nested to the record RECORDS. The point is that with the standard module of the FCC I can´t achieve my requirements, I only could get an XML structure like this:
    <Recordset>
    *<RECORDS>*
      <REG_TYPE>G</REG_TYPE>
      <PSTNG_DATE>22052010</PSTNG_DATE>
      <DOC_DATE>22052010</DOC_DATE>
      <FECINT>03062010</FECINT>
    *</RECORDS>*
    *<DETAIL>*
      <REG_TYPE>D</REG_TYPE>
      <MATERIAL>824000</MATERIAL>
      <PLANT>0065</PLANT>
      <STGE_LOC>0001</STGE_LOC>
      <MOVE_TYPE>501</MOVE_TYPE>
      <ENTRY_QNT>0000000000000</ENTRY_QNT>
      <ENTRY_UOM>GPD</ENTRY_UOM>
      <ITEM_TEXT>ME</ITEM_TEXT>
      <COSTCENTER>4521005</COSTCENTER>
      <TR_PART_BA>LP00</TR_PART_BA>
    *</DETAIL>*
    *<DETAIL>*
      <REG_TYPE>D</REG_TYPE>
      <MATERIAL>351023</MATERIAL>
      <PLANT>0065</PLANT>
      <STGE_LOC>0001</STGE_LOC>
      <MOVE_TYPE>501</MOVE_TYPE>
      <ENTRY_QNT>0000000000000</ENTRY_QNT>
      <ENTRY_UOM>GPD</ENTRY_UOM>
      <ITEM_TEXT>ME</ITEM_TEXT>
      <COSTCENTER>4521005</COSTCENTER>
      <TR_PART_BA>LP00</TR_PART_BA>
    *</DETAIL>*
    *<DETAIL>*
      <REG_TYPE>D</REG_TYPE>
      <MATERIAL>523000</MATERIAL>
      <PLANT>0065</PLANT>
      <STGE_LOC>0001</STGE_LOC>
      <MOVE_TYPE>501</MOVE_TYPE>
      <ENTRY_QNT>0000000000010</ENTRY_QNT>
      <ENTRY_UOM>GPD</ENTRY_UOM>
      <ITEM_TEXT>ME</ITEM_TEXT>
      <COSTCENTER>4521005</COSTCENTER>
      <TR_PART_BA>LP00</TR_PART_BA>
    *</DETAIL>*
    </Recordset>
    But it should look like this, with the records DETAIL inside RECORDS:
    <Recordset>
    +*<RECORDS>*+
      <REG_TYPE>G</REG_TYPE>
      <PSTNG_DATE>22052010</PSTNG_DATE>
      <DOC_DATE>22052010</DOC_DATE>
      <FECINT>03062010</FECINT>
    *<DETAIL>*
      <REG_TYPE>D</REG_TYPE>
      <MATERIAL>824000</MATERIAL>
      <PLANT>0065</PLANT>
      <STGE_LOC>0001</STGE_LOC>
      <MOVE_TYPE>501</MOVE_TYPE>
      <ENTRY_QNT>0000000000000</ENTRY_QNT>
      <ENTRY_UOM>GPD</ENTRY_UOM>
      <ITEM_TEXT>ME</ITEM_TEXT>
      <COSTCENTER>4521005</COSTCENTER>
      <TR_PART_BA>LP00</TR_PART_BA>
    *</DETAIL>*
    *<DETAIL>*
      <REG_TYPE>D</REG_TYPE>
      <MATERIAL>351023</MATERIAL>
      <PLANT>0065</PLANT>
      <STGE_LOC>0001</STGE_LOC>
      <MOVE_TYPE>501</MOVE_TYPE>
      <ENTRY_QNT>0000000000000</ENTRY_QNT>
      <ENTRY_UOM>GPD</ENTRY_UOM>
      <ITEM_TEXT>ME</ITEM_TEXT>
      <COSTCENTER>4521005</COSTCENTER>
      <TR_PART_BA>LP00</TR_PART_BA>
    *</DETAIL>*
    *<DETAIL>*
      <REG_TYPE>D</REG_TYPE>
      <MATERIAL>523000</MATERIAL>
      <PLANT>0065</PLANT>
      <STGE_LOC>0001</STGE_LOC>
      <MOVE_TYPE>501</MOVE_TYPE>
      <ENTRY_QNT>0000000000010</ENTRY_QNT>
      <ENTRY_UOM>GPD</ENTRY_UOM>
      <ITEM_TEXT>ME</ITEM_TEXT>
      <COSTCENTER>4521005</COSTCENTER>
      <TR_PART_BA>LP00</TR_PART_BA>
    *</DETAIL>*
    +*<RECORDS>*+
    </Recordset>
    Any Idea how to achieve that with File Content Conversion?
    Thanks in Advance,
    Luis
    Edited by: Luis Zarzo on Jun 14, 2010 1:22 PM

    Sorry, I don´t know why my message format has been lost. Hopefully is a bit understandable. The point is that I want to achieve a structure like this:
    What I´ve read is that this is not possible to achieve with File Content Conversion, but maybe there is a way.
    Otherwise I would like to know if there is an easy way to make this using for example graphical or maybe java mapping.
    Thanks a lot,
    Luis

Maybe you are looking for

  • Is it possible to sort the document order in Windows 7 taskbar preview?

    I am using Reader X and open many PDF docs at once. When I hover the mouse over the taskbar icon for Adobe Reader the list of all open documents appears, but they do not appear sorted by the document name. Is this possible to configure - either in Wi

  • JTree move operation

    I have a piece of code which is doing a drag and drop on a JTRee.This code also needs to handle move and copy operations.THe move method does not work the way expected.When I do a drag operation the node gets dragged but is not removed from the paren

  • Regular Expression in 11g

    I am using the following SQL to implement IN condition when the values coming as ,KA,TN,KL, SELECT * FROM WHERE STATECD IN (SELECT UPPER(TRIM(SUBSTR(',KA,TN,KL,', INSTR(',KA,TN,KL,', ',', 1, ROWNUM) + 1, (INSTR(',KA,TN,KL,', ',', 1, ROWNUM + 1) - INS

  • HT201401 could not activate iphone

    YESTERDAY I TRIED TO DOWNLOAD ITUNES ON ONE IPHONE - IT WAS OK WITHOUT SIGN OUT I TRIED TO DOWNLOAD ITUNES ON ANOTHER IPHONE BUT COULD NOT AND NOW THE IPHONE SHOWS THE FOLLOWING COULD NOT ACTIVATE IPHONE YOUR IPHONE COULD NOT BE ACTIVATED BECAUSE THE

  • Configuration of Infotype 0007

    Hi, Can some one help me with the configuration steps of Infotype 0007, Planned working time. Regards, Kalyani