Receiver File FCC Issue
Dear Experts,
I have follwed Arpit Seth's blog "File Receiver with Content Conversion" and completed Recv FCC scenario for below structure with parameters:
Records.fieldSeparator= ,
RecordList.fieldSeparator='nl'
Records.endSeparator='nl'
<root>
<RecordList>
<Records>
<ID>123</ID>
<Name>SAP</Name>
<Loc>US</Loc>
</Records>
</RecordList>
</root
How can perform same Recv FCC for below given structure. I have given parameters as -
Records.fieldSeparator= ,
Records.endSeparator='nl'
Its not working....Need suggestions...thanks in advance...
<root>
<Records>
<ID>123</ID>
<Name>SAP</Name>
<Loc>US</Loc>
</Records>
</root>
Hi,
in Record Structure = Records
add one more as Records.addHeaderLine = 0
just try if it works.
Regards,
Manisha
Similar Messages
-
Removing quotes in receiver file FCC.....
Hi,
I am working in a scenario where I am doing FCC on receiver file adapter and generating a text file.
Now,I have given comma as the field end seperator.But some fields exists that have comma in their values....Now my FCC isnot working properly....
If I send those fileds in quotes,and want to send them to recever system without quotes,what should I do??
Is there any option as enclosureSignEsc,in receiver file adapter FCC too as in sender file FCC????
Regards,
Sriparna> Now,I have given comma as the field end seperator.But some fields exists that have comma in their values....Now my FCC isnot working properly....
> If I send those fileds in quotes,and want to send them to recever system without quotes,what should I do??
Ask your customer or project lead.
You cannot have a comma as field seperator, when you have also commas in the field values. -
Folks,
The understanding is that you need to have a flat XML without hierarchies at the receiver File adapter for a successful FCC.
<root>...
<nameA>
<value1>value</value1>
<value2>value</value2>
<value3>value</value3>
</nameA>
<nameB>
<value4>value</value4>
</nameB>
</root>...
Now has this understanding changed?
I 'think' I saw some blog or article on converting a hierarchical XML to a flat file on the receiver file adapter using the FCC parameters some time back.
Not sure about this. Does someone know or confirm if there is such a link?
Thanks folks,
ShabzHey ...
You are true... There is still limitation on receiver FCC...
So, I have (always)used an ABAP mapping to flatten my structure (not the exact code but similar to what has been mentioned in the weblog )
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417400)ID0189460050DB12714177844362848175End?blog=/pub/wlg/5720
This will give u more flexibility in designing & working with XML's while using FCC.
I still use deep XML structures for FCC...
<Orders>
.<Order>
..<Header>
..</Header>
..<Lines>
...<Line_Detail>
...<Line_Detail>
..<Lines>
.</Order>
</Orders>
Regards,
Siva Maranani -
To Generate file with whitespaces for the last fields -Receiver file FCC
Hi Experts,
We need to create a file at receiver side having last field of 50 length.If value of last field is less than 50 length than we need to keep whitespaces on the right side.When we create file the whitespaces get trimmed and files are created without whitespaces.I am using fixed field length FCC.Please help me resolve this issue.
Thanks & Regards
Deepak JaiswalIf you like to have UDF ... here it is ..
public String appendWhiteSpaces(String var1, Container container) throws StreamTransformationException{
if(var1.length()< 50){
for(int count=0;var1.length()<50;count++){
var1 = var1 + " ";
return var1; -
Comma problem in receiver file FCC csv file
Hi,
We had a problem with CSV conversions in file adapter.Our scenario is: Proxy>Xi>FCC(csv)
<?xml version="1.0" encoding="utf-8" ?>
- <n0:RDM_OrganizationalStructure_MT_OB xmlns:n0="ness.com:RDM_ORGANIZATIONALSTRUCTURE" xmlns:prx="urn:sap.com:proxy:DV3:/1SAI/TAS9B35FF35521A19F6CBEE:701:2009/02/10">
- <row>
<KTEXT>Information,Technology</KTEXT>
<KTEXT>"Information, for internal use only" </KTEXT>
</row>
</n0:RDM_OrganizationalStructure_MT_OB>
In O/P csv file the filed KTEXT is spiting as Information onecolumn and Technology in the next column.
for avoiding this i conceited with " (double-quote) on both the sides to the KTEXT filed. so the Information,Technolg is appending in the same column. Its fine,
but for the second record from the source side itself the its getting as "Information, for internal use only"
so this it is spliting and appending in the next column. in 1st column Information and in the 2nd for internal use only. i want to append this in 1st column as "Information, for internal use only"
how to resolve this issue for appending the record in the same column?
and also i want to know why " is not inserting in csv file.
My Fcc conversion parameters are
record Structure: row
row.addHeaderLine: 1
row.headerLine: Code,Name,Description
row.fieldSeparator: ,
row.endSeparator: 'nl'
pls advice how to overcome this problem
Thanks
VankadoathHi Vanka,
In O/P csv file the filed KTEXT is spiting as Information onecolumn and Technology in the next column. for avoiding this i conceited with " (double-quote) on both the sides to the KTEXT filed. so the Information,Technolg is appending in the same column. Its fine,
To make it in the same column, you put it into double quotes.
"Information,Technology" -->> Information,Technology
but for the second record from the source side itself the its getting as "Information, for internal use only" . so this it is spliting and appending in the next column. in 1st column Information and in the 2nd for internal use only. i want to append this in 1st column as "Information, for internal use only"
As this already has double quotes, you need to use 2 more double quotes to escape that.
"""Information, for internal use only""" -->> "Information, for internal use only"
Regards,
Sunil Chandra -
RECEIVER FILE FCC - Help needed.
Hi,
Iam working on a idoc-to-file interface.My receiver structure is as follows:
<HEADER_1st_LINE>
<field1>
<field2>
<field n>
</ HEADER_1st_LINE>
<HEADER_2nd_LINE>
<field1>
<field2>
<field n>
</ HEADER_2nd_LINE>
<PO_LINE>
<POLINE_1st_LINE>
<field1>
<field2>
<field n>
< /POLINE_1st_LINE>
<POLine_2ndLine>
<field1>
<field2>
<field n>
</ POLINE_2nd_LINE>
</PO_LINE>
My FILE RECEIVER channel is as follows:
RECORDSET STRUCTURE : HEADER_1stLINE,HEADER_2ndLINE,POLINE,POLINE_1stLINE,POLINE_2ndLINE
Kindly pls help me in content conversion parameters.My target structure should be as follows:
HEADER_1st_LINE
HEADER_2nd_LINE
POLINE_1st_LINE
POLINE_2nd_LINE
POLINE_1st_LINE
POLINE_2nd_LINE
POLINE_1st_LINE
POLINE_2nd_LINE
Thanks in advance,
Cheers,
Ram.Hi Kenneth,
Thanks for your reply.
PO_LINE has two child nodes...POLINE_1st_LINE & POLINE_2nd_LINE respectively.
In the target flat file i must generate the structure which has the following nodes in sequence :
HEADER_1st_LINE
HEADER_2nd_LINE
POLINE_1st_LINE
POLINE_2nd_LINE
POLINE_1st_LINE
POLINE_2nd_LINE
POLINE_1st_LINE
POLINE_2nd_LINE
How to write Content Conversion Parameters so as to achieve my task of generating the desired file structure ?
Cheers,
Ram. -
Hi,
I have a scenario like R3(IDOC)->XI(Mapping)->FTP(Content Conversion)
I am trying to FTP a file across to a vendor's FTP server using the reciver file . adapter. The target filename is of the form %ABC%IJK%%b.However on posting the file i get a message like.
An error occurred while connecting to the FTP server '<hostname>:21'. The FTP server returned the following error message: 'com.sap.aii.adapter.file.ftp.FTPEx: 200 Command Okay. ID: <userid>, Current TR - Recv: <userid>, APRF: *BINARY, Dir: S. Get option: single. '. For details, contact your FTP server vendor.
It seems although the connection is established, the ftp put does not work
Can anyone help on what is the cause of the error and possible solutions.
Regards,
Alex.There can be following things:
- Target Dir is not present or you dont have an authorization to create it.
- Check the Access to put the file in that directory.
Check the same for other interface also. If other interfaces are running fine then try to put the file in that DIRECTORY for test purpose.
Thanks
Farooq. -
Receiving file adapter content conversion issue
Guys,
Could someone please help me with a Receiving file adapter issue?
My output structure is something like this:
Vendor_file_MT (occurence 1)
--Recordset (occurence 0..unbounded)
Vendor (occurence 1)
Field1
Field2
Field3
Field73
Field74
My content conversion is very simple:
Recordset Structure: Vendor
Parameters:
Vendor.fieldFixedLengths 30,30,30, (...) ,1,27
Vendor.fixedLengthTooShortHandling Cut
Vendor.endSeparator 'nl'
If I don't do the content conversion, it works fine, I get all the fields in the XML format.
When I do the content conversion however, I get multiple lines but only the very first field of each line.
What could be the problem? What am I missing here? Any idea?
Your help would be much appreciated.
Thanks,
ViktorVarga:
Its little strange that its not working even after adding that. Did you check the receiver channel in your RWB for any logs. Add the statement in my previous post and Also try to clear the Cache and activate the channel again..See if it works
Glad it worked
Edited by: Guru on Apr 21, 2008 3:15 PM -
Hi Friends.
Scenario is in PI 7.0 . IDOC is received from SAP and after file content conversion placed in file server.
Suddenly few days back it started throwing error in receiver file FCC communication channel - error is -
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Column value ' ' too long (>3 for 27. column) - must stop', probably configuration error in file adapter (XML parser error)': java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Column value ' ' too long (>3 for 27. column) - must stop', probably configuration error in file adapter (XML parser error)
but the same scenario with same inputs (same payload,same IR and ID configuration) works fine in development environment.
in SXMB_MONI message shows as SUCCESSFUL and payload is also OK.
Pls suggest what to do in this case..Hi,
This is happening because - if there is any empty tag coming from source then target structure tag will not be created and because of which ur payload structure and FCC configuration is not matching.
I would recon use map with default between source n target strcture so in case source tag dont have value target structure will be created because of mapwithdegfault fuction and ur FCC will not fail.
Open SXMB_MONI output payload and compare the structre with Data type u will se for no source value target tag is not created at all and FCC is failed.
For exa- I ahve name,age,*** as my target data type and FCC is 10,3,4
If i dont receive age from source the value of *** is taken as 3 length as per FCC becus age tag is not created in target.
chirag -
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,
My scenario is proxy to flat file(FCC). The incoming structure has following format:
Header1
Item1
Header2
Item1
Item2
Item3
Header3
Item1
Item2
Control
Each Header can have multiple item fields. The last line is control record.
So the structure is like ::::: header, item, item, item, header, item u2026.., control.
what configuration should be done in FCC?
Thanks in Advance.
Regards,
MitenHi,
Please check some links on FCC
Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
File Receiver with Content Conversion
Content Conversion (Pattern/Random content in input file)
NAB the TAB (File Adapter)
Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
How to send a flat file with various field lengths and variable substructures to XI 3.0
Content Conversion (Pattern/Random content in input file)
NAB the TAB (File Adapter)
File Content Conversion for Unequal Number of Columns
Content Conversion ( The Key Field Problem )
The specified item was not found.
File Receiver with Content Conversion
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Regards,
sainath -
File Receiver Adapter FCC parameters
Hi
I have a File to File format via PI
I have the following structure from the sender File adapter passing to receiver file adapter.
The inbound structure as follow
<CONTRACT>
<HEADER>
<X1>
<X2>
<LINE>
<Y1>
<Y2>
<Y3>
I have configured the FCC parameter at Receiver file adapter as follow
HEADER.fieldseparator - '0x09'
LINE.fieldseparator - '0x09'
I can get Header and LINE items.
But with mutiple records, I can only receive one record.
I have tried a lot of combination based on the forum thread on this matter but to no avail
I would like to seek your expert advice.
Regards
FredThe payload at the target adapter show only
<Header>
<Line>
<Line>
<Line>
occurences is 1:unbounded
I have also tried adding in Header.endSeparator - 'nl'
Line.endSeparator - 'nl'
but the output is still the same with one record.
I have check the payload at Sender adapter CC
and found it is coming as one record only
though the source file has mulitple records.
BTW, the source file structure is fixedlength with header indicator as H
line indicator as L.
Therefore I have set keyfield parameter in Sender adapter FCC as H and L -
FCC Parameters are required in the Receiver File Adapter
Hi ,
Sorry for posting this question again.. my Structure is
MT_CADVICE_STRING
. . Batach -
1:Unbounded (Node)
. . .Header_String -
1:1
. . .Line_Item -
1:Unbounded (Node)
. . . .LineItem_String -
1:1
for this structure I'm geting data in the XML format.. .. my scenario is simple File to File scenario.. now i want to convert this XML to a normal Text file by using FCC in the Receiver file adapter..
and in the Receiver side i want the file in the bellow format: (each field i want to get in the separate line but at presnt I'm getting the continution of all lines I'm not getting the data in a separate lines..)
Header_string
LineItem_String
LineItem_String
Header_String
LineItem_String
so, any abody can help on this...
And in the Receiver Communication channel i keep the FCC parameters like as bellow :
RecordsetStructure : Batch,LineItem
Batch.fieldSeparator: 'nl'
LineItem.fieldSeparator: 'nl'
Batch.endSeparator: 'nl'
LineItem.endSeparator: 'nl'
For more information.. My source file is like bellow
<?xml version="1.0" encoding="utf-8" ?>
- <nr1:MT_CADVICE_STRING xmlns:nr1="urn:Test.com:SD:CAdvice">
- <Batch>
<Header_String>1 B 1110300014200804108218 36892.80 03 10.000 10.000 0.00 0.00 008000021720080410558000.00 91958.40 649958.40 0.00 649958.40 2678.40 1000003461100000346110000034611000003461123456 18 18 0.00 $</Header_String>
- <LineItem>
<LineItem_String>2 B 1110300014 1 000000000001234567000000000001 5.000 0.00 45000.00 10800.00.00 16.00 279000.00 0.00 rcl/ML0080200804100000000357 200804100.00 01 02 000000002.00 860.13321.00 $</LineItem_String>
</LineItem>
- <LineItem>
<LineItem_String>2 B 1110300014 2 000000000001234567000000000001 5.000 0.00 45000.00 10800.00.00 16.00 279000.00 0.00 rcl/ML0080200804100000000357 200804100.00 01 02 000000002.00 860.13321.00 $</LineItem_String>
</LineItem>
</Batch>
</nr1:MT_CADVICE_STRING >
Regards
JainHi jain
Provide as below definitely it will work,
RecordSet Structure : batch,Line_Item,LineItem_String
batch.fieldSeparator --- 'nl'
Line_Item.fieldSeparator -
'nl'
LineItem_String.fieldSeparator --- 'nl'
All your fields will come in a separate line.
Regards,
Sasi
Edited by: sasitharan on Jul 28, 2008 11:36 AM -
Hi All,
I want to generate a file with structure like below:
"100","Field1","Field2","Field3"
"200","Field41","Field51","Field61"
"200","Field42","Field52","Field62"
Here 100 n 200 are row identifiers. My data type for receiver side is as follows:
<Data_Type>
<Header>(0,1 ocurence)
<100>
<Field1>
<Field2>
<Field3>
<Item>( 1 to unbound ocurence)
<200>
<Field4>
<Field5>
<Field6>
I am getting error "Channel has not been correctly initialized and cannot process messages" in communication channel monitoring because Receiver Communication channel is not configured correctly.
Can Anybody please tell me what should be parameters in FCC in Content Conversion?
Thanks,
AtulHi,
Please find here with you fcc parameters as per the given links
File Content Conversion for Unequal Number of Columns
/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns - FCC
File to R/3 via ABAP Proxy
/people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy - FCC
Content Conversion (Pattern/Random content in input file)
/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
XI in the role of a FTP
/people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp - FCC
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
Swarup -
Hi Experts,
I have an issue with Sender File FCC Adapter. The file being picked is of type TXT and it is tab seperated. The first line contains the field names and from next line onwards we have values for those fields.
The field names and field values are tab seperated. Even inserting a single letter in some field value manually disrupts the whole setup & alignment of the TXT file and the Sender File CC is unable to pick up the file from the shared folder. If the first file is errorenous and after that a correct TXT file is posted, it fails to pick up the correct file as it is trying to pick the errorenous file first.
The Error thrown is :
"Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 2 according to structure 'ABCD':java.lang.Exception: ERROR in configuration / structure 'ABCD.': More elements in file csv structure than field names specified!"
I have two questions:
1. Is there a way to handle such a scenario? For e.g., the errornous TXT file gets picked but throws error in PI.
2. Is there an alternative that the sender FCC channel picks up the correct files and filter out the errorneous ones ? ?
Thanks,
ArkeshHi Arkesh,
I think you are passing more number of fields than expected. Please check paramters defined and send the data accordingly.
In the processing parameters tab of sender file adapter, you have an option called Archive faulty source files, below to that you would have option to enter the " Directory for Archiving files with Errors".
I hope this helps you....
Thanks,
Maybe you are looking for
-
Phone app - not identifying contacts
I dont know if anyone else has noticed this and also I dont know if it a post 1.3 issue or not as I didnt notice it earlier. Anyway I have populated my contacts using full international numbers so they start +44.... etc. The phone app correctly ident
-
What are system variants and where they are stored in SAP?
HI EXPERTS, i want to know the use of system variants . when we create the variants in reports. where these system variants are stored in sap system? thanks in advance. vikas
-
Regarding : back ground jobs
Hi, Please let me know , in how many ways we can shedule a program as a background job, and how we pass variants to the job. Thanks in advance jogu
-
How to Flag Customers in Customer Master (in SD)
Hi, I've read a few earlier posts regarding customer master and since I could not find an answer for my query I am posting it here. I have a question regarding the customer master in SD: Is there a way to Flag Customers for reporting purposes in Cust
-
Girlfriend's Skype displaying a contact name that ...
Ever since my girlfriend added me as a contact, my display name has always shown up as my real name for her. I have never used my real name for Skype. Ever. I entered my pen name as my display name when I signed up. This seems to be a problem that on