File content conversion - sender adapter for Header and detail records

Hi Experts,
                 I am receiving a field of fixed length content format.(Header)The first line of the file will follow the structure X having some fields and (DetailRecord)subsequent lines in the file will follow structure Y having somes fields.There is no record identifier for Header and Detail records.In one file first line is Header records and remaining subsequent line is DetailRecord.What are the parameters we have to set for sender file content conversion parameters as i donot have any key field and key field value.And in one file we have only one header records ( first line) and n number of detail records from 2nd line onwards.
Thanks
Deepak

Hi
Refer the below fourm link,
Flat file whitout id
Regards
Ramg.

Similar Messages

  • File content conversion sender adapter

    Hi Friends,
    I am doing File to IDoc scenario.
    I am using File Content Conversion for File Adapter.
    My structure look like this
    MT_File
    HEADER1 1..1
    --header1
    -- header2
    HEADER2 1..1
      --header3
    DETAILS 1..unbounded
    --details1
    --details2
    --details3
    TRAILER1 1..1
      -- trailer1
    TRAILER2 1..1
      -- trailer2
    ----trailer3
    In File Content conversion parameeters..
    Document Name :MT_File
    Document Namespace :urn:test:FileFcctoIdoc
    RecordSet name :
    RecordsetStructure :HEADER1,1,HEADER2,1,DETAILS,*,TRAILER1,1,TRAILER2,1
    RecordSet Structure: Ascending
    RecordSet Per message : *
    Key Field Name :header1,header3,details1,trailer1,trailer3
    ignoreRecordsetName     : true
    HEADER1.fieldNames      :header1,header2
    HEADER1.keyFieldValue      : H1
    HEADER1.fieldFixedLengths  :5,10
    HEADER1.endSeparator   :'nl'
    HEADER2.fieldNames             :header3
    HEADER2.keyFieldValue         : *D
    HEADER2.fieldFixedLengths     :5
    HEADER2.endSeparator         :'nl'
    DETAILS.fieldNames               :details1,details2,details3
    DETAILS.keyFieldValue         : 3
    DETAILS.fieldFixedLengths     :5,5,5
    DETAILS.endSeparator         :'nl'
    TRAILER1.fieldNames               :trailer1
    TRAILER1.keyFieldValue         : *S
    TRAILER1.fieldFixedLengths     :5
    TRAILER1.endSeparator         :'nl'
    TRAILER2.fieldNames               :trailer2,trailer3
    TRAILER2.keyFieldValue         :SE    TRAILER2.fieldFixedLengths    :5,5
    TRAILER2.endSeparator         :'nl'
    File is :
    H1hh1hhhhhhhhh2
    *Ddd*
    Xddd1dddd2dddd3
    Xddd4dddd5dddd6
    Xddd7dddd8dddd9
    *Sss*
    SEKss2
    in RWB, Channel CC_FILE_Sender_FccDemo: Empty document found. Proceed without sending message
    I think the problem is in FCC paramters..
    Could please have a look and correct me
    Regards
    Ram

    Ram,
    The problem which i can see is your key field values in your test file. Remember you should have the key field value in each new line at the same place.
    For example you have given your text file as shown below...
    File Given By You is :
    >H1hh1hhhhhhhhh2
    >*Ddd *
    >Xddd1dddd2dddd3
    >Xddd4dddd5dddd6
    >Xddd7dddd8dddd9
    >*Sss *
    >SEKss2
    Compair the above file with the below one..
    >H1hh1hhhhhhhhh2
    >*Ddd *
    >Xddd1dddd2dddd3
    >Xddd4dddd5dddd3
    >Xddd7dddd8dddd3
    > *Sss *
    >SEKss2
    If you notice, for details I have given key field value 3 in each line & at same place.
    One more thing just use the KeyFieldName only one ( just follow the same blog which I have given, to understand how to use the KeyFieldName )
    e.g.
    Document Name :MT_File
    Document Namespace :urn:test:FileFcctoIdoc
    RecordSet name :
    RecordsetStructure :HEADER1,1,HEADER2,1,DETAILS,*,TRAILER1,1,TRAILER2,1
    RecordSet Structure: Ascending
    RecordSet Per message : *
    Key Field Name : KF
    Regards,
    Sarvesh

  • File Content Conversion - documentation, especially for all parameters?

    Hi,
    Can anyone point me to do for the File Content Conversion documentation?  especailyl for all the parapters for record set structures?  I've found some articles, posts here and there, but nothing that just lists them all.
    I'm try to parse a flatfile thats simply looks like this:
    abc
    d
    e
    Into a single recordset with 3 structures..
    the first struct has 3 fields, 1 char each
    then 2nd structure has 1 field
    then the 3rd structure has 1 field
    however, no matter what I try, the engine always seems to try to parse the 2nd line as the first structure type.. thus complaining line 2 can't be converted to the first strucuture format...

    Here are couple of weblogs
    For Sender
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /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
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    SAP Help for sender
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    For Receiver:
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    SAP Help for receiver
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    regards
    SKM

  • 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

  • File content Conversion Paramter Errors for Footer

    Hi, I have a text file, which I working for File to IDoc process. I have to ignore the last line in the file, that is footer... the footer has a value " *FOOTER* Data Rows: 24 ".  But the file has a different field length with values... how to do this... I wondering this in File Content Conversion paramter.  Please explain clearly how to pass the paramter values...

    I attached my file here... now please tell me how to do this.... in File content conversion.... I have Client barcode (field length 11), quantity (11), item bar code(11) and price(11). I have to ignore the header first 5 lines and last footer 1 line... please let me know how to do this in FCC....
    *HEADER* Houston Billing Asst - SAP MDS Charges Invoice File
    *HEADER* Run date :20100106 124500 Raymond, Dahlman
    *HEADER* Invoice date : 20100115
    *HEADER* Field layout (fixed width): Client barcode 1-11, quantity 12-22, item barcode 23-33, price 34-44
    *HEADER* All prices in USD
    401721              75ATP003             125
    401721              82ATP001             125
    14823               95ATP003             125
    *FOOTER* Data Rows: 247

  • File content conversion: nodes have multiple occurence and is jumbled

    Hi,
    Here is one structure used in file content conversion.
    Header
    Dataline1
    Dataline1
    Dataline1
    Dataline2
    Dataline2
    Dataline2
    Header, Dataline1 and Dataline2 are nodes containing more than one fileds.
    We have mentioned 'fieldSeparator', 'EndSeparator' and 'keyFieldValue' for each of the nodes Header, Dataline1 and Dataline2 .
    Now the requirement has changed and the source file structure is as given below.
    Header
    Dataline1
    Dataline2
    Dataline1
    Dataline2
    Dataline1
    Dataline2
    Now with the same communication channel, the content conversion picks up only the first occurence of Dataline1, Dataline2 ie only this much
    (Header
    Dataline1
    Dataline2)
    is being picked or read.
    The other occurences are lost, even though logically it should pick all of them, since 'keyFieldValue' is specified for each node..
    Should I give any extra parameters in the communication channel for file content conversion.? or else what is the best way to proceed

    Hi John !
    Have you checked the recordset structure in the file content conversion parameters?? like "Header,1,Dataline1,,Dataline2, " to specifiy that it should be 1 header structure, N dataline1 and N dataline2 ??
    Regards,
    Matias.

  • DMEE issue in header and detail record

    Hi Gurs,
    I am working in DMME payment medium .
    I have declared DMEE  header structure(00000001000001 ) as level 1 and detail (050000010020192             XX110000001) as also level 1.
    This is the output format i am getting.
    00000001000001                                                                               
    05000001002000             XX110000001                                                                               
    00000001000001                                                                               
    05000001002012            XX110000002                                                                               
    00000001000001                                                                               
    05000001002012             XX110000003                                                                00000001000001                                                                               
    05000001002011             XX110000004           
    But my requirment not lke this. i need to dispaly all detail items under one header also i need to increase the counter for every items starting from 2.
    Both header and detail are at  level 1.If i declared the detail as level 2 the output is not generated.
    This is what i need.                                                                               
    00000001000001                                                                               
    05000002002000             XXX110000001                                                        
    05000003002012             XXX110000002
    05000004002012             XXX110000003
    05000005002011             XXX110000004 
    Pls suggest me any solutions
    Thanks .

    NOT answered

  • DMEE Issues header and detail record

    Hi Gurs,
    I am working in DMME(PAYM) payment medium .
    I have declared DMEE header structure(00000001000001 ) as level 1 and detail (050000010020192 XX110000001) as also level 1.
    This is the output format i am getting.
    00000001000001
    05000001002000 XX110000001
    00000001000001
    05000001002012 XX110000002
    00000001000001
    05000001002012 XX110000003 00000001000001
    05000001002011 XX110000004
    But my requirment not lke this. i need to dispaly all detail items under one header also i need to increase the counter for every items starting from 2.
    Both header and detail are at level 1.If i declared the detail as level 2 the output is not generated.
    This is what i need.
    00000001000001
    05000002002000 XXX110000001
    05000003002012 XXX110000002
    05000004002012 XXX110000003
    05000005002011 XXX110000004
    Pls suggest me any solutions
    Thanks .
    Edited by: bala chandran on Oct 9, 2009 10:57 AM

    NOT answered

  • File Content Conversion - Sender File Adapter - Record Delimeter ~

    The inbound file has file has ~ as record delimeter. I am using the FCC at sender file adapter to covert this file into XML. Somehow, the file adapter is not able to interpret "~" as my record delimeter even thoough I specified "record.endSeparator = ~" in FCC.
    Would someone help me with a solution?

    Raju,
    You can also try to use the '0x7E' as endSeperator condition.
    I am not sure if the HTML tag will work but this should do the trick. This should be the HEX corresponding entry
    char       description        hex               char code       html
    " ~ "         "Tilde"               "0x7e"         "~"                      &!tilde; (without !)
    greets.
    in adition to this see SAP help
    http://help.sap.com/saphelp_nwpi71/helpdata/en/44/655453b48a4ddfe10000000a1553f7/frameset.htm
    Special Characters in Strings for Separators
    In all strings for separators (NameA.fieldSeparator, NameA.beginSeparator, NameA.endSeparator), you can specify non-printable ASCII characters. These characters can each be inserted individually in the strings in the form ´0xHH´ (including the quotation marks), where HH represents the character encoded as a hexadecimal value.
    Please also ensure that the "recordSet Structure" also need to be configured Correctly
    for example:
    Header,1,Detail,*
    Header.fieldSeperator  --> %parameter%
    Detail.fieldSeperator --> %parameter%
    Detail.endSeparator --> '0x7e'
    Greets

  • File Content Conversion Sender. Enclosured info

    Hi experts,
    I have to read a plain file like this:
    x
    x
    x
    x
    x
    <START-OF-FILE>
    a;b;c;d;
    a;b;c;d;
    a;b;c;d;
    <END-OF-FILE>
    x
    x
    x
    x
    x
    Where 'x' means unuseful and unformatted lines, and 'a','b','c','d' are the fields to be parsed to xml.
    I wonder whether there is a way, using FCC in the file sender adapter, to gather only the lines enclosured between '<START-OF-FILE>' and '<END-OF-FILE>'. There is no key field I can use.
    Many thanks in advance,
    Paco

    Hi Francisco,
    I think u need to write a UDF to achieve the requirement.
    And, I think there is a possibility to do it using content conversion.
    Use set NameA.fieldFixedLengths for the unused data in the file.
    use NameA.fieldContentFormatting - Enter trim to remove all the leading and subsequent blanks for a value found. This is the default.
    If there is any field length restriction use NameA.fieldFixedLengths.
    NameA.fieldSeparator & NameA.endSeparator shoulf be used.
    NameA.additionalLastFields
    If the inbound structure has more fields than specified in the configuration then the XML outbound structure is created as follows:
    ○       ignore
    Outbound structure only contains the fields in the inbound structure
    ○       error
    Conversion is terminated due to the incomplete inbound structure. An error message is displayed.
    The default value is ignore. If you have defined the NameA.fieldFixedLengths parameter, the default value is error.
    I hope this info will help you.
    Refer the below link:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    Regards,

  • File Content Conversion : Sender Channel

    Hi
      I am trying to do content conversion in the Sender Channel from a flat file to a XML.
    My Target XML(message structure) looks like
    <H1>
      <H2>
          <D>Detail Record</D>
          <L1>line</L1>
          <L1>line</L1>
      </H2>
      <H2>
          <D>Detail Record</D>
          <L1>line</L1>
          <L1>line</L1>
      </H2>
    </H1>
    Here the element <H2> is only needed to group <D> and the following <L1> elements of each new occurrence of <D>.
    Now my problem is that the element <H2> is not getting created.
    and the message after content conversion is looking as follows
    <H1>
          <D>Detail Record</D>
          <L1>line</L1>
          <L1>line</L1>
          <D>Detail Record</D>
          <L1>line</L1>
          <L1>line</L1>
    </H1>        
    What should I do to get the desired result.

    @Yes Bhavesh you  are right.
    Hi Jai,
           I am trying the other way round.i.e from flat file to a XML message.As I said I was trying to do it for Sender Channel where is the after content conversion I want a XML file.The example is a what I framed out of my actual problem.
    if flat file is as follows ,
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    DetailRecord1
    Line1
    Line2
    Line3
    DetailRecord2
    Line4
    Line5
    then the XML must look like
    <H1>
    <H2>
    <D>DetailRecord1</D>
    <L1>Line1</L1>
    <L1>Line2</L1>
    <L1>Line3</L1>
    </H2>
    <H2>
    <D>DetailRecord2</D>
    <L1>Line4</L1>
    <L1>Line5</L1>
    </H2>
    </H1>
    I identify the different types records in the flat file
    as follows,
    Record starting with "Detail" is considered as <D> element
    Record starting with "Line"  is considered as <L> element.
    Hope I did clarify.

  • Strange Problem with File Content Conversion (Sender)

    Hi,
    I have a strange problem. I have a sender file adapter with content conversion (csv -> xml). The adapter produces the following error during the processing...
    - 2006-02-06 16:34:00 CET: Error: Conversion of part of file content of 'OE_Extractor_47_ISW112_SC-Ireland.csv' to XML format failed around position 1202: IOException: Stream closed
    After the 4th or 5th try the adapter processes the file correctly.
    Why does it works after several tries and not at the first time? (The file is not changed during the adapter is trying to convert it)
    Thanks
    Thomas

    I found the problem, something was wrong with the ftp server

  • .csv file Vs .txt file Content conversion sender file channel

    Hi Experts,
                     I have a file with filename say input.csv.I want to do content conversion for these .CSV file.Is it same like we have to do for .txt file say input.txt.
    when i open my .csv file in notepad, i get multiple rows with each field separated by ';'.what are the content conversion parameters we have to define for .csv file and can we mention input.csv as the file name as a source file name.
    Thanks
    Deepak

    Hi,
    Use the following parameters for Sender file channel in case of reading .csv file
    Recordset Structure.fieldSeparator -
    Recordset Structure.endSeparator -
    'nl'
    Recordset Structure.fieldNames -
    provide field names separated with ,
    Regards
    Seshagiri

  • XI 3.0 File Adapter: Converting File Content in Sender Adapter

    Hi,
    This is probably a basic question but does anyone have an example of the parameters used when you are using the 'Converting File Content' option on the File Adapter ?
    Also, where do the record sets have to be defined ? Are these data types in the Integration Builder ?
    The documentation is to say the least a bit flaky.
    Any help would be appreciated.
    Kind regards
    Colin.

    Hello,
    I'm wondering if someone has experience setting up conversion for different record structures. The example shown (in a greate way) only picture one kind of structure.
    How should it be done if the file would contain
    10Mat1
    20100PCS
    The first record structure has columns
    ID(2),Material(10)
    The second redcord structure has columns
    ID(2),Quantity(3), Unit of messure (3)
    Brgds
    Kalle

  • File Content Conversion (Sender) endSeparator Problem

    Hi
    i have a flat file like this:
    fieldA;fieldB;fieldC;fieldA;fieldB;fieldC;fieldA ...
    recordset structure: FIELDS,1
    recordset per msg: *
    parameters:
    FIELDS.fieldNames = fieldA,fieldB,fieldC
    FIELDS.fieldSeparator = ;
    FIELDS.endSeparator = ;
    if i change the endSeparator to 'nl' and then changeing the input file to this:
    fieldA;fieldB;fieldC
    fieldA;fieldB;fieldC
    fieldA ...
    it works. i already tried to use another endSeparator like this:
    fieldA;fieldB;fieldC:fieldA;fieldB;fieldC:fieldA ...
    but it doesn't work. it seems like the adapter is only using 'nl' endSeparator, no matter whats the parameters say.
    the error in adapter monitoring:
    Error: Conversion of complete file content to XML format failed around position 0 with java.lang.Exception: ERROR converting document line no. 1 according to structure 'FIELDS':java.lang.Exception: ERROR in configuration: more elements in file csv structure than field names specified!
    i already tried to use hex separators and found the following thread (best matching tread):
    anyone has an idea? Thanks a lot.
    Regards
    J.
    Message was edited by: Jörg Pieper
    Message was edited by: Jörg Pieper

    Hi
    this doesn't work
    Regards
    J.

Maybe you are looking for