File content conversion 'lastFieldsOptional'

Hi All,
I am working on a File Sender content conversion--> flat file to XI.
it's fixed length field all the rows with same column.
090627 344535AFDFG+GBP65433 ASDSSD GFD dFSSGFD     6757532
090627 344535AFDFG-GBP65433 ASDSSD GFD dFSSGFD     6757532
090627 344535AFDFG-GBP65433 ASDSSD GFD dFSSGFD     6757532
090627 344535AFDFG-GBP65433 ASDSSD GFD dFSSGFD     6757532
090628 344536AFDFG+GBP45434 ASDSSD GFD dFSSGFD     6757532
090628 344536AFDFG-GBP45434 ASDSSD GFD dFSSGFD     6757532
**EOF**
I am sucessfully able to handle the file if i remove "**EOF*" from incoming file. But i get "lastfieldsOptional" error with "*EOF**"
There are parameters available to ignore Last field(last column) of a Row/Rocerdset
but how to ignore the last row of the file.
Plz suggest some parameter to ignore the last row/field of the file.
Regs,
Ansh

Hi Ansh,
          I have also faced the same problem. For that use the below parameters.
fieldFixedLengths -- 0,0
fixedLengthTooShortHandling -- Cut
Regards,
Leela

Similar Messages

  • Problems in File Content Conversion

    Hello,
         I am trying to convert a text file to an XML using File Content Conversion in XI 3.0.
       The incoming text file gets picked up but no message is sent and hence no message is received in the monitor.I get the following log-
    <b>Success</b> Channel FILE_SENDER_XML_1: Entire file content converted to XML format
    <b>Warning</b> Channel FILE_SENDER_XML_1: Empty document found. Proceed without sending message
    <b>Success</b> File "C:\xi_public\i033066\dme_in.txt" deleted after processing
    Can somebody help me on this
    Thanks
    Sandeep

    Hello,
           I am not sure of why the empty Payload is created.
    I have the following TXT file -
    <b>LINE 1</b> 01 22  Sandeep        ASKDJKLASD          HDFC Bank       12342          asdasd              123569   
    <b>LINE 2</b> 02 22  Sagar          23123               ICICI          4234           ASDASD         254636    12304 ASDAsdqwe
    <b>LIME 3</b> 03 22  1     12304
    Ignore 'Lines' above.They are not part of the file.
    I have given the following parameters -
    <b>Document Name -</b> SampleMessageType
    <b>Document Namespace -</b> http://sandeep/xi/bpm_example
    <b>Recordset Name -</b> Header,Item,Trailer
    <b>Recordset Namespace -</b> http://sandeep/xi/bpm_example
    <b>Record Structure -</b> Header,,Item,,Trailer,*
    <b>Recordset Sequence -</b> Ascending
    <b>Key Field Name -</b> Record Type
    <b>Key Field Type -</b> String(Case Sensitive)
    <b>Header.fieldFixedLengths</b>     3,4,15,20,15,15,20,10
    <b>Header.fieldNames</b>     RecordType,RecordLength,CompanyName,CompanyAddress,BankName,BankCode,BankAddress,AccountNumber
    <b>Header.processFieldNames</b>     fromConfiguration
    <b>Header.keyFieldValue</b>     01
    <b>Header.lastFieldsOptional</b>     YES
    <b>Item.fieldFixedLengths</b>     3,4,15,20,15,15,15,10,6,10
    <b>Item.fieldNames</b>     RecordType,RecordLength,BeneficiaryName,BeneficiaryAddress,BankName,BankCode,BankAddress,AccountNumber,Amount,NoteToPayee
    <b>Item.processFieldNames</b>     fromConfiguration
    <b>Item.keyFieldValue</b>     02
    <b>Item.lastFieldsOptional</b>     YES
    <b>Trailer.fieldFixedLengths</b>     3,4,6,6
    <b>Trailer.fieldNames</b>     RecordType,RecordLength,TotalRecords,TotalAmount
    <b>Trailer.processFieldNames</b>     fromConfiguration
    <b>Trailer.keyFieldValue</b>     03
    <b>Trailer.lastFieldsOptional</b>     YES
    If I don't give these parameters then channel will give me errors.I don't know what other parameter to give to create a file.
    I had tried the same thing with the following and it worked
    <b>Document Name -</b> SampleMessageType
    <b>Document Namespace -</b> http://sandeep/xi/bpm_example
    <b>Record Structure -</b> Substr,*
    <b>Recordset Sequence -</b> Ascending
    <b>Key Field Name -</b> Record Type
    <b>Key Field Type -</b> String(Case Sensitive)
    <b>Substr.fieldFixedLengths</b>     3,4,15,20,15,15,20,10,3,4,15,20,15,15,15,10,6,10,3,4,6,6
    <b>Substr.fieldNames</b>     RecordType,RecordLength,CompanyName,CompanyAddress,BankName,BankCode,BankAddress,AccountNumber,RecordType,RecordLength,BeneficiaryName,BeneficiaryAddress,BankName,BankCode,BankAddress,AccountNumber,Amount,NoteToPayee,RecordType,RecordLength,TotalRecords,TotalAmount
    <b>Substr.processFieldNames</b>     fromConfiguration
    <b>Substr.keyFieldValue</b>     01
    <b>Substr.lastFieldsOptional</b>     YES
    But the problem here is my mapping has the Header,Item and Trailer as the structure names but he XML created here will be like
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns:SampleMessageType xmlns:ns="http://sandeep/xi/bpm_example">
    - <Recordset>
    - <Substr>
      <RecordType>21</RecordType>
      <RecordLength>22</RecordLength>
      <CompanyName>Sandeep</CompanyName>
      <CompanyAddress>ASKDJKLASD</CompanyAddress>
      <BankName>HDFC Bank</BankName>
      <BankCode>12342</BankCode>
      <BankAddress>asdasd</BankAddress>
      <AccountNumber>123569</AccountNumber>
      </Substr>
    - <Substr>
      <RecordType>02</RecordType>
      <RecordLength>22</RecordLength>
      <CompanyName>Sagar</CompanyName>
      <CompanyAddress>23123</CompanyAddress>
      <BankName>ICICI</BankName>
      <BankCode>4234</BankCode>
      <BankAddress>ASDASD 25463</BankAddress>
      <AccountNumber>6 12304</AccountNumber>
      <RecordType>AS</RecordType>
      <RecordLength>DAsd</RecordLength>
      </Substr>
    - <Substr>
      <RecordType>03</RecordType>
      <RecordLength>22 1</RecordLength>
      </Substr>
      </Recordset>
      </ns:SampleMessageType>
    In this case my mapping fails
    Thanks,
    Sandeep

  • File content conversion in File-to-RFC without  BPM

    Hi,
    I am using FCC for file to RFc scenario.
    My input record is in the following format:
    Header record
    data rec1
    data rec2
    Trailer record..
    The parameters are used in File content conversion:
    Recordset Name : Header,item
    Recordset Structure: Header,1,item,*
    key field name : data1
    and in additional parameters:
    Header.fieldNames            HI,GenDate,Ftype,Fname,Fdate
    Header.keyFieldValue       Fname
    Header.fieldFixedLengths 1,8,1,50,8
    Header.endSeparator        nl
    item.endSeparator             nl
    item.fieldNames                  DATA1,DATA2,DATA3,DATA4
    item.keyFieldValue             item
    item.fieldFixedLengths       231,240,241,120
    item.lastFieldsOptional       YES
    Can anyone check whether any parameters are left, b'cos the file is not being read with this settings. and in the C.C its just showing file processing successfully but not able to see the actual file.

    Hi,
    I assume you have header, item and trailer structure in source file.
    Source Data Type will be as follows.
    RecordSet
    --> Header
          --> KeyField(Value OH)
          --> H1
          --> H2
    --> Item
          --> KeyField (Value OL)
          --> I1
          --> I2
    -->Trailer
          --> KeyField (Value OT)
          --> T1
          --> T2
    Where Item Strucutre can come multiple times.
    Please use following settings.
    Recordset name: RecordSet
    RecordSet Structure: Header,1,Item,*,Trailer,1
    Key Field Name: KeyField
    Header.fieldNames: KeyField,H1,H2
    Header.fieldFixedLengths: 2,3,4
    Header.processFieldNames: fromConfiguration
    Header.keyFieldValue: OH
    Header.LastFieldsOptional: YES
    Item.fieldNames: KeyField,I1,I2
    Item.fieldFixedLengths: 2,5,6
    Item.processFieldNames: fromConfiguration
    Item.keyFieldValue: OL
    Item.LastFieldsOptional: YES
    Trailer.fieldNames: KeyField,T1,T2
    Trailer.fieldFixedLengths: 2,8,9
    Trailer.processFieldNames: fromConfiguration
    Trailer.keyFieldValue: OT
    Trailer.LastFieldsOptional: YES
    Regards,
    Gouri

  • File Content Conversion. Default Value of beginSeparator

    HI All
    I have a scenario where i am using file Content Conversion to create a text file.
    my structure is as following
    MessageTypeName
    FirstElement           1..1         
    SecondElement       1..1
    Data               1..Unbounded
    In the text file i just need the Content of  Data to appear  in each row.
    So i gave the following CCP
    SecondElement.fieldSeparator  = 'nl'
    SecondElement.endSeparator = 'nl'
    But i am getting the first line as a blank line .
    I do not need the first line as a blank line. Can someone suggest how to avoid the default blank first line.
    regards
    Nilesh.

    Hi,
    Just check the below parameter's defined in the below example.
    Below is the example when you have HEADER & ITEM structure.
    FCC is case sensitive, give all the names in FCC same as your Data Type.
    In <b>Recordset Structure</b> = Header,1,Item,*
    Header.fieldFixedLengths = (field lengths) e.g. 1, 4, 7
    Header.fixedLengthTooShortHandling=ignore
    Header.endSeperator='nl'
    Item.fieldFixedLengths = give the item field length as shown above
    Item.endSeparator = 'nl'
    Item.lastFieldsOptional = YES
    Regards,
    Sarvesh
    ****Reward points, if found helpfull.

  • Sender Adapter File Content Conversion

    Hi everyone,
    Can someone help me out here?
    For some reasons, out of the fields declared, only 20 gets filled!
    Scenario, I've configured the file sender adapter with file content conversion.  It's picking up an fixed length ASCII file.
    Here are the Content Converion Parameters:
    Document Name:  MT_Site
    Recordset Name: Rootnode
    Recordset Structure: Site,*
    Recordset Sequence: Ascending
    Site.fieldNames= Site_Number,Participant_Number,OPIS_Terminal,ntework_list,tax_code1,tax_code2,tax_code3,tax_code4,CFN_Product,CFN_Product_1,CFN_Product_2,CFN_Product_3,CFN_Product_4,CFN_Product_5,CFN_Product_6,CFN_Product_7,CFN_Product_8,CFN_Product_9,Name,Address,City,Province_state,Region,Filler
    Site.fieldFixedLengths= 6,4,4,6,2,2,2,2,2,2,2,2,2,2,2,2,2,2,30,26,26,2,1,1
    Site.processFieldName= fromConfiguration
    Site.lastFieldsOptional= YES
    Site.endSeparator= 'nl'
    So only the first 20 fields gets filled!
    Thanks for your help on this!

    check if the number of characters in the file matches the total in the content conversion for one record line.
    if ur message type has three fields a1,b1,c1 of length 10,10,5 respectivvely and the same is maintained in CC, if u have the file data as 123456789abcdef the data for <b>a1</b> will be 123456789a and for <b>B1</b> it will be bcdef and no data for C.....hence this check
    Message was edited by:
            Prabhu  S

  • File Content Conversion CSV File

    Hello All,
      I have a CSV file in the below format.
    a,b,c
    And my content conversion works.
    <1>a</1>
    <2>b</2>
    <3>c</3>
    Sometimes I get the records in the file as
    a,b,
    My conversion is failing, I mean it give me file as
    <1>a</1>
    <2>b</2>
    The last element <3></3> is not getting created.
    I tried to use lastFieldsOptional its not working.
    How can I achieve this.
    Regards,

    Okay Satish I will give a last try to explain you my issue..
    my CSV file is like this a,b,c,d
    my conversion works fine so the xml is after conversion
    <1>a</1>
    <2>b</2>
    <3>c</3>
    <4>d</4>
    Now few rows in the file may come as a,b,c, there is no d value it is blank.
    so I expect the conversion to be now
    <1>a</1>
    <2>b</2>
    <3>c</3>
    <4></4>
    like this, but what I am getting now is after conversion...
    <1>a</1>
    <2>b</2>
    <3>c</3>
    tag <4></4>  is not getting created and my Outbound expects the XML to be in that format, so for this I tried to use lastfieldsoptional so that empty <4></4> tag is created but no luck...
    This is what I want to do..
    In the process even though <4></4> is not created File Content Conversion is successful and so Adapter Monitoring is showing success and my mapping fails.
    Regards,

  • 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

  • Upload flat file (Content Conversion Parameters)

    Hello,
    I am still trying to upload a flat text file to XI. Its a non separator file.
    Here the error message from the XI adaper engine:
    Sender Adapter v1508 for Party '', Service 'IXI_FileSystem_CSV':
    Configured at 15:36:12 2005-08-03
    Initialization error: Conversion initialization failed with java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: <b>
    Mandatory parameter 'CONTROL.keyFieldValue': no value found</b>
    Here all my settings:
    Message protocol: File Content Conversion
    Document name: CMA_FILEINPUT1
    Document namespace: http://www.xyz/ogsd
    Recordset name: RECORD
    Recordset structure: CONTROL,1,SEGMENT,*
    <b>Key Field Name: SEGMENT.DUMMYKEY</b>
    Key Field Type: String (cs) -> default
    Fields:
    CONTROL.fieldNames:TABNAM,MANDT,DOCNUM,DOCREL,....
    CONTROL.fieldFixedLengths:10,3,16,4,2,1,1,...
    SEGMENT.fieldNames:DUMMYKEY,DUMMY,LOCATIONID,...
    SEGMENT.fieldFixedLengths:12,51,10,18,4,10,
    SEGMENT.keyFieldValue:E2BPBULOCM03 (string that occurs in the first field DUMMYKEY of SEGMENT)
    The message type looks like this:
    CMA_MSGTYP1                1:1
      RECORD                   1:1
        CONTROL                1:1
          TABNAM
          MANDT...
        SEGMENT                0:unbounded
          DUMMYKEY
          DUMMY
          LOCATIONID...
    Why do i get that error message? How to fill Key field name correctly? In my opinion i dont need key fields for CONTROL because of the occurence of one.
    Any idea?

    Thanks to all. So "Key Field Name" is just symbolic?
    Here are my new settings:
    Message protocol: File Content Conversion
    Document name: CMA_FILEINPUT1
    Document namespace: http://www.xyz.de/ogsd
    Recordset name: RECORD
    Recordset structure: CONTROL,1,SEGMENT,*
    <b>Key Field Name: KF</b>
    Key Field Type: String (cs) -> default
    Fields:
    CONTROL.fieldNames:TABNAM,MANDT,DOCNUM,DOCREL,....
    CONTROL.fieldFixedLengths:10,3,16,4,2,1,1,...
    SEGMENT.fieldNames:DUMMYKEY,DUMMY,LOCATIONID,...
    SEGMENT.fieldFixedLengths:12,51,10,18,4,10,
    <b>SEGMENT.keyFieldValue:E2BPBULOCM03 (from DUMMYKEY)
    CONTROL.keyFieldValue: HRETZU (from TABNAM) </b>
    Both key fields are the first entries in the substructures.
    Now this error is coming up:
    Sender Adapter v1508 for Party '', Service 'IXI_FileSystem_CSV':
    Configured at 16:41:24 2005-08-03
    Last message processing started 16:41:24 2005-08-03, Error: Conversion of complete file content to XML format failed around position 0 with java.lang.Exception: ERROR converting document line no. 2 according to structure 'SEGMENT':java.lang.Exception: Consistency error: field(s) missing - specify 'lastFieldsOptional' parameter to allow this
    last retry interval started 16:41:24 2005-08-03
    length 30,000 secs
    What is that for a new parameter(lastFieldsOptional)?

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

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

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

  • File Content Conversion Problem

    Hi
    I have a flat file having 10 fileds with fixed length of field 7 characters
    abc  bcd  dce  cef  ecf  fgi
    123  234  343  233 434 343
    322  222  222  222 222 222
    +++++++++++++++++++++++++++++++
    XML CODE FOLLOWS
    +++++++++++++++++++++++++++++++
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_send xmlns:ns0="http://OTO-Continue.com">
      -<SEND>
       <abc>343</abc>
       <bcd>343</bcd>
       <dce>434</dce>
       <cef>3434</cef>
       <ecf>343</ecf>
       <fgi>434</fgi>
      </SEND>
      </ns0:MT_send
    As per the client req I'm going with FCC. The file is picking fine with the FILE. But not picking with the FCC.
    The parameters which I gave are as follows.
    SOURCE I feel it is fine since file is picking fine and keeping the same for FCC also.
    PROCESSING
    QOS -- Exactly Once
    Poll Interval -- 10
    Processing Mode -- Delete
    Empty-File Handling -- Process empty files
    CONTENT CONVERSION Parameters
    Document Name -- (am giving sender data type name) DT_send
    Document NSpace -- http://OTO-Continue.com
    Recordset Name -- SEND
    Recordset Structure -- SEND,*
    Recordset Sequence -- Ascending
    Recordset per Message -- 0
    And in the table the parameters am settings are
    SEND.fieldNames                 abc,bcd,cde,def,efg,ghk
    SEND.fieldFixedLengths      7,7,7,7,7,7       (because each and every field has 7 characters)
    SEND.keepIncompleteFields       No
    SEND.fieldFixedLengthType      char
    SEND.fieldContentFormatting     trim
    SEND.fieldEndSeparator            'nl'
    This was the configuration. But this is not working I monitored the Communication Channel and file is not reading and not getting deleting.
    What actually went wrong in above configuration. Why it is not working.
    Thanks.

    Hi Swarna,
    CONTENT CONVERSION Parameters
    Document Name -- ?
    DocumentNSpace -- ?
    Recordset Name -- ?
    Recordset Structure -- ?
    Recordset Sequence -- Ascending
    Recordset per Message -- ?
    Document Name - <Message Type> eg:- (MT_ABC)
    DocumentNSpace - Name space of your MT
    Recordset Name - The root node( Which has one occurence)
    Recordset Structure - The parent node of the fields(can have multiple occurences)
    Recordset Sequence -- Ascending
    Recordset per Message -- 1/* (No.of records per each record set)
    In your structure
    +++++++++++++++++++++++++++++++
    XML CODE FOLLOWS
    +++++++++++++++++++++++++++++++
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_send xmlns:ns0="http://OTO-Continue.com">
    -<SEND>
    <abc>343</abc>
    <bcd>343</bcd>
    <dce>434</dce>
    <cef>3434</cef>
    <ecf>343</ecf>
    <fgi>434</fgi>
    </SEND>
    </ns0:MT_send
    There is no root node,  so in your FCC you need to mention your RecordsetName and you can ignoreRecordSetName in result structure. Check the following blog simulates your requirement.
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    Regards,
    Prasanna

  • Problem in file content conversion from XML to CSV

    Hi Experts,
    I am finding problem in file content conversion. I need to convert the following XML file into CSV file:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_CROSS_REF xmlns:ns0="urn:dabur:idoc2file:pos">
          <Update_type>2</Update_type>
          <PLU>00000000</PLU>
          <Cross_ref_PLU>7777777</Cross_ref_PLU>
          <Capture_PLU />
          <Package_size />
          <Package_desc />
      </ns0:MT_CROSS_REF>
    The output file data has to be like:
    2,00000000,7777777,,,,
    The problem I am facing is while specifying the content conversion parameters in communication channel i dont know what recordset structure i should mention as all the records are directly under root. If I mention recordset structure as "ns0:MT_CROSS_REF" and parameters as
    ns0:MT_CROSS_REF.fieldSeparator   ,
    ns0:MT_CROSS_REF.endSeparator    'nl'
    i get error in communication channel monitoring and no file is posted.
    Please help me as to what correct parameter i should mention in my case.
    Thanks,
    Regards,
    Yash

    Hi Chirag,
    I cannot change the xml file as it comes after mapping idoc to a message type. How can I add ROOT in the xml? My message type is like MT_CROSS_REF and it has those 6 fields as in the XML (Update_type, PLU etc.). I do the mapping of these fields from a IDOC and get the XML.
    I hope you got my point.
    Thanks,
    Yash

  • Complex file content conversion in case of CSV file

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

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

  • Problem with File Content Conversion

    Hi All
    I am facing a problem with file content conversion.
    This is my sample file structure:
    Header_Record (Occurance - 1)
    Field1 in Header
    Field2 in Header
    Item(Occ-1 to n)
    Field3 in Item
    Field4 in Item
    <<ItemType>> (Structure in Item) (Occ - 0 to n)
    <<Field5>> in ItemType
    <<Field6>> in ItemType
    <<ItemTypeCategory>> (Structure in ItemType)(Occ - 0 to n)
    <<<<Field7>>>> in ItemTypeCategory
    <<<<Field8>>>> in ItemTypeCategory
    Footer_Record (Occurance-1)
    Field9
    Field10
    There is a key field 'Type' in all the above records with unique value in each record.
    Now, I defined Field content conversion as follows:
    Recordset Structure: Header_Record,1,Item, * , ItemType, * ,ItemTypeCategory, * ,Footer_Record,1
    Recordset Sequence: Ascending
    KeyField Name: Type
    Following are parameters defiled:
    Header_Record.Keyfieldvalue: 00
    Header_Record.fieldseperator: ,
    Header_Record.fieldnames: Field1,Field2
    Header_Record.endseperator: 'nl'
    Item.keyfieldvalue: 05
    item.fieldseperator: ,
    item.fieldfieldnames: field3,field4
    item.endseperator: 'nl'
    ItemType.keyfieldvalue: 10
    itemType.fieldseperator: ,
    itemType.fieldfieldnames: field5,field6
    itemType.endseperator: 'nl'
    ItemTypecategory.keyfieldvalue: 15
    itemTypecategory.fieldseperator: ,
    itemTypecategory.fieldfieldnames: field7,field8
    itemTypecategory.endseperator: 'nl'
    Footer.keyfieldvalue: 20
    Footer.fieldseperator: ,
    Footer.fieldfieldnames: field5,field6
    Footer.endseperator: 'nl'
    Now, i pass the following file:
    00,111
    05,222
    10,333
    15,444
    20,555
    What i expect out of my FCC is this (Sample output to show the hierarchy of field values):
    00,111
    05,222
    <<10,333>>
    <<<<15,444>>>>
    20,555
    But, I am getting this output (Hierarchy is missing. All the structures are in the same order without hierarchy):
    00,111
    05,222
    10,333
    15,444
    20,555
    Field values are being identified according to field content conversion, but, the hierarchy of the fields is missing.
    Can you please tell me how should i change my FCC config?
    Sorry for this long question.
    Many Thanks
    Chandra
    Edited by: Chandra Sekhar H on Jan 30, 2009 7:10 PM
    Edited by: Chandra Sekhar H on Jan 30, 2009 7:16 PM
    Edited by: Chandra Sekhar H on Jan 30, 2009 7:17 PM

    You will always get a flat structure from FCC. If you want hierarchichal strucuture, you have to create a target and map. You will get only like -
    Root
    --Recordset
    Group1
    Fields
    Grop2
    Fields
    Group3
    Fields
    VJ

  • Problem with file content conversion in receiver file adapter

    Hi All
    I have a problem with file content conversion in receiver file adapter.
    This is my recordset structure: Header_Record,1,Claim_Record,*,Check_Rec,1
    These are the content conversion parameters:
    Header_Record.fieldSeparator = ,
    Header_Record.endSeparator = 'nl'
    Claim_Record.fieldSeparator = ,
    Claim_Record.endSeparator = 'nl'
    Check_Rec.fieldSeparator = ,
    Check_Rec.endSeparator = 'nl'
    In SXMB_MONI, i can see that the data is correctly extracted from proxy, and correctly mapped to receiver message, and i see a checkered flag (success).
    But, Adapter status is RED with the following error message:
    Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter '1.fieldFixedLengths' or '1.fieldSeparator' is missing
    In communication channel monitoring, i get the following error message:
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Channel has not been correctly initialized and cannot process messages
    What is going wrong here? Can anyone please tell me?
    Thanks
    Chandra

    Posted in Incorrect forum.
    Posted again in Process Integration forum

  • Error in Receiver File adapter using File content Conversion

    Hi,
    I am getting the following error in the receiver file adapter.
    Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'statement.fieldFixedLengths' or 'statement.fieldSeparator' is missing
    I am using the below parameters for FCC:
    Recordset Structure - statement
    statement.endSeparator - 'nl'
    statement.fieldSeparator - '0X09'
    statement.fieldNames -xblnr,wrbtr,newbs,kostl,newko,prctr,xref1,rke_wwfud,rke_wwst3,blart,bukrs,bldate,budat,gjahr,monat,ctype,waers,bktxt,posnr,wbs_element,mwxkz,businessplace,businessplace,c_waers,c_wrbtr,g_ctype,g_waers,g_wrbtr,h_ctype,h_waers,h_wrbtr,trade_id,lob,sgtxt,zuonr,reason_rev,ldgrp,tcode,lifnr
    ignoreRecordsetName - true
    Please let me know where i am going wrong.
    Thanks,
    Aparna

    Hi Aparna,
    I feel the problem in your content conversion parameters is with
    statement.fieldNames and ignoreRecordsetName
    When you are confirguring receiver file adapter for file content conversion the above one is not required. Please refer below link for details on configuring content conversion in file adapter
    [http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm]
    Hope this helps !!
    Regards,
    Amit

Maybe you are looking for

  • How can I modify data from a Transparent Table without ABAP code.

    Hi,All How can I modify data from a Transparent Table (like TCURR),  and important thing is I want do all that with no ABAP code here. It is like that we always do that in a Oracle database use TOAD or PLSQL third party tools, with no script code her

  • Multiple Public IP's on ASA 5520

    Hi, I have ASA 5520 with Ver 8.2. Outside interface is directly connected to ISP's router(TelePacific) and is assigned one of public IP:198.24.210.226. There are two servers inside the network with the private IP's:192.168.1.20 for DB Server, and 192

  • Setting Colors on GeometryArray

    I have created a scene using VRML97 that creates a GeometryArray. I would like to be able to change the colors of the vertices using setColor but Java3D is reporting the error that GeometryArray has no color. Do I have to include color values in the

  • IPhoto unexpectedly quits when importing from camera

    iPhoto is working fine but when I try to import photos from my camera, iPhoto quits and a box appears asking if I want to close or retry. I've retried, put new batteries in the camera, tried reading the card through my HP PSC 2355, and did a restart

  • BSEG-Menge Value

    Dear Gurus, The quantity field after a Accounting document is generated is carrying the value twice for two different Pricing condition types. (Say the sale quantity is 20, it shows 20 pcs against one and 20 pcs against other. ) How is the quantity f