File Content Conversion (FCC ) to IDoc Scenario

Hi All,
I have a Flat File to Idoc Scenario. Sample flat file looks as shown below.
A|20101001150207|SAPQMP|31|
B|5998|400858|2|N|20012010|MRGB0309S0030|
C|T0025|M0331||0.884||Inspection|1|No|Y||
C|T0001|M1556||Clear & bright ||QC|1|No|Y|Text|
C|T0050|M0341|6.0|6.5|7.0|QC|1|No|Y|Number|
C|T0010|M0360|0.279|0.341|QC|1|No|Y|Number|
C|T0062|M0360|0.112|0.137|QC|1|No|Y|Number|
C|T0056|M0373|7000|QC|1|No|Y|Number|
C|T0042|M0422|||-25|First Prod|1|No|N||
B|5998|400859|4|N|20012010|MRGB0309S0065|
C|T0025|M0331||0.896||Inspection|1|No|Y||
C|T0001|M1556||Clear & bright ||QC|1|No|Y|Text|
C|T0050|M0341|10.6|11.0|12.0|QC|1|No|Y|Number|
C|T0042|M0422|||-25|QC|1|No|Y||
C|T0010|M0360|0.279|0.341|QC|1|No|Y|Number|
B|5998|400859|4|N|20012010|MRGB0309S0065|
C|T0025|M0331||0.896||Inspection|1|No|Y||
C|T0001|M1556||Clear & bright ||QC|1|No|Y|Text|
C|T0050|M0341|10.6|11.0|12.0|QC|1|No|Y|Number|
Z|20101001150242|SAPQMP|31|
where Records A indicate File Header,  Z indicates File Trailer
Recodrs B indicateds Material header and Would be repeating multiple times
No. of B Records = No. of Idocs generated with corresponding C records data which indicates Component Rows (multiple)
i.e as many B records file contains, that many Idoc will be created
For Mapping I require B and C Records. Field Separator is Pipe | symbol
I need to Ignore A B C Z  
How to define the source structure and the respective FCC Parameters.
Regads,
Varun

Hi,
For Mapping I require B and C Records. Field Separator is Pipe | symbol
I need to Ignore A B C Z
two statements are ambiguous.
I assume u want only B and C records.
Since the structure is little complex, u can gat the whole record as a single element into Mapping and then u can take only those u want to access and map.
MT_Name
        Records
             Data(0..unbounded)
Now in Data u have all the records.
If you dont want at all these A and Z records to come to mapping(IE) then u need to go for a small adapter module.
Deploy it and use in the modules sequence...
Babu

