FCC Receiver

I have to convert my input message which is xml format to flat file format
My Input XML format is like this:
<Header>
</Header>
<Body>
     <Child>
     </Child>
</Body>
<Footer>
</Footer>
Header,Body and Footer are in same level.
So,now my question is how to define FCC parameters for this kind of structure?

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

Similar Messages

  • FCC Receiver side

    Hi Experts,
    Im working with the file to file scenario with FCC receiver side parameters ( sender xml with receiver text).
    I want my fields with comma separated values...like... abc,xyz,mno.. so on...
    Im giving the parameters as :
    HEADER1.fieldSeparator: 'nl'
    HEADER.fieldseparator: ,
    Where the structure is Header1--->Header.
    Im getting the error as :
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Channel has not been correctly initialized and cannot process messages
    Channel has not been correctly initialized and cannot process messages.
    Please help.

    Hi Robin,
    My sender xml file structure is :
    DT_FCCRec-->HEADER1->HEADER--->lastname,name,middle,company...so on till 10 fields.
    My output file should be a text file with comma seperated values.
    I need 5 rows...with 10fields seperated by comma:
    name,lastname,firstname.....10 fields
    name1,lastname1,firstname1...10fields
    name5,lastname5,firstname5...10fields.

  • Fields Order change in FCC receiver

    Hi experts,
    i am receiver message in following format:
    EMPID(12)
    EMP_NAMEFULL(100)
    EMP_NAME(30)
    and i have mapped it with receiver type as
    EMP_NAMEFULL(100)
    EMPID(12)
    EMP_NAME(30)
    ( i am just changing the fields sequence)
    Here i am using FCC receiver adaptor in which i have specified the required fields names and lengths(100,12,30). but it gives me error of fields too short for first field.
    if i give the fields names and length in corresponding to seder message as(12,100,30) it is working fine but file contains wrong filed sequences {EMPID(12)EMP_NAMEFULL(100)EMP_NAME(30)}
    but i want {EMP_NAMEFULL(100)EMPID(12)EMP_NAME(30)}
    Can any body suggest what should i do?
    Thanks in advance.

    Hi All,
    solved it... my mapping was not proper.

  • PI 7.11 - FCC Receiver Adapter

    Hi
    I've got a simple xml which i have to convert in a fixed length text file. Is it possible to convert it using FCC with following structure:
              <root>
                   <data>
                        <record>
                             <name>john</name>
                             <surname>doe</surname>
                             <zip>12345</zip>
                             <city>abcd</city>
                        </record>
                        <record>
                             <name>bart</name>
                             <surname>simpson</surname>
                             <zip>131313</zip>
                             <city>springfield</city>
                        </record>
                   </data>
              </root>
    I did this conversion already with PI 7.0, but i removed the <data> element to get a simpler substructure. Is it also possible without removing this?
    I found following entry [Re: File Adapter Reciver Side: FCC Convetion Problum in PI 7.1], but it didn't works for me. Any suggestions?
    Thanks in advance
    Michael

    Hi,
      Are you looking for a content conversion at teh Receiver adapter or the sender adapter?
    If you have defined teh structure in ur Data type as u have mentioned then don't remove anything because ur source file would be containing the following structure itself.
    If you are getting the XML structure at source
    <root>
       <data>
          <record>
                   <item1>
                   <item2>
          </record>
       </data>
    </root>
    the follow the same structure at the receiver side as well. If u want to delete the data node at teh receiver side then delete at teh source side FCC as well.
    Just try and let me know. I will help you out.
    Thanks
    Veeru

  • FCC Receiver Error :Column value '   ' too long

    Hi Experts
    I am getting data from SAP for which i should create a file which is fixed length on the target side
    My structure is :
    File----1.....Unbound
    ----->Header --- -1..1
    >RecordType
    >Transcode
    >PO_Num
    >Vend_ID
    >Crea_date
    >WHS_ID
    >POM_Status
    >Cancel_date 
    >Delv_date 
    >Ord_type 
    >POM_Char
    ---->Record_Detail---1..Unbound
    >Record_typ
    >PO_Num
    >Line_no
    >Itm_no
    >Sch_No
    >QTY
    >UOM
    >Vend_itm_no
    >Delv_Date
    >Buyer_name
    >WHS_ID
    ---->var1-0..1
    ---->var2-0..1
    var1 and var2 I am using for variable substitution.
    I have configured the receiver FCC as below
    Record Structure  HeaderRecord,Record_Detail
    HeaderRecord.fieldFixedLengths     1,1,30,10,8,2,1,8,8,8,1
    Record_Detail.fieldFixedLengths     1,30,5,30,3,8,2,20,8,25,2
    And I have given var1 and var2 in varaible substitution.
    But I am getting the following error when recevier receiving the file
    Could not process due to error: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Column value '0811200613.WAPONUM' too long (>1 for 0. column) - must stop', probably configuration error in file adapter (XML parser error)'
    Please help me
    Regards
    Sowmya

    Hi,
    If u have added Trailer Node ( And Var1 & Var2 inside it) then try adding this:
    Trailer.fieldFixedLengths     0,0
    Trailer.fixedLengthTooShortHandling     Cut
    Hope it will solve ur problem.
    For reference check:
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    Check ur final structure is like this:
    Recordset Structure: File,Header,Record_Detail,Trailer
    Header.fieldFixedLengths: 1,1,30,10,8,2,1,8,8,8,1
    Header.fieldNames: RecordType,Transcode,PO_Num,Vend_ID,Crea_date,WHS_ID,POM_Status,Cancel_date,Delv_date,Ord_type,POM_Char
    Record_Detail.fieldFixedLengths: 1,30,5,30,3,8,2,20,8,25,2
    Record_Detail.fieldNames: Record_typ,PO_Num,Line_no,Itm_no,Sch_No,QTY,UOM,Vend_itm_no,Delv_Date,Buyer_name,WHS_ID
    Trailer.fieldFixedLengths: 0,0
    Trailer.fieldNames: var1,var2
    Trailer.fixedLengthTooShortHandling: Cut
    File.fieldSeparator: 'nl'
    Thanks,
    Mahi
    Edited by: Maheshwari Morbale on Nov 21, 2008 6:33 AM

  • FCC:Receiver File Adapter

    Hi
    This is regarding  a FCC in receiver File Adapter
    My requirement is as follows :
    I have the following source structure
    DT_Source                                                                               
    Structure                                                                               
    Field 1                                                                               
    Field 2                                                                               
    Field 3                                                                               
    The target file to be created will contain all the 3 fields mapped directly from the source.
    but in additional to these 3 fields it will also contain 3 constants ..which aren't coming from the source.
    Do I need to include that in the Target data type and map them as constant values in the mapping or can the addition of constant values be taken care of in the File Content conversion ?
    thanks
    Dev

    Thanks Shabarish
    So you mean once i get a sample file , according to the blank spaces in the resultant i should have a corresponding field in my  target Message type and map it toa constant white spaces ??
    ok  I have one last  question 
    Can the FIle(on the receiver side ) be a mix of values which are fixed as well as variable lenghs ??
    i.e
    a typical line item in the file will be like this
    Field1,Field2,Constant1,       ,Constant2,Field3,      ,Constant3,Field4,Constant4
    where Field1 and Field3 are fixed length fields with the constants and field 4 and field5 are of variable lengths ????
    thanks
    Dev

  • Problem with FCC @ Receiver Side (Reg.,  Shab's FCC blog)

    Hi,
    I have gone through the shab's FCC blog...https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3228. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
    I have configured the same in sender communication channel its working fine.
    And have configured the FCC @ Reciver communication channel also with the following parameters.
    RecordStructure= Header,Body,Trailer
    Header.fieldSeparator = ,
    Header.endSeparator= 'nl'
    Body.fieldSeparator = ,
    Body.endSeparator= 'nl'
    Trailer.fieldSeparator = ,
    Trailer.endSeparator= 'nl'
    And, when I ran this interface its generating blank output file. So, what would be the problem
    Can anybody can help me for the same....
    Thanks n Advance.,
    Abhi

    Hi,
    Refer this..
    http://help.sap.com/saphelp_nw2004s/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    vasanth

  • FCC Receiver Error

    Hi Experts,
    I am working on a fiel to file scenario where in I am writing filename using Dynamic Config in a Java Map.
    The output payload is :
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_OUT_triggerfile xmlns:ns0="http://www.test.com/triggerfile">
    - <Content>
      <Data>Name is Dominic</Data>
      </Content>
    - <File>
      <filename>InputFile.txt</filename>
      </File>
      </ns0:MT_OUT_triggerfile>
    Now my requirement is that I need to write the Data in a text file at the receiver end.
    I don't need file name in the content of the output file.
    Below are the content conversion parameters given.
    Recordset Structure : Content,File
    Content.endSeparator     'nl'
    Content.fieldSeparator     'nl'
    File.noOfColumns     0
    File.fieldFixedLengths     0
    File.fixedlengthTooShortHandling     'Cut'
    I am getting an error : *'java.lang.Exception: Column value 'InputFile.txt' too long (>0 for 0. column) - must stop', probably configuration error in file adapter (XML parser error)'*
    I am wondering now in the file adapter using FCC can't we suppress unwanted node?
    Something missing in the above Config?
    Can someone help me on this?
    Thanks & Regards,
    Dominic

    Hi Sarvesh,
    I even tried this before itself but it dint work.
    Further you have mentioned that "If it fails then you may have to give the Content.fieldFixedLengths & Content.fieldNames as well".
    The issue here is not with the content field as when i just change the value of fieldFixedLengths for File the content conversion works with the filename also in the file.
    The below config works but i dont need the file name in the text.
    Recordset Structure : Content,File
    Content.endSeparator 'nl'
    Content.fieldSeparator 'nl'
    File.noOfColumns 0
    File.fieldFixedLengths 12
    File.fixedlengthTooShortHandling 'Cut'
    I do not want the file name to be in the file basically needs to suppress the File node.
    Thanks & Regards,
    Dominic

  • REG :FCC Receiver

    Hi Guys
                 My Sec is IDOC to File in CSV format .can anyboby send me details for receiver csv  format . i am using PI7.1
    Thanks

    This will show you the XML ---> CSV converion:
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    Please note that depending on your target side XML structure you need to build the FCC formatting..
    Regards,
    Abhishek.

  • FCC: Receiver: Just one element filled -- create txt-File

    Hi everybody,
    we got a message-interface with just one element <content>texttexttexttext</content>
    We want to use FCC to create a text-File.
    How do the parameters have to look?
    regards Mario

    Hi,
    go through this blog and do FCC as per your data.
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    I think it will be better if you could send the exect data, which you are gona to create a text file by using Receiver FCC. There should be some separation in between the text, otherwise how u will decide the fieldSeparator in FCC.
    Regards,
    Sarvesh

  • File name in FCC receiver adapter

    How to do this ?
    The filename will have the following format:
    AAAAAA_BBBB_CCCCCCCC_DDDDDD
    Where: AAAAAA  First 6 digits of first  field
    BBBB  4 digit  Company Code second field
    CCCCCCCC  Current system date in YYYYMMDD format
    DDDDDD  Current system time in HHMMSS format.

    If you go with Variable substitution, certain things are not possible such as "AAAAAA  First 6 digits of first  field".
    However below wiki covers all the possibilities.. please check..
    Dynamic file name and directory in Receiver File Adapter - summary of possibilities - Process Integration - SCN Wiki

  • FCC Receiver Communication Channel

    HI Experts,
                     My scenario was Idoc to File.
    Issue: In My target structure i have mapped A,B,C,D fields. I want only A,B,C at final structure.
    I cannot ignore D field in message mapping as i am using that field for file name Substitution.
    In my receiver CC i have given,
    XX01.fieldNames:    A,B,C
    But still i am getting A,B,C,D in target structure.
    thanks in advance

    Hi,
        If you want to save the target file with the field name D..you can do like this
    -->create UDF with the following code.
    -->Map your D field from source structure to UDF.Dont map it to any target structure so that you can avoid D in target file
    -->map return value of UDF to root node of target structure
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String newfilname = D;//you have to give D field name
    conf.put(key, newfilename);
    check Filename in  adapter specific attributes in Receiver file adapter

  • FCC receiver file adapter new line 'nl' is not working

    Hi Experts,
    I am doing idoc to file scenario,i have to creart a text file in which each line will have a record.
    i am using
    Recordset Structure -->DeliveryRecords
    DeliveryRecords.addHeaderLine 0
    DeliveryRecords.fieldFixedLengths 4,25,3,10,10,10,8,18,40,10,13,15,10,4
    DeliveryRecords.fieldSeparator '0x09'
    DeliveryRecords.endSeparator  'nl'
    but new line is not working every thing is coming in the same line.i have also tried with '0x0A' , this is also not working.
    Pls suggest what can be done.??

    Hi
    You have to use either fieldFixedLength or fieldSeparator.
    You should not mix together.
    DeliveryRecords.addHeaderLine 0
    DeliveryRecords.fielNames aa,bb,cc,dd,ee,ff,gg,hh,ii,jj,kk,ll,mm,nn
    DeliveryRecords.fieldFixedLengths 4,25,3,10,10,10,8,18,40,10,13,15,10,4
                       or
    DeliveryRecords.addHeaderLine 0
    DeliveryRecords.fielNames aa,bb,cc,dd,ee,ff,gg,hh,ii,jj,kk,ll,mm,nn
    DeliveryRecords.fieldSeparator '0x09'
    DeliveryRecords.endSeparator 'nl'
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

  • PI731: FTP-FCC-Receiver with blank line at the beginning

    Hi,
    In my example I always get first a blank line but I do not want this blank line.
    I need the field FILENAME only as a variable name for the file name schema.
    Mapping:
    Communication Channel (Receiver / FTP / File Content Conversion)
    Result (with blank line)
    How can I solve my problem? Do I need to adjust the content conversion.
    Thanks
    Rene

    Hi René,
    Here is your solution..Variable substitution in case of non-XML target files in a multi-mapping scenario
    You just need to follow the adapter configuration.
    Cheers,
    Ambrish

  • FCC : receiver stucture changes using adapter

    hi experts,
    my target file structure is like this
    NODE1
           comp_name
           Project_name
    NODE2
          header
               one
               two
               three
    But i want my output file with only NODE2, i dnt want to show him NODE1 details to my client, HOw can i do this in Configuration
    can anyone helps me.
    THX in Advance
    JOHN

    Hello John,
    Refer To following Link
    http://help.sap.com/saphelp_nw70/helpdata/EN/0b/9a50465ccf84479e39a6d50c90fb3f/frameset.htm
    Thanks
    Sunil  Singh

Maybe you are looking for

  • How do I change the start up page for new tabs?

    I've tried looking through options but I can't seem to find anything related to it. Please help.

  • Error in Export to CSV

    Hi all, Its one more new problem i'm facing. I have a search page (this doesnt uses oaquery, its fully custom handled search screen). I have added a exportButton to the page and i've choosen the option "Export All Rows" = True When i have some search

  • An error occurred during the installation process: error occurred while installing additional adobe

    I get this message: An error occurred during the installation process: error occurred while installing additional adobe packages. when trying to install CS2 InDesign UPGRADE from id 2 on new IMAC 2.4 GHz 4 GB. 

Any one else with same issue? 

Trevor

  • Pulling Parameters from SQL Database

    This is probably something simple that I'm missing, but I'm new to CR. I have a report where I am trying to populate a parameter value from a database field...how do I do this? I do not want the end user to have to enter this parameter. The parameter

  • Join a row to a table name stored within a column ?

    Hi guys - can you tell me if this is doable at all ? I've an existing table with a lot of data in it that I wish to query on. This table has a text column, and then 4 more columns - Join Table name, Join column name, Join value and table value column