FILE ADAPTER- FCC
Hi Experts
In my scenario i have to use the FCC parameters. My scenario is FILE -XI-IDOC. from the sender system the file is coming in csv format, so i think i should use the fcc parameters?? The sender structure is as follows, it contains Header record,body and Trailer Record
Header Record:
Record Type
Supplier ID
File Type
Date
Time
Detail Record:
Record Type
Job Number
MPRN
Flow Type
CRN
Trailer Record:
Record Type
Supplier ID
File Type
Date
Time
RecordCount
could you please tell me how to use the FCC parameters for the above structure????
the idoc is an Custom IDOC.
please
tahnx in advance
> what value should be given for the "key field value"???
If your file is coming with Header, Details & Trailor then in order to distinguish them we requre key fields. The key fields are those which contains a constant value at one particular place. e.g
01,aaa,bbbb,cccc,dddd
90,eee,ffff,gggg,hhhh
90,kkkk,pppp,nnnn
90,qqqq,www,uuu
99,xxx,kkk,pppp
Here 01 is the key field value for header
90 is the key field value of details
99 is the key field value of trailor
> what values should be given there??
HeaderRecord.keyFieldValue: 01
DetailRecord.keyFieldValue: 90
TrailorRecord.keyFieldValue: 99
BTW, have you gone through below mentioned blog, which is good enough to explain the key fields & it's values. Have a look again..
/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
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.LAHi,
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,
RajeshHI,
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 -
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 PMHi,
> 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 -
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
VaibhavYou 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. -
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,
ArchanaHi,
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,
KrishnaHi 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 -
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 advanceHi,
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 -
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
GabrielHi 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 -
Problem when doing fcc and configuring file adapter
Hi all,
I have done all my xi work in my interface task -design IR, mapping, ID.I aslo passed succesfully XML testing.Now I am going to use 2 file adapters to complete the task..
I am having problems configuring content conversions parameters in receiver.
..I want to be able to pass a text file to input and output again text file.
If someone can help me I can provide screenshots .Appreciate your help..
ThanksHi,
File Content Conversions
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns - FCC
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file - FCC
/people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp - FCC
/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy - FCC
/people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter - EOIO - File
/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/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
/people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
/people/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter
Hope it helps..
Kumar.S -
0 byte txt file using receiver File Adapter
HI,
My scenario is Flat File to Fixed Length File.
Mapping : Based on the condition Reciever node need to generated , In some cases it wont generate any node ( No data )
Receiver Communication channel : I used FCC for Fixed length Format.
Problem : When i am generatingf the receiver file with some data it executes. But when i am generating the file with no data , it fails in the receiver comminication channel.
Could not process due to error: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'ns0:Message1' found in document', probably configuration error in file adapter (XML parser error)'
I need the receiver file to generate with 0 bytes when there is empty data.
can any one help on this.
ThanksHi,
>>Problem : When i am generatingf the receiver file with some data it executes. But when i am generating the file with no data , it fails in the receiver comminication channel.
What happens in this case is, when you send a blank file to PI it processes but once it went to Receiver Adapter, it looks out for some fields because of the FCC settings. So it throws an error/exception because some fields are expected and it is not coming. Because of that you getting below exception.
Secondly, Once you send data with few values or fields it will process in Receiver file adapter FCC and if there is some error it throws error. this is why you getting exception in moni, and other places.
Regards
Aashish Sinha -
Doubt: addHeaderLine File Content Conversion Recever File adapter.
Hi,
Below XML Target Structure ( Recever File Adapter- FCC)
<?xml version="1.0" encoding="UTF-8"?>
<ns1:MT_ChangeOfAddress xmlns:ns1="urn:passhe.com/ChangeOfAddressISA28">
<BUSINESS_PARTNER>
<item>
<CAMPUSCODE>65</CAMPUSCODE>
<STUDENTNUMBER>6500000192</STUDENTNUMBER>
<ST_OBJID>732298498</ST_OBJID>
</item>
</BUSINESS_PARTNER>
</ns1:MT_ChangeOfAddress>
Recever File Adapter- FCC : i have done below configurations.
BUSINESS_PARTNER.addHeaderLine = 1 ( i tryed with value 2 also) and also tryed with item.addHeaderLine = 1 ( i tryed with value 2 also) i am not getting Header line in my out put file and rest fine
Recordset Structure: BUSINESS_PARTNER,item
BUSINESS_PARTNER.fieldNames : item
BUSINESS_PARTNER.fieldSeparator: ,(comma)
item.fieldNames : CAMPUSCODE,STUDENTNUMBER,ST_OBJID
item.fieldSeparator : , (comma)
BUSINESS_PARTNER.addHeaderLine = 1 ( i tryed with giveing value as 2) and also tryed this way also item.addHeaderLine = 1 ( i tryed with giveing value as 2) i am not getting XML Header line in my out put file and rest is working fine. please help me out.
Thanks,
DhanushDhanush,
According to help.sap.com standard structure
<root>...
<nameA>
<value1>value</value1>
<value2>value</value2>
<value3>value</value3>
</nameA1>
<nameB>
<value4>value</value4>
</nameB>
</root>...
I guess if you reduce it to one level like by removing item or BUSINESS_PARTNER it should work.
http://help.sap.com/saphelp_erp2004/helpdata/en/0b/9a50465ccf84479e39a6d50c90fb3f/frameset.htm
Gaurav Jain -
File adapter fixed lenght with justify
Hi Developers ,
I'm developing an interface JDBC - File , the file have a special format because is a flat file with fixed length and some of the fields have to a justified to left , it's possible do that with the file content conversion ????,
the example of the file is :
lenght fields :3,3,3
xx , xx,xxx
xx , xx,xxx
xx , xx,xxx
RegardsHi,
Please see the below links
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1 - File to File Part 1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2 - File to File Part 2
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns - FCC
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file - FCC
/people/harrison.holland5/blog/2006/12/20/xi-configuration-for-mdm-integration--sample-scenario - FCC - MDM
/people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp - FCC
/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy - FCC
/people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter - EOIO - File
Regards
Chilla... -
hi all.
iam new to xi.
sorry i want to be sure in one thing i.e
in real time if we r dealing with file to bapi r file to idoc r file to file.
under sender file adapter in what way we will configure .
lets assume like a file to be processed daily when ever a file is placed in sender directty xi should pickup the file and process it to bapir idoc.
so how we can do it.
waitin for reply.
cheers.
seeta ram.hi;
You need file content conversion if you are not getting in file in xml format .
if you get it as flat file then you will have to use FCC.
refer these for details on FCC.
help link for Receiver file adapter (FCC) - http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
These are a collection of blogs on content conversion (both receiver and sender)
/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
Mudit
Maybe you are looking for
-
I can not share file from Jabber for Iphone and Android
Hi guys. I have: CUCM9.1/Publisher y Subscriber System version: 9.1.1.41900-1 Presence/Publisher System version: 9.1.1.41900-1 Expressway x8.1.1 Cisco Cisco Expressway-E Expressway x8.1.1 Cisco Expressway-C Jabber for Android and Iphone 10.6 I do not
-
CS4 Installation on Windows 8.1 Setup error
So, after getting quite quite annoyed at this, I am asking the question: How do i fix the "Setup has encountered an error and cannot continue" error on installation with windows 8.1 Details of things i have tried and know So, New install of Windows 8
-
Performa 6300CD - Which Monitor Adapter?
A friend has a Mac Performa 6300CD with the stock Apple monitor that came with it. The monitor is starting to go, and he wants to connect a generic monitor. Does anyone know what type of adapter he would need? Thanks.
-
Custom field position control - SRM 7.0
Hi all, In SRM 7.0,when we add custom fields at the headre/item level,how do we control the position of the fields?
-
I'm Lost! iPad Media Q, Odd Behavior
http://www.sandiegohomegrown.com/testSDTG/ First let me start by saying this is my first RWD and my goal was to create breakpoints where ever and whenever it was needed. On my browser everything seems to be OK though the code is a bit sloppy. If yo