Similar Messages

  • Limitations of File Content Conversion (FCC)

    Hi
    I want to know the Limitations of File Content Conversion (FCC) while defining for a particular structure.
    I was bit confused from the [SAP Help |http://help.sap.com/saphelp_nw2004s/helpdata/EN/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm]
    It says "There can be a fixed or variable number of substructures in a recordset." but from sdn i found
    [Content Conversion in File Adapter   |Content Conversion in File Adapter]
    It will support "A maximum of 3 hierarchy level will be supported in FCC"
    Is <recordset> Mandatetory in for FCC, what if we dont have <recordset> in the structure.
    Till what hierarchy level it supports
    what is the limitation of FCC
    Regards,
    Varun
    Edited by: Varun Reddy on Feb 26, 2009 4:52 PM

    Varun,
    Both statements are true:
    Consider, for instance, a file containing orders. You could have:
    HEADER;123;456;11112 (containing sender 123, receiver 456, order number 11112)
    PARTNER;OR;234 (containing the ordering partner number 234)
    PARTNER;DL;235 (containing the delivery address 235)
    DATE;OR;20090226 (containing the order date 26/02/2009)
    DATE;DL;20090228 (containing the delivery date 28/02/2009)
    LINE;9998;12 (article number 9998, quantity 12)
    LINE;9996;25 (article number 9996, quantity 25)
    LINE;9991;3 (article number 9991, quantity 3)
    HEADER;123;456;11113 (2nd order containing sender 123, receiver 456, order number 11113)
    PARTNER;OR;234 (containing the ordering partner number 234)
    PARTNER;DL;237 (containing the delivery address 237)
    DATE;OR;20090226 (containing the order date 26/02/2009)
    DATE;DL;20090301 (containing the delivery date 01/03/2009)
    LINE;9998;4 (article number 9998, quantity 4)
    Parsing such a file with FCC would be possible, provided there's an identifier that indicates the type of line (like 'HEADER', 'PARTNER', etc). This is an example of There can be a variable number of substructures in a recordset.
    If the records do not contain an identifier from which you can see the line type, FCC can only parse this if the order of the various structure types is fixed, so that it can determine from the line number what type of record this is. This would be an example of There can be a fixed number of substructures in a recordset.
    Now, about A maximum of 3 hierachy level will be supported in FCC. In the FCC, there are three levels: the recordset (one order in the above example), the record (a line in the file) and the field (the order number, for instance). The FCC does not support files with deeper nesting. For instance, if a line item in your flat file could also contain a delivery date, FCC does not support this.
    Hope this helps,
    Koen

  • 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

  • Doubt regarding Recever file adapter file content conversion (FCC)

    Hi Expetrts, below is the my target structure.
    <?xml version="1.0" encoding="TF-8"?>
    <ns1:MT_StatusChange xmlns:ns1="urn:passhe.com/ChangeOfStatusISA26">
         <IV_ST_OBJID>65390091</IV_ST_OBJID>
         <IV_BEGDA>25082008</IV_BEGDA>
         <LT_STUDENT_STATUS>
               <item>
              <HS_CAMPUS>65</HS_CAMPUS>
              <STOBJID>65390091</STOBJID>
              <STUDENT12>michal</STUDENT12>
              <HS_STATUS>MISC</HS_STATUS>
               <item>
            <LT_STUDENT_STATUS>
    </ns1:MT_StatusChange>
    How to configure in File Content Conversion Recever File Adapter for above target structure. i have done as below, but i am getting error.  please correct me where i did mistake.
    Recordset Structure : IV_ST_OBJID,IV_BEGDA,LT_STUDENT_STATUS,item
    IV_ST_OBJID.fieldNames : IV_ST_OBJID  -> for this field there is no subfield
    IV_ST_OBJID.fieldSeparator: , (comma)
    IV_BEGDA.fieldNames : IV_BEGDA -> for this field there is no subfield
    IV_BEGDA.fieldSeparator: , (comma)
    LT_STUDENT_STATUS.fieldNames  : HS_CAMPUS,STOBJID,STUDENT12,HS_STATUS
    LT_STUDENT_STATUS.fieldSeparator: 'nl'
    item.fieldNames  : HS_CAMPUS,STOBJID,STUDENT12,HS_STATUS
    item.fieldSeparator: , (comma)
    I am getting below error:
    'Conversion configuration error: Unknown structure 'ns1:MT_StatusChange' found in document', probably configuration error in file adapter (XML parser error)'
    Thanks
    Dhanush.

    Hi Dhanush,
                        It is better always if u have a structure with Header and trailers if u have a subsrtuctures in it & always try make it in this format:
    <?xml version="1.0" encoding="UTF-8"?>
    <MT_ContentConversion_Test>
       <Header>
          <F1>HF1</F1>
          <F2>HF2</F2>
       </Header>
       <Item>
          <F1>IF1</F1>
          <F2>IF2</F2>
       <Item>
       <Trailer>
          <F1>TF1</F1>
          <F2>TF2</F2>
       </Trailer>
    </ns0:MT_ContentConversion_Test>
    Try to go through this blog it will be very helpful to u :
    /people/shabarish.vijayakumar/blog/2007/08/03/file-adapter-receiver--are-we-really-sure-about-the-concepts
    Regards,
    Vinod.

  • Receiver - File Content Conversion(FCC)

    Hi,
    I am facing problem which creating file in destination FTP server with FCC.
    Message Type - MT_GCPO
    DATA Type  - DT_GCPO
    Substructures in data type -DT_GCPO are 
    FILE_HDR, -> 1
    ORD_HDR, ->1
    SHIP_TO_RCD, ->1
    CARD_DETAIL_RCD -> 0 - unbounded
    MSG_RCD, -> 0 - unbounded
    ORDER_TRL_RCD, -> 1
    FILE_TRL_RCD -> 1
    In Receiver channel, metioned details as
    Record Set Structure - FILE_HDR,ORD_HDR,SHIP_TO_RCD,CARD_DETAIL_RCD,MSG_RCD,ORDER_TRL_RCD,FILE_TRL_RCD
    FILE_HDR.fieldFixedLengths     1,10,10,10,8,6,8,3
    FILE_HDR.endSeparator     'nl'
    ORD_HDR.fieldFixedLengths     1,15,10,8,6,1,3,11,3,2,8,25,7,3,8,80
    ORD_HDR.endSeparator     'nl'
    SHIP_TO_RCD.fieldFixedLengths     1,15,20,10,1,32,32,32,20,2,9,15,10
    SHIP_TO_RCD.endSepartor     'nl'
    CARD_DETAIL_RCD.fieldFixedLengths     1,15,2,10,1,10,11,6,8,5,8,2,19
    CARD_DETAIL_RCD.endSeparator     'nl'
    MSG_RCD.fieldFixedLengths     1,15,2,30,30,30,5,70
    MSG_RCD.endSeparator     'nl'
    ORDER_TRL_RCD.fieldFixedLengths     1,15,2,2,2,2
    ORDER_TRL_RCD.endSeparator     'nl'
    FILE_TRL_RCD.fieldFixedLengths     1,8
    FILE_TRL_RCD.endSeparator     'nl'
    Error message - "File Adapter Receiver Channel CC_GC_PO: Not initialized - cannot proceed: nullI checked Communication Channel and it is in active status.
    Adapter Framework caught exception: Channel has not been correctly initialized and cannot process messages"
    Not sure how to proceed further ? Please shred some light on this.
    Appreciate your help.
    Thanks,
    Krishna

    Hi,
    I got an error message like this "Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error occurred while connecting to the FTP server "ftp.bostonapparel.com:21": java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Column value '25P' too long (>1 for 5. column) - must stop', probably configuration error in file adapter (XML parser error)"
    I checked all parameters
    FILE_HDR.fieldFixedLengths     1,10,10,10,8,6,8,3
    FILE_HDR.endSeparator     'nl'
    ORD_HDR.fieldFixedLengths     1,15,10,8,6,1,3,11,3,2,8,25,7,3,8,80
    ORD_HDR.endSeparator     'nl'
    SHIP_TO_RCD.fieldFixedLengths     1,15,20,10,1,32,32,32,20,2,9,15,10
    SHIP_TO_RCD.endSepartor     'nl'
    CARD_DETAIL_RCD.fieldFixedLengths     1,15,2,10,1,10,11,6,8,5,8,2,19
    CARD_DETAIL_RCD.endSeparator     'nl'
    MSG_RCD.fieldFixedLengths     1,15,2,30,30,30,5,70
    MSG_RCD.endSeparator     'nl'
    ORDER_TRL_RCD.fieldFixedLengths     1,15,2,2,2,2
    ORDER_TRL_RCD.endSeparator     'nl'
    FILE_TRL_RCD.fieldFixedLengths     1,8
    FILE_TRL_RCD.endSeparator     'nl'

  • File content conversion:move files to a new directory

    hi all,
              I have a file content conversion sender and receiver scenario.Now my doubt is: XI is running on sap27 server.Input file is being created by an ABAP program in r/3 and file being put in sap29 server.
    In source directory if i am giving the sap29 path it is not working.Is there any way that i can write a OS command to move files from 29 to 27 before message processing ??
    Any other option available??
    thanks,
    Nisheeta

    hi,
          Yes the basis people have shared the folder and they have mapped the sap29 folder into sap27 using I:\ drive
    But the files are not getting picked....am i giving the source directory wrong??
    I am giving I:\Folder_Name
    suggestions needed
    thanks,
    Nisheeta

  • IDOC to File - File Content Conversion Problem

    Hi,
    The scenario is IDOC to File. I am using file content conversion for my receiver adapter.  The receiver adapter parks the file in the receiver system but the file has no data.  In SXMB_MONI on checking the payload at every step, the data is transformed successfully.  I am able to see the data at the receiver payload but the file in the receiver system has got no data.
    I have used all possible parameters in the receiver adapter:-
    Recordset.fieldFixedLengths   1,1,1
    Recordset.endSeparator        'nl'
    Recordset.fieldNames          rec_type,action,del_in
    Recordset.fixedFieldType      char
    Kindly advice if some more parameters need to be added.
    Thanks in advance.
    Krishna

    Hi,
    if you're using stnadard SAP idoc
    you can try using the same approach as specified
    in this doc (but with module IDOC to XML insdead of XML to IDOC)
    https://websmp203.sap-ag.de/~sapdownload/011000358700001795162005E/HowToIDocXMLToFlat.pdf
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • File Content conversion - IDOC to Fixed length File

    Hi,
    Scenario : SAP R/3(IDOC) -> XI -> Fixed Length file
    IDOC is sending from SAP R/3, XI has to do the mapping and send a Fixed length File to /tmp in XI.
    When I am using the message Protocol as "File" in the Receiver communication channel, XML file is writing to /tmp. When I am using "File Content Conversion" as a message protocol,Empty File is writing. Can anybody tell me why empty file is creating. Can we use File content Conversion in this scenario. Is there any additional parameter or settings required?
    Receiver communication channel settings:
    Message Protocol: File Content Conversion
    File type       : Binary
    Recordstructure : MT_V_PER01
    Name                             Value
    MT_V_PER01.fieldFixedLengths     25,35
    MT_V_PER01.fieldNames            PERSNR,NAME
    File Data Type : DT_V_PER01,
    Message type   : MT_V_PER01
    IDOC type      : WP_PER01.
    Expecting your expert advice.
    Thanks
    vineesh

    Hi Moorthy,
    I am getting success messages in Audit log as below:
    2006-09-29 12:08:53 Success Trying to put the message into the send queue.
    2006-09-29 12:08:53 Success Message successfully put into the queue.
    2006-09-29 12:08:53 Success The message was successfully retrieved from the send queue.
    2006-09-29 12:08:53 Success The message status set to DLNG.
    2006-09-29 12:08:53 Success The message was successfully transmitted to endpoint http://nslcxi08:8010/sap/xi/engine?type=entry using connection AFW.
    2006-09-29 12:08:53 Success The message status set to DLVD.
    2006-09-29 12:08:53 Success The message was successfully delivered.
    I have checked the Payload maindocument,the IDOC structure contains data.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <WP_PER01>
    - <IDOC BEGIN="1">
    - <EDI_DC40 SEGMENT="1">
      <IDOCTYP>WP_PER01</IDOCTYP>
      <MESTYP>WP_PER</MESTYP>
      <STDMES>WP_PER</STDMES>
      <SNDPOR>SAPLCD</SNDPOR>
      <SNDPRT>LS</SNDPRT>
      <SNDPRN>LCDCLNT210</SNDPRN>
      <RCVPOR>LXDCLNT250</RCVPOR>
      <RCVPRT>LS</RCVPRT>
      <RCVPRN>LXDCLNT250</RCVPRN>
      </EDI_DC40>
    - <E1WPP01 SEGMENT="1">
      <PERSNR>0000100006</PERSNR>
    - <E1WPP02 SEGMENT="1">
      <NAME>Consumer</NAME>
      </E1WPP02>
      </E1WPP01>
      </IDOC>
      </WP_PER01>
    Thanks
    Vineesh

  • File to File scenario, file content conversion

    HI there,
    I am facing this scenario, flat file -> XI -> flat file. Files are fixed length ones and .txt.
    the structure of the incoming file is something like:
    field1field2field3field4
    field1field2field3field4field5
    That means that there is no separation between fields (neither comma nor space) and there are optional fields that may appear or not.
    My aim is to transform this file into another file, XI will do some maps with some fields but the rest will be the same (same fieldnames and same field lengths). So, the outcoming file should be similar as the incoming one:
    field1field2field3field4(transformed)
    field1field2field3field4field5
    These are my FCC parameters (i think i have to use FCC):
    Row.fieldNames= field1,field2,field3....
    Row.fieldFixedLengths=1,3,4....
    Row.processConfiguration=FromConfiguration
    Row.endSeparator='nl'
    ...and my data type structure:
    DT_XX
      Record
         Row
           field1
           field2
    Here are my questions:
    I have configurated the file content conversion in sender and receiver adapter, are they both necessary or should i only configurate the sender??
    How can i manage the fields that are not mandatory?
    What should be the transfer mode, binary or text?
    I am a new come in development so, could anyone of you please give some support??
    Thanks in advance and kind regards,
    David

    Hi David,
    I have configurated the file content conversion in sender and receiver adapter, are they both necessary or should i only configurate the sender??
    YES.
    Suppose you only confgure it for sender  then the target file that is generated will be in XML format.
    How can i manage the fields that are not mandatory?
    If the inbound structure has less fields than specified in the configuration then the XML outbound structure the you can set
    Row.missingLastfields = ignore / add / error
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    What should be the transfer mode, binary or text?
    If it is a txt file then text and set code page as UTF-8else binary.
    <b>Cheers,
    *RAJ*</b>

  • Idoc 2 file - file content conversion in receiver

    Hi,
    My scenario is idoc to file.
    if i want to use file content conversion at receiver side,
    so i need to create record set according to sender side data type or receiver data type?
    plz give some inputs reg. this.
    Thanks

    Hi,
    There is problem while refreshing in sap xi also.
    when i pass new parameter like 7 in my recordset structure,
    it is immediately reflecting in CC monitoring.
    error it is showing that '7'.
    but if i remove that in record set structure
    (after activating that in ID)
    even though
    if i stop and start my CC manually also,
    still it is showing that error in CC monitoring
    like '7'
    basic concept of this file content conversion is
    I have to keep at least field separator (ie 'nl' )for outer most node element ie Customer_copy and record set stru. as Customer_copy
    is it right?
    I tried my own way...still it is giving that error.
    what could my fieldSeparator, endSeparator, for ur last case plz tell me?
    Edited by: ruban R on Apr 22, 2008 3:01 AM

  • FCC (File Content conversion)-In sender

    Hi All,
    Using FCC in sender i need to convert text to xml.Such that my text file format is
    Line1
    Line2
    Line3
    All the three lines is having some data..My source data type structure is
    DT_Emp
    >Emp_Info
       >Header
          ID----
    (0..1)
       >Details
           Line----
    (0..unbounded)
    Now i need to get data from text file into only line element..My ID element should be blank..XML should have ID element but it should not be populated from input file.How to get this using FCC..Is there any parameters for this?
    Can anyone give some useful ideas
    Regards
    Venkat

    HI,
    For  FCC Check this links.
    File content conversion sites
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards,
    phani

  • IDOC to flat File----Problem in File Content Conversion at receiver

    hi experts,
    I am doing a IDOC to flat file secnario.
    My requirment is IDOCXI-Flat file
    Format of flat file is like:--
    Every segment in the IDOC will be converted into a single line of file(without any delimiter). So number of lines in flat file will be equal to number of segments in IDOC.
    I am facing problem in File Content conversion. 
    Please help me out..
    Thanks
    Jaideep

    Check this doc...
    [How To...Convert an IDoc-XML structure to a flat file and vice versa in XI 3.0 |https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a]

  • Problem in file content conversion, file 2 xml scenario

    Hi,
    Could some one help me in finding out the error in my file to xml scenario, please do consider the following things what I did for this scenario.
    1.My sender file structure is flat file with , seperated 4 fields. On receiver end expecting xml file.
    2.Did file content conversion at sender file adapter and given parameters as follows.
         Document name             : MT_FileInput
         DocumentnameSpace     : http://file/praveenworkshop
         Recordset Name             : DT_Record
         Recordset Structure        : DT_Row,*
         KeyfieldType                   : String( default)
        DT_Row.fieldnames          : FirstName,LastName,City,PostCode
        DT_Row.fieldSeparator      : ,
        DT_Row.processConfiguration: FromConfiguration
        Dt_Row.endSeparator       : 'nl'
    3. I did check in Adapter Monitor that Both Sender and receiver adapter are showing green and It was showing  'Adapter is up and running: But no messages processed'
    4. I did check the SXMB_MONI which was showing " Scheduled for Outbound processing"
    5. In SXMB_MONI outbound processing payload was picking up the file and also inbound processing showing the same.
    6. my source folder and destination folder are very simple c:/praveenfiles/input and c:/praveenfiles/output
        files are source file praveen.txt and destination file praveenOP.xml
    Please help me in finding out the error to see the output file in my output folder.

    Hi Praveen,
    Hope these bloga are useful to you..
    File content conversion sites
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Thanks,
    Satya

  • File content conversion scenario-empty file

    Hi all,
    I am doing file content conversion for my sender flat file. And I want to generate XML file in my receiver location.When I check with test tab in my message map in IR , no structure gets generated in RESULT.Overalls cenario is working fine and message is processed successfully but empty file is getting generated in target directory.When I check the payload in message content in RWB communication channel monitoring,it's picking data correctly from the file.I am not getting what might have gone wrong with my message mapping in IR. It's not showing any syntax error.Even it's not generating target message structure in Results window of test Messsage mapping.Could you suggest what mistake might be there in message mapping.

    Hi all,
       I am getting this message in message monitor(SXMB_MONI).
    com.sap.aii.utilxi.misc.api.BaseRuntimeException
    thrown during application mapping
    com/sap/xi/tf/_MM_Flat_content_conv_:
    RuntimeException in Message-Mapping transformatio~
    I am able to see the output structure in test window of message mapping in IR and communication channel monitoring is also showing successful message.
    fcc parameters used are:
    Header.fieldNames KEY,EMPID,NAME,COMPANY,PHONE
    Header.fieldFixedLengths 1,4,20,15,12
    Header.processConfiguration FromConfiguratiion
    Header.keyFieldValue H
    Detail.fieldNames KEY,COMPANY,LOCATION
    Detail.fieldFixedLengths 1,15,10
    Detail.processConfiguration FromConfiguratiion
    Detail.keyFieldValue D
    Please suggest the mistake in mapping
    Edited by: Jaya on Mar 3, 2010 12:45 PM
    Edited by: Jaya on Mar 3, 2010 12:47 PM

  • 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

Maybe you are looking for