Content conversion in sender file adapter problem

Hello,
I receive a flat file with the following structure:
HEADER;...fields;
ITEM;...fields;
ITEM;...fields...;
HEADER;...fields;
ITEM;...fields...;
...etc.
and I am converting it to xml with the same structure. The Problem by the conversion is that the result looks something like this:
HEADER;...fields;
ITEM;...fields;
ITEM;...fields;
ITEM;...fields;
HEADER;...fields
HEADER;...fields.
So, all the ITEM recordsets are ordered to one HEADER structure and the other HEADER structures have no ITEMs.
Do you have a suggestion how I can get this right?
Thanks!!
Best Regards,
Mircea

Hi,
Can you provide with the details of FCC parameters you have used ??
The problem might be there in the occurance..
Regards,
Chandra

Similar Messages

  • File Content Conversion in Sender File Adapter

    Hi,
    I am implementing a scenario, where I need to do Content conversion in My file Adapter.My input file is as follows
    BGN00S-A200711281003ET4
    REF38381012
    DTP007D820071128
    N1P5P5MicrosoftFI58-0612397
    INSY18030XNAN
    REFZZZZ666666666
    DTP336D819970331
    NM1ILIL1AdamsMarkE34666666666
    PERIPIPHP770555-5555
    N31470 Georgia Club Drive
    N4StathamGA30666
    DMGD819571022MM7
    HD030HLTAE1D
    My data type is as below.
    <header>
         <BGN>
              <A></A>
              <B></B>
              <C></C>
              <D></D>
         </BGN>
         <REF>
              <A1></A1>
              <B1></B1>
              <C1></C1>
              <D1></D1>
         </REF>
         <DTP>
              <A2></A2>
              <B2></B2>
              <C2></C2>
              <D2></D2>
         </DTP>
    </header>
    <Content>
         <N1>
              <A></A>
              <B></B>
              <C></C>
              <D></D>
         </N1>
         <REFAR>
              <A1></A1>
              <B1></B1>
              <C1></C1>
              <D1></D1>
         </REFAR>
         <DMP>
              <A2></A2>
              <B2></B2>
              <C2></C2>
              <D2></D2>
         </DMP>
    </Content>
    My issue is, How do I set my parameter in Sender Comm channel for content conversion especially at record structure.
    I have provided the value as Header,1,Content,*
    But its not working.
    If I do provide like
    BGN_REC,,REF_REC,,DTP_REC,,N1_REC,,INS_REC,,NM1_REC,,PER_REC,,N3_REC,,N4_REC,,DMG_REC,,HD_REC,* then ,I am not getting above XML format. Please suggest or How can I modify my Data type which competes to configure in Channel
    Thanks
    Manmadha

    Hi All,
    I am sorry for the Jumbled Content. I dont know what happened.
    I should get the XML output as below.
    header>
         <BGN>
              <A></A>
              <B></B>
              <C></C>
              <D></D>
         </BGN>
         <REF>
              <A1></A1>
              <B1></B1>
              <C1></C1>
              <D1></D1>
         </REF>
         <DTP>
              <A2></A2>
              <B2></B2>
              <C2></C2>
              <D2></D2>
         </DTP>
    </header>
    <Content>
         <N1>
              <A></A>
              <B></B>
              <C></C>
              <D></D>
         </N1>
         <REFAR>
              <A1></A1>
              <B1></B1>
              <C1></C1>
              <D1></D1>
         </REFAR>
         <DMP>
              <A2></A2>
              <B2></B2>
              <C2></C2>
              <D2></D2>
         </DMP>
    </Content>

  • Content Conversion Issue - sender File adapter..!!

    Hi All ,
    Input file:
    GRP|HD|7001|7001A00443|012|
    GRP-LN|DTL|1|ZTAS|3|002|209782010|0001|EN
    GRP-LN|TXT|Customer: KR Test, Case 3
    GRP-LN|TXT|Power            : -2.25
    GRP-LN|DTL|2|ZTAS|4|002|209782035|0001|EN
    GRP-LN|TXT|Customer: CL Test, Case 4
    GRP-LN|TXT|Sphere Power            : -2.25
    T     7
    I have 4 segments (Header,Detail,Text,Trailer) with "|" as the field separator and HD,DTL,TXT,T are the Keyfields
    I need to get the xml structure like below heirarchy. Text segment has to come under Detail structure. Header,Detail and Trailer has to be in the same position.
    Recordset
    --Header
    --Detail
    Text
    --Trailer
    After completion of content conversion, I am getting the XML structure in the below format. All the segments are coming in the same hierarchy.
    Recordset
      -Header
      -Detail
      -Text
      -Trailer
    Text segment has to come under Detail segment. I used the below parameters for FCC.
    Recordset Structure: Header,1,Detail,,Text,,Trailer,1
    Recordset Sequence: Variable
    Header.fieldSeparator
    Header.keyFieldValue
    Header.fieldNames
    Detail.fieldSeparator
    Detail.keyFieldValue
    Detail.fieldNames
    Text.fieldSeparator
    Text.keyFieldValue
    Text.fieldNames
    Trailer.fieldSeparator
    Trailer.keyFieldValue
    Trailer.fieldNames
    Kindly suggest me wat went wrong and how to solve it by content conversion.?
    Thanks
    Deepthi

    Hi All,
    Thank you for your replies.
    I thought of doing it in mapping . My map is like
    DTL -
    > E1EDP01
    TXT----
    >  -
    EIEDPT2
    According to my scenario when ever DTL comes then E1EDP01 has to come and EIEDPT2 has to repeat untill next DTL comes.
    Ex: 1DTL and  4TXT segments .So the output will be..
    DTL -> E1EDP01
    TXT -
    > -
    EIEDPT2
    TXT  -
    > -
    EIEDPT2
    TXT  -
    > -
    EIEDPT2
    TXT -
    > -
    EIEDPT2
    DTL -> E1EDP01
    TXT -
    > -
    EIEDPT2
    TXT  -
    > -
    EIEDPT2
    TXT  -
    > -
    EIEDPT2
    TXT -
    > -
    EIEDPT2
    Right now I couldn't able to generate the above target XML. Everytime I am getting all the TXT segments under one DTL segment like below.
    DTL -> E1EDP01
    TXT -
    > -
    EIEDPT2
    TXT  -
    > -
    EIEDPT2
    TXT  -
    > -
    EIEDPT2
    TXT -
    > -
    EIEDPT2
    TXT -
    > -
    EIEDPT2
    TXT  -
    > -
    EIEDPT2
    TXT  -
    > -
    EIEDPT2
    TXT -
    > -
    EIEDPT2
    Any suggestions how we can get rid of in mapping?
    Thanks
    Deepthi

  • 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

  • Sender File Adapter Problem when text document is a single line.

    Hi All,
    I have posted this question earlier too. But did not get a proper answer.
    I am using File adapter to fetch data from a file system.
    My input data is: AA123BB45678AA345BB78564.
    It is just reading the first segment i.e.AA123 and not reading the remaining.
    How can I configure my Sender File adapter to pick this pattern of data? It works fine if I have line break after each record that is if the input is as below.
    AA123
    BB45678
    AA345
    BB78564
    In the above there is a Line break after each segment. So File adapter picks it fine.
    I have also tried using xml.A.endSeparator equals to blank in the module configuration. But it does not work either.
    Can anyone throw some light to this?

    Abhi
    I tried a different approach to send your file data In..
    You can get each line in the source structure in separate row as
      <?xml version="1.0" encoding="utf-8" ?>
    - <ns:SingleRowDT xmlns:ns="http://xxxxx.com/xi/pocs/sriram">
    - <Recordset>
    - <row>
      <rowElt>AA123BB45678AA345BB78564</rowElt>
      </row>
    - <row>
      <rowElt>AA123BB45678AA345BB78564AA123BB45678AA345BB78564</rowElt>
      </row>
    - <row>
      <rowElt>AA123BB45678AA345BB78564AA123BB45678AA345BB78564AA123BB45678AA345BB78564</rowElt>
      </row>
      </Recordset>
    Now you can use a suitable mapping logic to split the individual records into the 2 field structure as expected in the target..
    Trying your way would be a limitation on file adapter I think..Let me know if this helps..I can give you the content conversion config for this model..
    its simply
    RecordSet - Leave it empty
    RecordSet Seq -  Row, *
    Recordsets/msg - *
    row.fieldSeparator - 'nl'
    row.endSeparator - 'nl'
    row.fieldNames - 'rowElt
    ..So each line will be pulled into a single Row in the source structure and then u can apply a specific mapping to split into 2 fields for your target
    Regards
    Sriram V.
    Regards
    Sriram V.

  • Sender file Adapter, problem with proxy authentication

    HI all,
    i'm having some problems with the following scenario, i need to configure a sender file adapter which connects to a FTP server. To connect this FTP server i need to set a proxy (and so a username and a password), and i don't know how to do.
    From note 821267 seems that the proxy is not supported for an FTP adapter, but the are some workaround like the ones described in the following link
    Re: Proxy server inFTP adapter
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=57137
    They don't work in my case as i need to se two username (the one for proxy and the one for the ftp server) and i cannot force the proxy use for all XI applications.
    Can anyone help me?
    Thanks a lot
    Aldo

    Proxy is necessary to exit the customer local intranet. It's not possible to go outside network without going through the proxy server.
    I cannot set the proxy server in file adapter as it's not supported like described in SAp note,  a possible workarounf is to force the proxy server in the J2ee stack but in this way all PI calls would use that proxy..

  • File Content Conversion Parameters in FIle Adapter

    Hi
    I am doing a scenario - XML file to Text file using File content conversion parameters in Receiver File Adapter Channel.
    I given FCC Parameters like:
    DATA.addHeaderLine - '0'
    DATA.fieldSeparator - ,
    DATA.endSeparator - 'nl'
    But im getting error in Receiver File Adapter as - fieldSeparator not specified.
                 i would be greatful if any one help me.
    Regards
    Rajesh

    Hi Rajesh,
    There are lot of blogs which explain File Content Conversion in different scenarios:-
    /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/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /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/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    I hope this helps.
    Regards.
    Praveen

  • File Content Conversion in Sender File

    how to convert a fixed length flat file without end seperator sent to XI to a xml form?
    Pleasegive me the idea of Sender Adapter configuration details (esp endSeperator)

    Hi,
    For file content convertion if there are fixed lenth then no need to give the feildseperator,just give the fixed lenths for all the feild in FCC.
    check below links for FCC
    /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
    Regards,
    Phani.
    Reward Points If Helpful

  • Content conversion in Sender JMS Adapter

    Hi,
    Scenario is file to IDoc
    My source file is   ' ; ' separated file coming from MQ via JMS adapter. now  I need to convert this to XI.
    Source DT looks like
    Root
    HEADER  (Occurance 1)
         Field 1
         ISOCURCD
         TRANKODE
         IDENTIFIER
         DATO
         TIME
    DETAIL(Occurance 1 to unbounded)
         ISOCURCD
         TRANKODE
         EFFDATE
         COMMDATE
         DKKVAL1
         USDVAL1
    TRAILER(Occurance 1)
         ISOCURCD
         TRANKODE
          TRANCOUNT
    According to How to use content conversion in JMS guide from SDN i have configured the content conversion parameters in the module of JMS sender adapter.
    In the processing sequence  given the module name as localejbs/AF_Modules/MessageTransformBean and module Key as Plain2XML.
    And in module configuration
    Parameter Name                      Parameter Value
    Transform.Class                          com.sap.aii.messaging.adapter.Conversion
    Transform.ContentType                     text/xml;charset=utf-8
    xml.keyFieldName                          TRANKODE
    xml.keyFieldType                          CaseSensitiveString
    xml.recordsetName                          Root
    xml.documentName                                   MT_ROOT
    xml.documentNamespace                          http://XXX.XXX.XX/xi/XXXXX
    xml.processFieldNames          fromConfiguration
    xml.conversionType                                   StructPlain2XML
    xml.recordsetStructure          HEADER,1,DETAIL,*,TRAILER,1
    xml.HEADER.fieldNames           Field1,ISOCURCD,TRANKODE,IDENTIFIER,DATO,TIME
    xml.HEADER.fieldSeparator                     ";"
    xml.HEADER.keyFieldValue                     H
    xml.fieldSeparator                                      ";"(if i don't use this then the file is not being picked and getting an error in the CC monitoring of RWB saying xml.field separator missing.)
    Similarily for Detail and Trailer records as well.
    But when I run the scenario, the file is being picked up but I am not getting any payload into the inbound message.
    Can you please help me where I have configured wrongly. And one more thing will this configuration help for ; separated file .
    Thanks & Regards,
    Kumar
    Edited by: Kumar on Dec 19, 2007 11:11 AM
    Edited by: Kumar on Dec 19, 2007 11:15 AM

    HI,
    Have you gone through the below pdf i think it will help to find ur mistake.
    How to use conversion modules in JMS - https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
    Thnx
    Chiarg

  • Content conversion in Sender JMS adapter-document

    Hi,
    I am tring to read fixed length flat file from MQ-series Queue using JMS adapter.
    I want to use content converstion to convert the flat file to XML.
    I am not able to open the PDF link provided in SDN.
    if anyone has a copy of the pdf document on JMS content conversion, could you please enmil it to me
    at [email protected]
    Edited by: ashok sri on May 27, 2008 5:25 PM

    please go through the  document
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50061bd9-e56e-2910-3495-c5faa652b710

  • REG: File content conversion in Receiver file adapter

    HI Gurus,
    I have the scenario like proxy to file with content conversion
    my message type for the source like this
    MT_SOURCE
    -----||
           |---ROW
    ------------||
                    |---LINE
    target strucuture also same
    MT_TARGET
    -----||
           |---ROW
    ------------||
                    |---LINE
    i am using the following FCC parameters in receiver file adapter
    LINE.fieldSeparator = '                       '
    LINE.fixedLineWidth = 90
    LINE.lineSeparator  = 'nl'
    LINE.fieldFixedLengths = 200
    LINE.endSeparator        = 'nl'
    the output file show the data differently in note pad when compare to word
    word output
    dgepvs                       023456987
    kgdd0016155710                SS Smw Ne 01                                                                               
    kgdd0016155710                SS Smw Ne 01                                                                               
    kgdd0016155710                SS Smw Ne 01                                                                               
    kgdd0016155710                SS Smw Ne 01                                                                               
    kgdd0016155710                SS Smw Ne 01                                                                               
    kgdd0016155710                SS Smw Ne 01                                                                               
    kgdd0016155710                SS Smw Ne 01
    notepad out put
    dgepvs           023456987   kgdd0016155710                SS Smw Ne 01       kgdd0016155710                SS Smw Ne 01          kgdd0016155710                SS Smw Ne 01            kgdd0016155710                SS Smw Ne 01    kgdd0016155710                SS Smw Ne 01
    word output is the correct output wat i am expect but same out put i want in note pad can any help me out for this how can i resolve this
    Thanks in advance

    There is nothing wrong in your content conversion parameters. This is pure editors interpretation for the next line character.
    I would do in java program to fix this issue using '\r\n'   You might want to try and see how that helps for notepad editor.

  • Content conversion in Reciever File  Adapter

    Hi Frens,
    Iam doing A FCC in Reciever file adapter. My input structure is
    DT_structure
    ->Record
      ->Row
           Field1
           Field2
           Field3
    I have donr the configuration as
    Recordset Structure : Record,Row
    Row.fieldSeparator : ,
    Row.endSeparator : 'nl'
    Record.fieldSeparator : 'nl'.
    With this configuration  Iam able to display only one record but I need to display multiple records in the file. Please do suggest me wha need to be done to achieve this.
    Radhika.

    First check whether your datatype has the occurrence of records unbounded or not. Then goto content conversion. If both your Record and Row tags can occur multiple times, then use
    Recordset Structure : Record,*,Row,*
    Or if Record occurs only once and multiple Row nodes are required, then use
    Recordset Structure : Record,1,Row,*
    Regards,
    Prateek

  • Reg:File content conversion for Sender File Adaptor

    Hi all,
                i would like to know , how the file content conversion is written for the below mentioned XML code. The flat file will have only the table name and the fieldname
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Mt_File xmlns:ns0="http:/file_to_idoc">
       <query_table>ztable1</query_table>
       <row_count/>
       <Fields>
          <item>
             <fieldname>zempno</fieldname>
          </item>
       </Fields>
    </ns0:Mt_File>
    regards
    priya

    First you create the conversion rules, then you create the XML structure accordingly, not the other way.
    online help will help you

  • Sender File Adapter - Problem with field separator

    Hi,
    I want to upload a CSV file into XI.
    The file contains a text part which uses from time to time quotation marks like this:
    SD,575757,383838,N/A,XYZ,"This is a text part",7676
    But besides there are lines like this:
    SD,575757,777722,N/A,XDE,FREETEXT,7575
    Has anyone any idea how to configure the file adapter to get it recognize the quotation marks not as field separator?
    I've already tried the enclosureSign parameters but that leads to an total unconverted line.
    Is it maybe possible to customize two field separators like this:
    Structure.fieldSeparator - ,"
    Thanks for any answer,
    Christina

    No, it doesn't work.
    I've specified now:
    Structure.fieldSeparator        ,
    Structure.enclosureSign         "
    Structure.enclosureSignEscape   ""
    Every line without quotation marks is converted fine. Lines with quotation marks stay like in the original CSV file and the whole line is put into one XML tag (still comma separated).
    Also the parameter fieldContentFormatting - nothing doesn't make a difference.
    Other ideas?

  • Sender File adapter problem

    Hi,
    I have File to JDBC sceanrio,  File is on FTP server and data is added in file in every 15 mint.  while adding data to file its takes some time.
    My problem : when data is being  added to file, sender adapter picks the file when addition of data is not completed. so it picks incomplete file and send to target.
    What  can be the possible solution to be used for this problem or what configurtaion can be done in CC required.
    Thanks
    Laxmi Bhushan

    Hi Laxmi,
    is PI picking file in NFS mode or FTP mode?
    With NFS mode, you can use setting wait for file modification check. Same setting is available for FTP but it doesnt not work for FTP.
    Another option could be ask Source system to generate file with a temporary name & rename once file is writen completely.
    Regards
    Sushil

Maybe you are looking for

  • RFC Lookup in UDF

    hi gurus, i'm  facing  a weird problem, i have implmented three scenarios IDOC  - > FILE, inside each mapping i created an UDF that call an RFC function that brings me an accounting value, the rfc call another FM : LAST_DAY_IN_PERIOD_GET. of course i

  • How to Setup Batch Management Level (Material vs Client)

    Hi Experts, I had a question about the level at which I should be setting up Batch Management. The requirements that we have are: - We want uniqueness in the batch being created. - We have split valuation active at the Batch Level. Hence, we have nai

  • Desktop application

    I've just bought a new computer. I went to set up adobe story and install the desktop application, but the link is unavailable (dulled) ... has something changed here?

  • BBSM 5.3 using RADIUS Authentication and ISA Logging

    I have a BBSM 5.3 that is configured to authenticate users via an RSA RADIUS Server and uses the transparent proxy setting which is all working. I was looking at the ISA Server logs and noted that all the log entries were using anon as the user, is i

  • Photoshop PS6 extender

    Bonjour, J'ai du changer de version windows (Vista vers Windows 7) sur mon PC. J'ai donc perdu PS6. En Inde actuellement, je n'ai pas accés à mon CD d'installation. Je n'ai que mon n° de Série (enregistrer dans mes commandes d'Adobe). Pouvez vous m'e