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.
Similar Messages
-
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 -
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 -
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 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 -
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
DevThanks 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 -
Tab delimitter in HeaderLine in FCC in receiver file adapter
Hi Folks,
I want to use tab as a field separator for (eg) NameA.Headerline.
instead of comma in file content conversion in receiver File adapter communication channel.
example:
Recordset structure : NameA
NameA.addHeaderLine : 3
NameA:headerLine : MaterialID,Price,Quantity
PS: In NameA.headerline i want to use tab instead of comma.
How can i do that?
Thanks
PrabaharanHi Beena,
could you explain on which context we should use that option:
NameA.addHeaderLine - 1 ( Header line with column names from the XML document )
what it does exactly?
Thanks
Prabaharan
Edited by: Prabaharan on Aug 21, 2008 12:02 AM -
Receiver File Error while using Dynamic Configuration
Hi All,
My Scenario is from SAP IDOC --> PI --> FIle...
In the mapping i have used the dynamic variable substitution for the receiver file....
The Dyanamic file will be alwasy generated irrespective of the condition for the Mapping...
Now Whenever SAP sends IDOC then file to be created . If the condition is met then there is no problem the file is being created...
But if condition is not met then the error is being thrown in the Communication Channel...
Error occurred while connecting to the FTP server "10.1.999.222:21": java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure '' found in document', probably configuration error in file adapter (XML parser error)'
Note the payload has the dyanmic file generated....
And when i tested the mapping by coping the payload then
I am getting the target with empty ...but with MT_ProductMaster node...
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_ProductMaster xmlns:ns0="http://xyz/Ix_ProductMaster/WMS"></ns0:MT_ProductMaster>
and the error i think bcz of this payload ... but i dont have any option to remove this .... because if condition not met then the root node always will be created...
In CC File Content conversion i have given like this
Record setStructure FileHeader,FileDetail,FileTrailer
FileHeader.fieldSeparator |
FileHeader.endSeparator |'nl'
FileDetail.fieldSeparator |
FileDetail.endSeparator |'nl'
FileTrailer.fieldSeparator |
FileTrailer.endSeparator |
and my MT structure is
MT_ProductMaster 1.1
FileHeader 0...1
FileDetail 0....unbounded
FileTrailer 0...1
Please help me on how to ignore the empty root node... do i need to handle something else???
Regards,
Sridhar ReddyHey
Record setStructure FileHeader,FileDetail,FileTrailer
FileHeader.fieldSeparator |
FileHeader.endSeparator |'nl'
FileDetail.fieldSeparator |
FileDetail.endSeparator |'nl'
FileTrailer.fieldSeparator |
FileTrailer.endSeparator |
and my MT structure is
MT_ProductMaster 1.1
FileHeader 0...1
FileDetail 0....unbounded
FileTrailer 0...1
of course you will get error in content conversion if file is missing any of the parameters expected by FCC.
Right now the Content conversion is expecting several values in your payload(even if blank values) but you don't have any of them hence you get this error.
If you want to deliver empty file,you need to map all the receiver side nodes to some default,so that it is populated to that default (could be blank) if no values are present,then when this comes to content conversion,it will assume the blank value as node and do correct conversion.
If you dont have values in payload but have specified parameters for it on content conversion,then you will get errors as you mentioned in your first post.
Thanks
Aamir
Maybe you are looking for
-
How to monitor/examine threads usage in WebLogic Server?
Hi, I need to monitor andd examine the usage of the threads (execute, non-blocking execute, etc.) in my WebLogic Server (WLS) instance (5.1 SP10 on Solaris 2.6) so that I can check that multi-threading is being used by WLS when executing methods on s
-
Please help! OK I bought the ipod video. I loaded all the music from a friend's library (on my friend's computer) into the ipod and now come home, install the itunes on my computer, plug my ipod into my computer, see the library in faded lettering on
-
Support document for Migration of application fro flex 2 o flex 3
Support document for Migration of application fro flex 2 to flex 3
-
MINISAP Inst. Problem. MBSDATA1.MDF File format not recognizable
Hello friends, I am facing one problem. I have completely installed MINISAP successfully as per the instructions given in the installtion CD. Now the system is not able to recognize the file format of the file MBSDATA1.MBS This is the file that is us
-
How to identify a Table - Edit or Table Amendment in SAP
Dear Experts, There are two options to edit the data existing in the DB tables in ABAP dictionary. 1. Through SE16N and entering &SAP_EDIT.But any amendment in SAP data thorugh this step is recorded in tables : SE16N_CD_DATA SE16N_CD_KEY 2. Thorugh S