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

Similar Messages

  • 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

  • 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

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

  • 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

  • Error in reciever file content conversion

    Hi
    I have the following error in the file content conversion
    Could not process due to error: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure '' found in document', probably configuration error in file adapter (XML parser error)'
    my content conversion is :
    Recordset Structure : FI_Banks_Header_MT,Line
    FI_Banks_Header_MT.fieldSeparator = 'nl'
    FI_Banks_Header_MT.fieldSeparator = ;
    my xml is :
    <FI_Banks_Lines_MT>
    ****<Line>
    <FIELD1>12799</FIELD1>
    <FIELD2>721042</FIELD2>
    <FIELD3>0620</FIELD3>
    <FIELD4>20.06.06</FIELD4>
    <FIELD5>5575688</FIELD5>
    ****</LINE>
    </FI_Banks_Lines_MT>
    The file gets ok !!! but I still get this error in adapter monitor after the file is converted all the time
    any1 managed to solve it ? thx , Shai

    Hey sorry for the previous one...
    try out this...
    Recordset Structure : FI_Banks_Lines_MT
    FI_Banks_Lines_MT.endSeparator = 'nl'
    FI_Banks_Lines_MT.fieldSeparator = ;
    hope this helps !!!...
    Cheers.,
    Esha

  • 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

    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 whil doing File Content Conversion

    Hi all,
       I had configured a sender for File Content Conversion and I am getting the follwoing error.
    Sender Adapter v1014 for Party '', Service 'bs_xml_sender':
    Configured at 05:39:05 2007-04-27
    Initialization error: Conversion initialization failed with java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found:
    Format error in 'xml.recordset' argument: incomplete structure (name,number) pair.
    Any ideas why I am getting this error.

    Here is the detailed error message.
    "Messages:16:40:41 Start of test
      - Cannot produce target element /ns:mt_receiver/PO_NUM. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
    16:45:01 End of test
    16:45:10 Start of test
      - Creating Java mapping com/sap/xi/tf/_mm_Sender_Receiver_
      - Loaded class com.sap.xi.tf._mm_Sender_Receiver_
      - Call method execute of the application Java mapping com.sap.xi.tf._mm_Sender_Receiver_
      -  *** START APPLICATION TRACE ***
      - Document start
      - Start tag [ns:mt_receiver]
      - Add raw attribute [ xmlns:ns="http://xml2xml"]
      - Cannot produce target element /ns:mt_receiver/PO_NUM. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd
    16:45:12 End of test

  • 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

  • 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

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

  • Time Capsule or External HD?

    Hi. Currently using a Lacie 1TB external drive for my TimeMachine backup, abuot to buy an addition 2TB drive to "piggy back" my existing one. Just looking for advice regarding would i be better buying a 2TB Time Capsule instead of a Additional extern

  • Editing and Filling Forms in PDF's

    I looked around this discussions area and noticed one person saying that I can use Adobe Acrobat to edit PDF files. Will this also let me fill in forms? Here is my situation, I'm downloading several contracts in PDF format and it has blank spaces all

  • LCD TV for MBP Question - PAL/NTSC ?

    I want to buy an LCD TV (not plasma) to use with my MBP. If possible from the USA as the exchange rates are so good it would be a real bargain. My question is: are US LCD TV's compatible with European TV signals ? The US uses NTSC and we in UK use PA

  • ATi radeon 5770 3 monitors.

    I am running 2.8GHz Quad-Core Intel Xeon. OSX 10.6.8. It came with an ATi radeon 5770. I have been succesfully running 3 monitors, however I cannot have them with the proper resolution. I have 1 samsung syncmaster 2433(24") and 2 samsung 933(18.5").

  • How can I finish installing Digital Editions 1.7.2, and save my library and annotations?

    In order to migrate my library from my old PC, the first thing I did was to install Digital Editions version 1.7.2  on my new PC. I couldn't install version 3 right away because then I'd lose thousands of annotations. I have to figure out what additi