Sender File Adapter - File Content Conversion

Hello,
i do have a problem with the file content conversion at the sender file adapter.
I have configured the file content conversion with key field defined
keyfield: key
recordsetstructure is set as head,1,item,*
head.fieldSeparator  | 
head.beginSeparator  |
head.endSeparator  |
head.keyFieldValue  H
head.fieldNames  key,....
item.fieldSeparator  | 
item.beginSeparator  |
item.endSeparator  |
item.keyFieldValue I
item.fieldNames  key,....
When i run it like this it will not read since it has a problem to identify the key fields.
When ever i change the whole logic to be not based on fieldseparator but on fixed length, everything is working perfectly fine.
but this unfortuantly doesn't help as i have no fixed structure for the rest of the fields.
also when i change the recordsetstructure to head,1,item,1 my file is also processed correctly, of corse only for the first line, it at least tells me that the file structure is correctly defined.
Can anyone help why the identification for the keyfields doesn't work with field names and separator but in the same set up with fixed lengths ?
thanks a lot

Hello All,
thanks for the helpful answers.
So i tried Jayan tip and removed the begin Separter.
Unfortuantly my file is really looking like this |H|...|...| for the header record
and for the item record |I|...|...| ( this was an" I" like in Item ...
In my opinion this means i really do have a begin seperator which is the same like the field separator.
When i removed it from both the file and the config it started to work.
So i wrote an java function which will trow away the first digit in this case and integrated it in my szenario.
So that when this file is read there is no | as a begin flag anymore.
And the whole thing starts to work, this sounds more like a bug then a feature but anyway i am happy.
so thanks a lot
Tina

Similar Messages

  • 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

  • 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

  • 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

  • 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

  • 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

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

  • 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

  • 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

  • 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

  • Hi Question about Sender File Content Conversion

    Hi All,
    I have a flat file i need convert that flat file to the below XML format using File content Conversion, can anybody help me on this with example File content Convertion parameters
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_FileSend xmlns:ns0="http://test">
       <Recordset>
          <Contact>
             <Name>ABC</Name>
             <Number>123</Number>
             <Address>
                <HouseNumber>246789</HouseNumber>
                <StreetNumber>100</StreetNumber>
                <Phone>
                   <Mobile>90000000</Mobile>
                   <LandLine>12345678</LandLine>
                </Phone>
             </Address>
             <Email>
                <Office></Office>
                <Personal></Personal>
             </Email>
          </Contact>
       </Recordset>
    </ns0:MT_FileSend>

    Hi Sudheer reddy,
            Good question.
    File content conversion parameters are:
    1) Doccument Name: Doccument name is nothing but message type name for file side: MT_FileSend
    2) Doccument Namespace: mention the name space for the message type.
    3) Doccument Offset: for which row and which coloumn doccument has to be write.
    4) recordset name: mention the record set name: Recordset
    5) Recordset Namespace: if the namespace is different for message type name space mention name space or otherwise it is blank.
    6) Recordset Structure: Mention the structure name
    7) Recordset Sequence: mention the sequence of the recordset Ascending or Decending
    8) Recordset permessage: Would define no of record sets per message.
    9) Key-field name: to query to the doccument
    10) Key field type: string(Case-senstive)
    fieldValues
    fieldSeparator
    endSeparator
    Note: pls check in SDN about file content conversions it so many blogs are available, u can easily understand.
    Regards,
    Sateesh

  • Error sender file content conversion

    HI all,
    when an error occurs during the conversion of the file content in sender adapter the others files put in dicrectory is not processed.
    I know that exists one parameter in Sender File Adapter that is possible to specify the directory to archive the file with error, but in what SP it is possible?
    I have the XI SP15 and this feature is not present.
    How I do to instruct the XI to process the nexts files?
    thanks.

    From the Support Package Stack 10 of XI 70
    http://help.sap.com/saphelp_nw2004s/helpdata/en/44/f565854b7341e6e10000000a1553f6/frameset.htm
    From the Support Package Stack 19 of XI 30
    http://help.sap.com/saphelp_nw04/helpdata/en/44/f565854b7341e6e10000000a1553f6/frameset.htm
    Good reason to upgrade.
    Hope this help,
    Regards
    Sandro

  • Consistency check error in sender file content conversion

    Dear Experts,
    I am trying one simple File to File scenario in which i have only fields 1>salesorder_number 2>Description
    I created a txt file with line items "100,crudeoil" with file name as salesorder.txt
    In the sender file adapter i have configured the file convertion paramenters as follows:
    Document name : mt_salesorder_sender  
    Document namespace : http://se.com.sa/sec-sa-qax          "Namespace of message type
    Recordset Structure : document,*
    document.endSeparator : 'nl'
    document.fieldSeparator: ,
    document.fieldNames : salesorder_number,Description
    So after this if i run the scenario In file adapter i am getting the error like "Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'document.fieldFixedLengths' or 'document.fieldSeparator' is missing Consistency check: no. of arguments in 'document.fieldFixedLength' does not match 'document.fieldNames' (0 <> 2) "
    Please let me know where i am going wrong.
    Regards,
    Santhosh

    Hi,
    please maintain the order as
    Recordset Structure : document,*
    document.fieldNames : salesorder_number,Description
    document.fieldSeparator: ,
    document.endSeparator : 'nl'
    Rgds
    joel

Maybe you are looking for

  • How do i get all of my music back to my phone from icloud?

    Recently had to restore my phone for unknown reasons but now that i have it going again all of my music has a cloud with an arrow pointing down on it..which i know means it has to be downloaded from icloud. Is there any way i can do them all at once

  • How do I get rid of clear history pop-up everytime I close a tab or page?

    Recently, I believe after updating to Firefox 33.1, I began to get a pop-up window for handling cookies,cache, browsing history,downloads etc. every time I close a page or tab. This is super annoying as I thought that I set-up those functions to be d

  • IPhoto library grayed out, or disappears

    Because my old iMac has such a tiny hard drive, I have to keep my iPhoto library on an external hard drive. This seems to create troubles like: 1) Sometimes when I start up iPhoto, the iPhoto library is missing. 2) Other times, the library is there,

  • List of synonyms for indexing

    Is there such a thing anywhere as a list of common synonyms for use when creating indexes for software help? For example, I have just added 'Pods' to my index and am thinking of other terms that users might search on such as 'Floating windows'.

  • Is anyone having issues with printing to network printers with 10.8.4?

    I have upgraded our schools to Mountain Lion. Ever since the beginning of the year we have had issues with network printers. They are all HP printers, when they go to sleep a user has to turn off the printer and turn it back on then resend the print