File content conversion Receiver with no key fields

hi all,
          I have a header structure with four fields all varying and also  item structure with varying fields .. how do i go about to solve this .. as the regular Content Conversion uses key fields.. but there are no such key fields here... kindly help in this regard to proceed

If you dont have a key field, then the only option to read the file and convert it to XML would be in a record row format.
Here each line will go as one field in the XML. You will have to use some logic in your mapping to extract the right field.
Ref: /people/sravya.talanki2/blog/2005/08/16/configuring-generic-sender-file-cc-adapter
but in case your is a receiver File adapter then key fields are not required.
ref: /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

Similar Messages

  • File content conversion: String with commas to CSV

    Hi Experts,
    I have the following structure
    DATA (1..n)
    ...Result (1..1)
    The Result field contains a string like below
    a,b,c,d,e,f,g,h,i,j
    How do I put this into File Content Conversion when I want the receiver to be a CSV file? One cell per letter.
    Thanks in advance.

    Outbound: you could convert your flat file to xml at first. Make the necessary mapping to the destination structur.
    http://www.riyaz.net/blog/xipi-file-content-conversion-for-simple-structure/
    Inbound: Content convernsion from xml to csv.
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    Cheers
    Serdar

  • Content conversion without delimiter and key fields

    I am pretty new to XI, so it has been very challenging till now... (and someway I want to keep it that way) But this problem has kept me awake a couple of nights, so I will unleash it to the XI experts at SDN!
    I have to read a legacy file (customers are ordering stuff) with the following content into XI. I finally found out you can use file content conversion to do the job, but I have only seen scenarios where people can use delimiters or key fields so far. I suppose XI can do this job as good as the others, but the question is how it has to be done! :-s
    Do I have to use key fields? Or can I simply state there will be 1 header line, X order lines, 1 EOF line?
    Sample content:
    100207.310551
    0107299700001
    0108658400001
    0109575600001
    1200276500001
    0109745600001
    9999999999999
    Header line containing the customer (100207) and the ticket number (300551) separated by a dot.
    In this case 5 order lines containing material (8 digits, ex 01072997) and quantity (5 digits, ex 00001)
    Line containing only 9's to indicate the end of the file has been reached.
    Thanks in advance!
    Sven

    Hi Sven,
    This FCC might help u..If your structure like ...
    <?xml version="1.0" encoding="UTF-8" ?>
    <ns0:bestin xmlns:ns0="http://test.com">
    <recordset>
    <header>
    <client>100207</client>
    <ticket>310551</ticket>
    </header>
    <item>
    <material>01072997</material>
    <quantity>00001</quantity>
    </item>
    <item>
    <material>01086584</material>
    <quantity>00001</quantity>
    </item>
    <item>
    <material>01095756</material>
    <quantity>00001</quantity>
    </item>
    <item>
    <material>12002765</material>
    <quantity>00001</quantity>
    </item>
    <item>
    <material>01097456</material>
    <quantity>00001</quantity>
    </item>
    </recordset>
    </ns0:bestin>
    then
    RecordStructure----header,item
    otherwise
    RecordStructure----client,ticket,item
    client.fieldFixedLengths----give length of client
    ticket.fieldFixedLengths----
    item.fieldFixedLengths----
    client.fixedLengthTooShortHandling--Cut
    ticket........same
    item.....
    client.addHeaderLine--0
    ticket........same
    item.....
    recordsetStructureOrder---var
    Cheers!
    Samarjit
    Message was edited by:
            Samarjit Dey

  • File Content Conversion - Receiver Adapter

    Hi To All
    I have an XML Structure
    <LIST>
         <Seg1>
              <Element1>123</Element1>
         </Seg1>
         <Seg2>     
              <Element1>ABC</Element1>
              <Element2>DEF</Element2>
              <Element3>GHF</Element3>
            </Seg2>     
    <LIST>
    I'm using File content conversion in receiver Adapter
    I want my output like this.
    ABCDEFGHF
    I don't need the Segment Seg1.
    In my parameters RecordsetStructure only I have Seg2 and the details for this Segment
    but When I receive a file, the adapter convert with segment 1.
    123
    ABCDEFGHF
    can you help me?.

    easiest alternative is mentioned here already, drop it in the mapping.
    You can also try to write a java pgm and invoke it as an OS command. that cuts the segment1 out before passing it to content conversion. ..more painful..but will work.
    Regards
    Ravi Raman

  • Issue w/ File content conversion (Receiver side)

    Folks, there seems to be an issue with the conversion. I've read several of threads on this forum, but none helped! Although the file is generated with 8 bytes there seems to be nothing in the file.
    However when 'File' message protocol is used, the xml file is generated correctly as expected. All my other settings are fine.
    Here is the scenario:
    1) created Message type -
    MTX
    ..Material
    ..BaseUnit
    ..MatGrp
    ..Division
    2) comm. channel created for -
    Transport protocol: File (NFS)
    Message protocol: File content conversion
    Recordset Structure: MTX
    parameters:
        MTX.fieldSeparator: ,
        MTX.endSeparator: 'nl'
    Should recordset struc. and parameters have 'ns0' prefix, i.e.,
    Recordset Structure: ns0:MTX
    parameters:
        ns0:MTX.fieldSeparator: ,
        ns0:MTX.endSeparator: 'nl'
    What esle is missing? any thoughts are welcome.
    Thanks and appreciate your responses.

    Hi ABAP JUNOON,
    Could you please create another Test scenario and
    try
    MTI_XXX
         - DATA(0..unbounded)
             - fields?
    i mean, without redundant RS(Record Structure).
    and use 
    Transport protocol: File (NFS)
    Message protocol: File content conversion
    Recordset Structure: DATA.
    it will written the complete output file.
    some people create the Reciver data type for  test scenario's as follows.
    MTI_XXX
       -RS
         - DATA(0..unbounded)
             - fields?
    i mean with redundant RS
    in this case file is generated, but nothing will be appear.
    so plz take care while creating the reciver data type with FCC.
    and the following case also will work i.e
    MTI_XXX
       -RS
         -Header(0,1)
             - fields?
         - DATA(0..unbounded)
               - fields?
         - Trailer(0,1)
             - fields?
    Regards
    Mahesh.

  • File content conversion - Receiver config

    Dear Experts ,
    I am transferring data from an Idoc to a target structure ( flat file ) using file content conversion . But the problem is regarding the sequential order of writing the data .
    >E1EDL24 ( parent ) [  IDoc  ]
        xxxxx
        yyyyy
       zzzzz
         >E1EDL26   (child)
              xxxxx
    My target structure i have defined into which i pass the values from IDoc is as follows .No heirarchy , bcoz i want the child to be written in the next line
    ROOTNODE
         E1EDL24
         xxxx
         yyyy
         zzzz
         E1EDL26
         xxxx
    when the file content conversion is done it has to write to the target as below and they are unbounded repetitions
    E1EDL24    xxxxx   yyyyy   zzzzzzz  -
    parent           [ Flat File - Using file content conversion ]
    E1EDL26    xxxxx   -
    child                                  
    E1EDL24    xxxxx   yyyyy   zzzzzzz
    E1EDL26    xxxxx
    E1EDL24    xxxxx   yyyyy   zzzzzzz
    E1EDL26    xxxxx
    Even my target payload is xml coming as below 
    <E1EDL24>
      <SEGNAM>E1EDL24</SEGNAM>
      <POSNR>000010</POSNR>
      <MATNR>1SDA056161R1</MATNR>
      <ARKTX>E3N3200/WMP/3P/PR121/LSI</ARKTX>
      <WERKS>AEAV</WERKS>
      <LFIMG>5</LFIMG>
      <ABRDT>20120209</ABRDT>
      <POSEX>000000</POSEX>
      <VGBEL>4200512544</VGBEL>
      <VGPOS>000010</VGPOS>
    - <E1EDL26>
      <SEGNAM>E1EDL26</SEGNAM>
      <PSTYV>ARV</PSTYV>
      </E1EDL26>  </E1EDL24>
    - <E1EDL24>
      <SEGNAM>E1EDL24</SEGNAM>
      <POSNR>000020</POSNR>
      <MATNR>1SDA059669R1</MATNR>
      <ARKTX>E3 WFP 3P HR-HR NEW</ARKTX>
      <WERKS>AEAV</WERKS>
      <LFIMG>5</LFIMG>
      <ABRDT>20120209</ABRDT>
      <POSEX>000000</POSEX>
      <VGBEL>4200512544</VGBEL>
      <VGPOS>000020</VGPOS>
    - <E1EDL26>
      <SEGNAM>E1EDL26</SEGNAM>
      <PSTYV>ARV</PSTYV>
      </E1EDL26>  </E1EDL24>
    It is giving me configuration error .
    Should subnodes or child be mentioned in the record set structure or not. if not how will i clearly wite it to the next line as a child for every time it writes a parent unbounded times .
    So can anyone tell me if the problem is with mapping or parent child relation or how do i map to get it in the sequence . Your replies can be really helpful
    -Thanks in advance
    Regards
    Ganga

    HI Bhaskar ,
    This is not even so deeply nested . Its just one parent and child that it has to write in the flat file with unbounded times . The output xml is generated perfectly but giving the configuration error . in passing the values . Want to know how to write the child segments in the configuration profile in the content conversion parameters .
    Regards
    Ganga

  • File Content Conversion Receiver

    Hello,
    I've the follow structure:
    1 entrega                            0..unbounded
       1.1  entregas                     0..unbounded
           1.1.1   pedido                   0..1
           1.1.2  posicion                 0..1
           1.1.3   marcas                  0..1
                  1.1.3.1   marca1           0..unbounded       
           1.1.4   cajas                    0..unbounded
                1.1.4.1 num_caja           0..1
                1.1.4.2 ref_cliente          0..1
                     1.1.4.2.1 linea         0..unbounded
                1.1.4.3 num_serie         0..unbounded
                       1.1.4.3.1 num      0..1
                       1.1.4.3.2 descr    0..1
                             1.1.4.3.2.1 linea  0..unbounded
    The format output file is:
    pedido,posicion,marca1,marca1,numcaja,linea,linea,num, num,linea,linea
    pedido,posicion,marca1,marca1,numcaja2,linea2,linea2,num2
    pedido,posicion,marca1,marca1,numcaja3,linea3,num3,linea3..
    I don't know how to do in file content conversion for obtain this..
    My file content conversion is:
    recordset: entregas,marca1,cajas,ref_cliente,num_serie,descr
    all fields has fieldSeparator and endSeparator
    I had testing change this values however i can't obtain the output file..

    hi,
    Content Conversion does not support more then 2 th depth levels I'm affraid
    so you need to do it:
    - either in the mapping (so only 2 levels will be visible)
    - or in the adapter module (instead of mapping you can prepare the lines here)
    Regards,
    Michal Krawczyk

  • File Content Conversion Receiver Channel

    Hi,
    I have a complex structure like:
    <Header>
    </Header>
    <Item>
      <SubItem>
        <Info>
        </Info>
      </Subitem>
    </Item
    <Item>
      <SubItem>
        <Info>
        </Info>
      </Subitem>
    </Item
    When I follow the instructions for File Content conversion I cannot separate the Item / SubItem and Info segments into separate lines in my flat file.
    The result is:
    Header
    Item Subitem Info
    Item Subitem Info
    I want
    Header
    Item
    Subitem
    Info
    Item
    Subitem
    Info
    How can i establish the correct result?
    Best regards
    Ron.

    Hi,
    I specified the following
    Name                                                                   value
    Header.addHeaderLine                 0
    Header.fieldSeparator                   ;
    Header.endSeparator                   'nl'
    Item.addHeaderLine                     0
    Item.fieldSeparator                       ;
    Item.endSeparator                       'nl'
    Subitem.addHeaderLine               0
    Subitem.fieldSeparator                 ;
    Subitem.endSeparator                  'nl'
    Info.addHeaderLine                       0
    Info.fieldSeparator                        ;
    Info.endSeparator                         'nl'
    Best Regards
    Ron

  • Problem with File Content Conversion (Receiver FIle Adapter)

    Hi Experts,
    I have following structure in receiver side:
    MT_Test
       F1
       F2
       F3
       F4
    Now I want a CSV file in target side in below format:
    F1,F2,F3,F4
    I have provided below config in receiver file adapter under content conversion tab:
    Recordset Structure : MT_Test
    MT_Test.fieldSeperator= ,
    MT_Test.endSeperator= 'nl'
    But this is generating blank CSV files in target directory..What might be the reason.. I have checked the msg in adapter engine, the XML file is correct and contains valid values for the fields..Its something like below:
    <?xml version="1.0" encoding="UTF-8" ?>
    <MT_Test>
       <F1>Hai</F1>
       <F2>Hello</F2>
       <F3>Bye</F3>
       <F4>Hi</F4>
    </MT_Test>
    I should get CSV file as
    Hai,Hello,Bye,Hi
    But I am getting a blank file with above said config parameters in content conversion tab.
    What might be the reason for getting blank CSV files in target side???
    Thanks,
    Adi

    Hi Adi,
    >>My target structure in below format:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <MT_Test>
    <F1>Hai</F1>
    <F2>Hello</F2>
    <F3>Bye</F3>
    <F4>Hi</F4>
    </MT_Test>
    So, try to edit Data type and include hierarchy level above <F1>.
    Finally your Target Structure will resembles like this.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <MT_Test>
    <Structure>
    <F1>Hai</F1>
    <F2>Hello</F2>
    <F3>Bye</F3>
    <F4>Hi</F4>
    </Structure>
    </MT_Test>
    FCC Parameters will be like this.
    Structure.fieldSeparator = ,
    Structure.endSeparator = 'nl'
    Hope you were clear.
    Thanks,
    Siva.

  • File Content Conversion (receiver) and special characters

    Hi all,
    I have a scenario that has a file receiver channel with content conversion. The record structure in the flat file is field-width delimited (hence no field separator) and the parameter 'fieldLengthTooShortHandling' has the value 'Cut' because the receiving system needs only specific widths for the fields. Hence if the field value exceeds the length permitted, the extra characters are clipped.
    I observed that some characters are not handled properly while creating the text file. For example, one of the fields contained a "minus" character (not the hyphen). The flat file was created successfully. I opened the file in notepad and found that the "minus" character has appeared correctly and the column count in that record was as expected. However when the same file was opened in Textpad, the minus character was displayed as â | |  ('a' with caret, bar, bar) So, all the fields after this field were shifted ahead by 2 characters and hence the total column count of the record had gone beyond the actual one.
    All this started due to the error reported by the receiver system which processes the flat file. Due to shift of characters in the flat file, the processing failed. Moreover that system cannot process the special characters (like minus or non-Latin accented characters etc.) So although there is no issue in XI interface as such, I just want to know if anyone has more informtion on why the characters are displayed differently as mentioned above.
    Regards,
    Shankar

    Define data type like
    order_recordset
    order_row 1..unbound
    f1
    f2
    All are same except communication channel configuration,
    Message Protcol : File content select, then below you got additional parameters.
    there you fill
    Document name : Your sender message type.
    Document namespace : Give your scenario namespace
    Recordset name : order_recordset ( mentioned in the data type)
    Recordset structure : order_row, *
    Name Value
    order_recordset.fieldSeparator : 'nl'
    order_row.fieldSeparator : ,
    order_row.endSeparator : 'nl'
    based on your text file you fill the above parameter values.

  • File Content Conversion -- Receiver File Adpter

    Hi,
    In the Receiver file adapter, we need to convert the
    following XML file to CSV file.
    Recordset
    -|File (1)
    -|Item (1 to unbounded)
    -|BottomData(1)
    and in the CSV file we just need Item and BottomData information
    not the File content. We are putting File content
    into file adapter to make the varibale substitution
    in the file naming and It should not go into the
    file content.
    I configured the receiver file adapter as
    Recordset Structure                :File,Item,BottomData
    File.addHeaderLine               0
    File.noOfColumns               0
    File.fieldFixedLengths               0
    File.fixedlengthTooShortHandling     'Cut'
    Item.addHeaderLine               0
    Item.fieldFixedLengths     8,6,4,3,20,14,6,30,1,2,18,6,4,12,4,4,1,6,6,8,7,4,6,10,20,1,10
    BottomData.addHeaderLine          0
    BottomData.fieldFixedLengths          8,6,4,3,40,2,3,2,3,1,19,15,27,7,27
    But it is not working. File is still coming.
    Is there any way to delete one line in the receiver
    file adapter.
    Any input is appreciated.
    Regards,
    Srinivas

    Hi Srinivas,
    There are other ways also to get the filename. See this link for this:
    http://wiki.sdn.sap.com/wiki/display/XI/CombiningthreedifferentaspectsofPIinoneshot
    Regards,
    ---Satish

  • Receiver File content conversion problem with newline separator

    Hello Experts,
    My scenario is IDOC To file..At output we are generating an csv file wherein we have got records in new line.
    somethng like these..
    ITEM1,ITEM2,ITEM3
    ITEM1.ITEM2,ITEM3.
    But when i open these csv file using notepad,we are getting records in same line.
    i.e item1,item2,item3item1,item2,item3
    Also we have specify in FCC,endseparator value as 'nl'
    My target structure is somethng like these,
    MT_PRODUCT_MASTER
       -Product master
          -item1
          -item2
    Pleasee advise.

    What is exactly parameter that you have set on channel?
    endSeparator = 'nl'
    NameA.endSeparator
    If you enter a character string here, the system adds it to the last column as a closing character. You can also make this specification in addition to NameA.fieldFixedLengths. To include a line break following the closing character, you must explicitly define it by attaching ´nl´ (including the quotation marks) to the string.

  • File Content Conversion Receiver side

    hello friends:
    I needed output file as  with xml tags at beginning and ending and inbetween csv file
    Eg for the desired output
      <Main>
      <Header>
      <H1> headertext1 </H1>
    <H2> headertext2 </H2>
    </Header>
    <BODY>
    A,123,445,455, KUM1ABC
    B,XX, YY,ZZ,KUM2ABC
    B,12a,446,457,KUM3ABC
    B,12b,447, 458,KUM4ABC
    B,12c,448,459,KUM5ABC.
    </BODY>
      </Main>
    1. I am receiving  a table from sap rfc as source and mapped inside  XI to a target structure.
    COL1 COL2 COL3 COL4 COL5
    A      123    445     455    KUM1ABC
    B      XX      YY      ZZ      KUM2ABC
    B      12a    446     457    KUM3ABC
    B      12b    447    458    KUM4ABC
    B      12c   448     459    KUM5ABC
    2,Create Target structure
    Target Structue:
    Node
      Header
         H1
         H2
        Data
          C1
          C2
          C3
          C4
          C5
    3.At Receiver communication channel i used FCC with Body.fieldSeparator as ',' and i am getting the output as below with total csv file .How to get xml tags at beginning and at ending and in between csv file?
    Output:
    headertext1
    headertext2
    A,123,445,455, KUM1ABC
    B,XX, YY,ZZ,KUM2ABC
    B,12a,446,457,KUM3ABC
    B,12b,447, 458,KUM4ABC
    B,12c,448,459,KUM5ABC
    thanks for reading my message! any clues are appreciated

    Hi,
      You use like below.
      Use StrictXml2PlainBean to convert the file in .csv format.The same like FCC paramters .
    [http://help.sap.com/saphelp_nw70/helpdata/EN/44/748d595dab6fb5e10000000a155369/content.htm]
    After that use adapter module and add the xml tag in the file.
    Module should be present like,
    1.StrictXml2PlainBean
    2.Custom Adapter module
    3.CallSapAdapter
    Regards,
    Prakasu.M

  • File Content Conversion - Key Field Value

    Hi Experts,
    I am using File to Idoc scenario for my mapping. In the receiver Communication channel, I am using File Content Conversion. My scenario is as follows :
    I have a recordset with Header and Line items with Key Field Indicator as 'H' and 'L'. In some cases, the value for this Key Field is coming in as something other than 'H' and 'L'. I need to throw an exception when this Key Field is not 'H' or 'L'.
    In the 'Content Conversion' tab, my attributes are as:
    Header_Structure.keyFieldValue = 'H' and Line_Structure.keyFieldValue = 'L'. Is there any more attributes that I need to add ?
    Please advise. Thanks a lot.
    Regards,
    Freddy.

    >>multiple key field values in FCC configuration i.e Line_Structure.keyFieldValue = H or L
    AFAIK it is not possible but lets wait for other experts to comment on this...
    >>Can keyFieldInStructure (add, ignore) parameter help me in this case ?
    No. this parameter is only used when you want to include key filed in ur XML structure(add) or not (ignore)...
    Chk this:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm

  • Key field values for file content conversion at sender communicationchannel

    Hi all,
    I am working on  scenario File to Idoc.In this scenario at the sender side we configure the file content conversion for .CSV file.
    In the flat file i am having more than one orders, XI will pick the file and creates a separate Idoc for each sales order at r/3.
    We have similar fields "Order Item Number" both header and item.
    If we got '00000' on the Header item then it should create a new idoc at the r/3 side other wise it will create line item.
    Order item number will be 00000 for header but it will differ from order item to item.
    source structure
    Order Header
    Order type
    Sold-to-code
    PO number
    Order item number
    Order date
    AdresName1
    AdresName2
    Street and House number
    Postal Code
    City
    Country Code
    Filler
    Order Item
    Order type
    Sold-to-code
    PO  number
    Order item number
    Order date
    Product code
    Order quantity
    Item text
    Filler
    Now I have some questions....
    I don't have standard filed values to give the key fileds at source structure.
    I need to create the Idoc at r/3 system for each individual record.
    Is it possible to create new idoc with out using the Key filed value?
    If it is possible then how can i proceed with fcc?
    please give me your valuable suggestions
    Best Regards,
    satya
    Edited by: satyatanuku on Mar 3, 2010 1:41 PM
    Edited by: satyatanuku on Mar 3, 2010 1:42 PM
    Edited by: satyatanuku on Mar 3, 2010 1:44 PM

    Hi,
    Just check the Content Conversion Parameters-  Recordset Structure.
    If you have filled in this parameter with
    Header,1,Item,1
    then change it to
    Header,1,Item,3
    Regards
    Chandra

Maybe you are looking for

  • 7.4 changed my full screen view of videos

    I updated to iTunes 7.4 this morning after realizing most of the new features are useless to me who has no iPod or iPhone, but I did see mention of full screen support (and couldn't remember if that was new or not.) I played a couple of videos going

  • Adobe PDF Printing - no file is created

    Hi there, We have Adobe CS6 installed on our network, which includes Adobe Acrobat X Pro. Our clients are Windows 7 64-bit. We are experiencing a problem when it comes to printing to PDF.  e.g. using notepad or Microsoft Word, when selecting "File >>

  • Outer join not outer joining

    Hi, I'm trying to do a query like this: SELECT A.id, etc FROM A,B,C WHERE A.id(+) = B.id and A.id = C.id GROUP BY A.id and this isn't getting the values in B that don't match with A. I also tried the ANSI syntax but I got the same result. thanks in a

  • Form fields exceeds Excel's column limitation. XML to non-xls solution?

    I have a form with more than 256 variables. This is not a problem with xml, but the wizard from Adobe>XML>Excel truncates data at Excel's column limit of 256 columns, leaving my remaining variables only held in the xml files. Surely others have come

  • OTN Developer Day Regrestration Problem

    For the last two days, I've been trying to register for the developer day in Houston, TX. When I click the Register Now button, im taken to a page with the following content: We're sorry, There seems to be some problem in processing your request. We