File to FCC

Hello Experts,
             Iam working on file to file Fcc Scenario using this i want to send 20 records at a time from source to Target. I tried to send 2 records iam able to send for more than this iam not able to send that i have no idea on this.
  Please help on this.
Thanks & Regards,
Raj

My problem is i want to send 20 records and more than that
ie fields are name,place,state,country(data types) . In these fields i want to send by giving 20 names at a time and send to the target side.

Similar Messages

  • Sender File Adapter FCC to Hierarchial MT Coversion

    Hi,
       I have MT with structure as follows
    Header               1..1
        F1          string  1..1
        F2          string  1..1
        SUB              1 to unbounded
           S11       string  1..1
           S12       string  1..1
    Can you anybody help me out how to convert the a CSV file to Convert the structure mentioned above using sender File Adapter FCC.
    Regards,
    Daniel.LA

    Hi,
    There is no suc h direct way to get the data from csv fiel with conversion.
    Either you can use JAVA Mapping for it or use the adapter module to read csv files.
    How to process CSV data with XI file adapter
    /people/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter
    "JAVA MAPPING", an alternate way of reading a CSV file
    /people/rahul.nawale2/blog/2006/07/18/java-mapping-an-alternate-way-of-reading-a-csv-file
    There is one way that you could bypass IR (Integration Repository) for any type of files, see below link
    /people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository
    Making CSV File Lookup Possible In SAP XI !!!
    /people/sundararamaprasad.subbaraman/blog/2005/12/09/making-csv-file-lookup-possible-in-sap-xi
    This will help you
    Thanks
    Swarup

  • How do i extract Delimited falt file-Sender File adapter FCC Parameters

    Hello,
    I'm trying to extract data from a flat file. The file is built as tab delimited. I cant find the option of tab delimited in the XI Sender File adapter FCC Parameters. How do i extract tab delimited file?
    Please Advice,
    Rajesh

    HI,
    You can use Fieldseperator as '0X09'...
    Look at this blog...........you can solve this problem...
    NAB the TAB (File Adapter)                              
    Thanks,
    Madhu
    Edited by: Madhu sudhan Reddy on Jul 28, 2008 9:02 AM

  • File Sender FCC doesn't allow repetitive segments and unbounded together

    File Sender FCC give me error if I use the repeatitive structure and * (Unbounded) together. Here is the recordset  structure  UNH,1,BGM,1,DTM,1,NAD,1,CNI,1,STS,1,RFF,*,DTM,1 for which I am getting the error "Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR consistency check in recordset structure validation (line no. 12: missing structure(s) before type 'DTM' "
    If I use the recordset structure UNH,1,BGM,1,DTM,1,NAD,1,CNI,1,STS,1,RFF,2,DTM,1 then I am able to parse the file. But My requirement is that I will expect variable no of RFF segments in my structure. If you guys could help me that would be great.

    Hi Mohammad
    In this case try to maintain the following in content conversion parameters.
    Key Field Name = Key
    <xml>.fieldFixedLengths      = 1,......................
    <xml>.fieldNames                 = Key,.................
    <xml>.keyFieldValue            = 1
    <xml>.keyFieldInStructure    = ignore
    <xml>.endSeparator            = ,
    Think this should solve your problem.
    Refer the following SAP help link :-
    [http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm]
    -Thanks
      Karthik

  • Error in File To Fcc Scenario

    Hi All,
    i done File to Fcc scenario,
    my scenario is successful, i got black and white flag in moni and in communicaion channel monitoring no error is displayed in trace.
    but in my output file olny first field of a record is getting displayed.
    my receiver file Fcc parameters are
    DATA.fieldFixedLengths 
    4,2,10,10,10,10,10,10,10,10,10,10
    DATA.fieldNames
    FIELD1,FIELD2,FIELD3,FIELD4,FIELD5,FIELD6,FIELD7,FIELD8,FIELD9,FIELD10.FIELD11,FIELD12
    DATA.endSeperator         'nl'
    need your sugessitions regarding this,
    regards,
    Ramesh B.

    Hi Santosh,
    thank u for reply,
    data.endSeparator = 'nl'  i already mention
    data.fieldSeparator = ,  hear i am not going for CSV file.so i think it is not necessary.
    and previously i done File to Fcc scenario with this three FCC  parameters
    fieldNames
    fieldLengths
    endSeparator
    with olny DATA as sub structure.
    and its work fine.
    Regards,
    Pradeep A.

  • Empty file handling in Receiver File adapter (FCC - Premature end of file)

    Hi
    My interface is Flat file to Flat File interface with file content conversion which is working fine in SAP PI 7.1 EHP1.
    If I want to process the empty file from sender system, PI should place the same empty file in the receiver FTP Location as per my requirement.
    I am facing the below error message when PI tries to place the empty file.
    Message processing failed. Cause: org.xml.sax.SAXParseException: Premature end of file.
    But if I am not using FCC, I am able to get the empty file at the receiver end.
    Please suggest on this, If I am using FCC in the receiver side.
    Thanks
    Gabriel

    Hi Gabriel,
                       You can write a simple script to copy a file from source folder to target in case the fiel size is ZERO bytes. The script will not copy the file if the filesize is more than zero bytes, This will be processed normally by PI server. You can call the script from sender communication channel parameter : "RUN OS command before message processing". Could you please specify the Operating System (OS) you are using in your PI server.
    Regards
    Anupam

  • RECEIVER FILE ADAPTER FCC ERROR

    Hi team
    My scenario is a text file has to be picked up by PI, has to processe it and the receiver is Proxy and it has to get updated and sent back to FTP location.
    i am using Sender File Adapter with FCC and Also receiver File Adapter with FCC.
    Both the sender and receiver structures are same; i am using the same FCC parameters for both the sides.
    in Receiver File Adapter i am getting the following errors
    1) Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found:
    Parameter '.fieldFixedLengths' or '.fieldSeparator' is missing
    2)Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found:
    Parameter '1.fieldFixedLengths' or '1.fieldSeparator' is missing
    please help me out
    thank you
    Edited by: vemugantivn on Aug 16, 2010 12:19 PM

    Hi,
    > 1) Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found:
    >  Parameter '.fieldFixedLengths' or '.fieldSeparator' is missing
    > 2)Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found:
    > Parameter '1.fieldFixedLengths' or '1.fieldSeparator' is missing
    It is saying that you are not using the fieldSeparator parqameter.
    have you provided the field separator parameter? if not then give like below
    order_row.fieldSeparator : ,  (give what ever the separater you are using)
    or 
    order_row.fieldSeparator : 10,5,...  (if you are using fixed length)
    Regards
    Ramesh

  • Sender File adapter FCC

    Hi
    I have an excel file which I save as a csv extension. If I use FCC in Sender File Adapter, I need to add a module in my communication channel. Can anyone provide me with that?
    Is this module generally deployed on XI server beforehand or do I have to write a java code and deploy it myself?
    I have already had a look at this blog
    /people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter
    Vaibhav

    You will have to create a module in this case.there is no standard module available for this fuctionality as of now.
    Ref: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c4c81 to help create a module.

  • Error in sending file using FCC

    Hi all,
    i am doing the file content conversion scenario from saptechnicalcom
    my message type is as follows:
    MT_File_Cont_Conv
         Record
            Emp_Header
              Key
              Emp_Id
              Emp_Name
    File is not picked up by the sender file adapter and in RWB communication channel monitoring i am getting the following error:
    Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Mandatory parameter 'Emp_Header.keyFieldValue': no value found
    anybody plz provide me some input to rectify this error
    regards
    sandeep sharma

    >
    sandeep sharma wrote:
    > hi
    > FCC parameters are as follows
    >
    > Document Name:                    MT_File_Cont_Conv
    > Recordset Name:                      Record
    > Recordset Structure:                   Emp_Header,1
    > Recordset sequence:                    Ascending
    > Recordset per message:                 1
    > Key Field Name:                         Key
    >
    >
    >
    >
    > Emp_Header.fieldFixedLengths                   1,6,10
    > Emp_Header.endSeparator          'nl'
    > Emp_Header.fieldNames          Key,Emp_Id,Emp_Name
    > Emp_Header.keyFieldValue                      1
    > Emp_Header.keyFieldInStructure                 ignore
    make sure there is no white space before or after
    Emp_Header.keyFieldValue and also the value 1
    Even a single whitespace can cause an issue

  • Sender File Adapter FCC Question

    Hello folks!!
    I am trying to configure a FCC for Sender file adapter and wanted to consider a Line feed Carriage return line which will look as below to be a empty tag in XML. After Line 4 there will be a blank line which identifies the start of next record.  I tried using Field.MissingLastFields , Field.endSeparator  etc.,  Perhaps I am not using the correct value. Any help appreciated.
    Line1
    Line2
    Line3
    Line4
    Line1
    The expected XML is as below:
    <Record>Line1</Record>
    <Record>Line2</Record>
    <Record>Line3</Record>
    <Record>Line4</Record>
    <Record></Record>
    <Record>Line1</Record>

    Hi Greg
    Thanks for your feedback. I tried and it didn't work. below is the FCC i have in sender adapter
    RecordSetName      =   RecordSet
    RecordSetStructure =    Dummy,*
    Dummy.fieldNames   =  Record
    Dummy.endSeparator = 'nl'
    Dummy.missingLastfields  = add
    Dummy.ignoreRecordsetName = true
    Dummy.fieldSeparator = 'nl'   and also I tried with Dummy.fieldFixedLengths = 255  .
    Still I don't get the empty tag for the blank line in the file, so my output is still same . Please note the blank line doesn't have a space so if I place the cursor and move to next in blank line it will go to next line ( Carriage return and line feed).
    Please suggest .

  • Sender File Adapter - FCC - No incoming field separator - How to do FCC?

    Hi,
    I have a sender File adapter and I need to do the File Content Conversion but there apparently no incoming field separator and the file ocntains just running text - no data records but just information.
    For example the incoming file is something like:
                                    The Hongkong and Shanghai Banking Corporation Limited                      27JAN2009       PAGE 1
                                    Incorporated in Hong Kong with limited liability
    ABC IAL LIMITED                                                               ABU DHABI, UAE
    ABC MIDDLE EAST                                                               Account No.     001-8888888
    ABU DHABI                                                                       Payment Set     AAA
    BBB MAIL BOX NO.99                                                             Contact Person  ABC LIMITED
                                                   7777777777                      Telephone
                                                     AUTOPAY LIST - PROCESSED
                                                     (AUTOPAY-OUT SALARY)
    Payment Date           27JAN2009
    First Party Narrative  .                             66666666
    Second Party Narrative .
    The Message type that I am mapping to contains:
    MT_XXXX
         WA
              Item
              Item2
              Item3
    This is so that the information can be mapped to different field areas and send across to the Receiver Mail Adapter. In the mail i receive, i get the running text. I tried giving the field separator as '0x09' but it is not working.
    I have also tried WA..fieldContentFormatting to nothing but again no luck.
    I have tried with Recordset Sequence with Ascending and variable and have also tried Recordsets per Message with * and blank - but it did not help.
    Please advice.
    Regards,
    Archana

    Hi,
    I assumed that it was tab but when I made the change in FCC, it did not work.
    I would still like to have a output where it looks like below if more than 2 types of information in 1 line as below:
    ABC IAL LIMITED                     ABU DHABI, UAE  
    ABC MIDDLE EAST                  Account No. 001-9999999999999  
    and not something like:
    ABC IAL LIMITED ABU DHABI, UAE   
    ABC MIDDLE EAST Account No. 001-999999999999
    I am not sure what to do here.
    Help please.
    Regards,
    Archana

  • Error in Receiver File adapter - FCC

    Got error message as "File Adapter Receiver Channel CC_OB_REQ: Not initialized - cannot proceed: null"
    My requirement is to send IDOC to file which consists of 4 fields, My target message interface is
    MT_REQ
      FILE_STRUC
        FILE_OP
           AAA (Field1)
            BBB(Field2)
           CCC(Field3)
           DDD(Field4)
    Output file should contain the above 4 fields with fixed lengths 20,1,1,2
    So I declared FCC in File Adapter  as
    I tried many options
    RecordSet Structure: MT_REQ,FILE_STRUC,FILE_OP
    FILE_STRUC.fieldSeparator - 'nl'
    FILE_OP.fixedFieldLengths - 20,1,1,2
    FILE_OP.fieldSeparator - 'nl'
    FILE_OP.endSeparator - 'nl'.
    Please let me know where is the problem?
    Thanks in advance,
    Krishna

    Hi Ramakrishana,
    In FCC fixed length file format when your XML payload is goes to Adaptor engine, it should contain all fields in XML. Otherwise its throw error in FCC channel. Please check receiver payload at SXMB_MONI or message monitoring of Run time work bench. In that payload you will find that some of the fields is not generated in target payload.
    Field in receiver payload is not generated means from sender payload corresponding field is not coming. As per my past experience this generally happens in IDOC sender.
    solution:- In message mapping in every field from IDOC to file use mapWithDefault node function with null value. Due to this though if any field do not generates in IDOC, corresponding field will generate in File Payload and it will not throw error in FCC.
    Regards,
    Prashant

  • Error in file to file using FCC

    hey guys
    i m doin File to file scenario using FCC and getting the followin error in message mapping when i load the payload from SXMB_MONI
    23:43:10 Start of test
        Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8)
      23:43:10 End of test
    the payload is of the form
      <?xml version="1.0" encoding="utf-8" ?>
    - <ns:DT_sender xmlns:ns="http://thoughtbyte.com">
    - <Recordset>
    - <Row>
      <Name><?xml version="1.0" encoding="utf-8" ?></Name>
      </Row>
    - <Row>
      <Name>- <ns:DT_sender xmlns:ns="http://thoughtbyte.com"></Name>
      </Row>
    - <Row>
      <Name>- <Recordset></Name>
      </Row>
    - <Row>
      <Name>- <Row></Name>
      </Row>
    - <Row>
      <Name><Name><?xml version="1.0" encoding="UTF-8"?></Name></Name>
      </Row>
    - <Row>
      <Name></Row></Name>
      </Row>
    - <Row>
      <Name>- <Row></Name>
      </Row>
    - <Row>
      <Name><Name><ns:MT_sender xmlns:ns="http://thoughtbyte.com"></Name></Name>
      </Row>
    - <Row>
      <Name></Row></Name>
      </Row>
    - <Row>
      <Name>- <Row></Name>
      </Row>
    - <Row>
      <Name><Name><Recordset></Name></Name>
      </Row>
    - <Row>
      <Name></Row></Name>
      </Row>
    - <Row>
      <Name>- <Row></Name>
      </Row>
    - <Row>
      <Name><Name><Row></Name></Name>
      </Row>
    - <Row>
      <Name></Row></Name>
      </Row>
    - <Row>
      <Name>- <Row></Name>
      </Row>
    - <Row>
      <Name><Name><Name>ewqe</Name></Name></Name>
      </Row>
    - <Row>
      <Name></Row></Name>
      </Row>
    - <Row>
      <Name>- <Row></Name>
      </Row>
    - <Row>
      <Name><Name><Age>das</Age></Name></Name>
      </Row>
    - <Row>
      <Name></Row></Name>
      </Row>
    - <Row>
      <Name>- <Row></Name>
      </Row>
    - <Row>
      <Name><Name><Dept>fggfgf</Dept></Name></Name>
      </Row>
    - <Row>
      <Name></Row></Name>
      </Row>
    - <Row>
      <Name>- <Row></Name>
      </Row>
    - <Row>
      <Name><Name></Row></Name></Name>
      </Row>
    - <Row>
      <Name></Row></Name>
      </Row>
    - <Row>
      <Name>- <Row></Name>
      </Row>
    - <Row>
      <Name><Name></Recordset></Name></Name>
      </Row>
    - <Row>
      <Name></Row></Name>
      </Row>
    - <Row>
      <Name>- <Row></Name>
      </Row>
    - <Row>
      <Name><Name></ns:MT_sender></Name></Name>
      </Row>
    - <Row>
      <Name></Row></Name>
      </Row>
    - <Row>
      <Name></Recordset></Name>
      </Row>
    - <Row>
      <Name></ns:DT_sender></Name>
      </Row>
      </Recordset>
      </ns:DT_sender>
    any idea where the error might be?
    thanx
    ahmad

    hey guys
    i m still getting the same error,even though i have changed the payload
      <?xml version="1.0" encoding="utf-8" ?>
    <ns:DT_sender xmlns:ns="http://thoughtbyte.com">
    <Recordset>
    <Row>
      <?xml version="1.0" encoding="UTF-8"?>
      </Row>
    <Row>
      <ns:MT_sender xmlns:ns="http://thoughtbyte.com">
      </Row>
    <Row>
      <Recordset>
      </Row>
    <Row>
      <Row>
      </Row>
    <Row>
      <Name>dsfdf</Name>
      </Row>
    <Row>
      <Age>ghhg</Age>
      </Row>
    <Row>
      <Dept>gfgfg</Dept>
      </Row>
    <Row>
      </Row>
      </Row>
    <Row>
      </Recordset>
      </Row>
    <Row>
      </ns:MT_sender>
      </Row>
      </Recordset>
      </ns:DT_sender>
    i didnt knew why i waz getting <name></name> so i manually deleted them and also deleted the "-" and the pasted this in the file to be picked,file is pickin up but not being delivered and the error is still the same
    00:27:23 Start of test
        Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8)
      00:27:23 End of test
      thanx
    ahmad

  • Ignore last lines in a file using FCC

    Hello,
    can we ignore last two line in a file, when we are using FCC.
    in a file uploaded with some special char like $#@..... due to this mapping getting failed.
    i want to ignore last two lines in a file.
    Regards,
    Chinna

    Hi Chinna,
    you can also use replaceString funtion to remove all special character and then use result for date transformation like shown below.
    Hope it will be helpful for you.
    Regards
    Jitender

  • Header and filed vlues n the same row in reciver file using FCC

    Hi,
    I have a scenario ,where  receiver file should contain   only one row (the row contain all the filed values using end separator) .
    and also need to display header (file should contain only one row including header and field values).
    Now  i am getting 2 rows  , one row contain all header ( i did using name.headerfields-3)  and the second row contain all the filed values.
    please let me know is there a way i can combine both header and field  values in one row using receiver FCC.
    Regards
    Surya
    Edited by: SuryaPrakash Reddy on Oct 28, 2011 9:03 AM

    SuryaPrakash Reddy wrote:
    I thought about this (put your header in first field of your target structure.),but i want do this as last option.
    this is the best option you have here since from a standard configuration you will not be able to achieve this.

  • File Adapter FCC Error

    Hi team
    i am getting the following errors in the File Adapter when i am using the FCC Parameters.
    1)Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Mandatory parameter 'xml.keyfieldName': no value found
    2)Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Mandatory parameter 'Detail.keyFieldValue': no value found
    My FCC parameters are
    Header.fieldNames,Header.fixedLengths,Detail.fieldNames,Detail.fixedLengths
    i am receiving a file from the FTP server; the file structure has header and detail records.
    Please help me out
    tahnx a lot in advance

    Hi,
    Your header and details lines in the file will contain the first value which differentiates them.
    That field becomes your Keyfiled.
    Add the following to the configuration:
    xml.keyfiledName - the 1st field name from the header and detail
    header.keyFieldValue - vakue from the header line
    detail.keyFieldValue - value from the detail line
    Regards,
    Pragati

Maybe you are looking for