Sender FCC keyfield problem
Hi all
My input text file is like this.
KAC v1 v2 v3 v4
5640 v51 v61 v71 v81
5640 v52 v62 v72 v82
5640 v53 v63 v73 v83
5640 v54 v64 v74 v84
which is a tab separated file.
Here I row is header field and Remaining Rows are Item values.
In this case what to set the keyfileld since header and body fields are different?
Hi Gabriel,
One workaround for this issue is in your record set structure you can give as header,1,Item,9999999. Here you are saying item will repeat 9999999 these many number of times. You can check with your legacy users or functional users till date the maximum number of records in a peak time. I dont think you will have more than this. If you want you can add one or two more 9s after checking with them. Please put the maximum number always to be on the safer side.
Then you should give this content conversion parameters:
Document Name: record (in my example i took like this you can change according to your message type)
Document Namespace:http://gabriel/demo
Recordset Namespace:http://gabriel/demo
Recordset Structure: header,1,Item,9999999
header.fieldSeparator: tab or five spaces
header.endSeparator:'nl'
Item.fieldSeparator:tab or five spaces
Item.endSeparator:'nl'
ignoreRecordsetName:true
header.fieldNames:header1,header2,header3,header4,header5
Item.fieldNames:Item1,Item2,Item3,Item4,Item5
I just tested with this parameters and it is working. The xml we see in moni before message processing is:
<?xml version="1.0" encoding="utf-8"?>
<ns:record xmlns:ns="http://gabriel/demo">
<header>
<header1>KAC</header1>
<header2>v1</header2>
<header3>v2</header3>
<header4>v3</header4>
<header5>v4</header5>
</header>
<Item>
<Item1>5640</Item1>
<Item2>v51</Item2>
<Item3>v61</Item3>
<Item4>v71</Item4>
<Item5>v81</Item5>
</Item>
<Item>
<Item1>5640</Item1>
<Item2>v52</Item2>
<Item3>v62</Item3>
<Item4>v72</Item4>
<Item5>v82</Item5>
</Item>
<Item>
<Item1>5640</Item1>
<Item2>v53</Item2>
<Item3>v63</Item3>
<Item4>v73</Item4>
<Item5>v83</Item5>
</Item>
<Item>
<Item1>5640</Item1>
<Item2>v54</Item2>
<Item3>v64</Item3>
<Item4>v74</Item4>
<Item5>v84</Item5>
</Item>
</ns:record>
When you put tab if it dont work then nab the tab as mentioned in this blog:
/people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
Regards,
---Satish
Similar Messages
-
Hierarchical Structure in Sender FCC
Hi all,
I am working on a file to file scenario.
The sender data type is in following format -
File_Header
Record_ID
Filler_S
Batch_Header
Record_ID
Filler_S
Payment_Node
Record_ID
Filler_S
All the nodes are with key fields.
File_Header Keyfield - 1, Batch_Header Keyfield - 2, Payment_Node Keyfield - 3.
I want to know whether it is possible to have FCC on sender File adapter for this hierarchical structure.
The source XML message should be in following format -
<?xml version="1.0"; encoding="UTF-8"?>
<Test>
<File_Header>
<Record_ID>1</Record_ID>
<Filler_S>12</Filler_S>
</File_Header>
<Batch_Header>
<Record_ID>2</Record_ID>
<Filler_S>12</Filler_S>
<Payment_Record>
<Record_ID>3</Record_ID>
<Filler_S>12</Filler_S>
</Payment_Record>
</Batch_Header>
</Test>
Currently I am getting source XML in this format.
<?xml version="1.0"; encoding="utf-8" ?>
<ns:Test xmlns:ns="urn:testhierarchy:fcc">
<File_Header>
--<Record_ID>1</Record_ID>
--<Filler_S>01</Filler_S>
</File_Header>
<Batch_Header>
--<Record_ID>25</Record_ID>
--<Filler_S>20</Filler_S>
</Batch_Header>
<Payment_Record>
--<Record_ID>6</Record_ID>
--<Filler_S>22</Filler_S>
</Payment_Record>
</ns:Test>
i.e. Payment_Record and Batch_Header are at same level. I want Payment_Record under Batch_Header.
Kindly let me know if hierarchical structures can be handled in sender FCC. If yes then what should be the FCC parameters?
Thanks i.Hi Minal,
We have Source structure same as yours. I am trying to use FCC to handle multiple hierarchy levels at sender side.
Can you please let me know if you have some solution for it?
Thanks,
Pooja. -
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 -
Hi,
I am facing an error in sender fcc its:
Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 1 according to structure 'Pricebook_Data':java.lang.Exception: ERROR in configuration / structure 'Pricebook_Data.': More elements in file csv structure than field names specified!
My source structure is :
Pricebook_abc (root1)
Pricebook_Data (root2)
field1
field2
and my sender fcc is:
Document name : Pricebook_abc
Document namespace: urn:xxxxxxx
Recordset name: pricebook
Recordset structure: Pricebook_Data,*
Recordsets per message: *
Pricebook_Data.fieldNames field1,field2
Pricebook_Data.fieldSeparator ,
Pricebook_Data.endSeparator 'nl'
ignoreRecordsetName true
I am unable to rectify the error. Please help me.
Thanks & Regards,
Pragathi.
Edited by: Pragathi on Jan 15, 2010 1:40 PM
Edited by: Pragathi on Jan 15, 2010 1:41 PM
Edited by: Pragathi on Jan 15, 2010 1:41 PMHi,
The error was saying that.. the no of fields you are getting in the source are diff from that you have mentioned in FCC.
Can you just copy and paste the source csv file? and the exact XML structure?
Regards,
Swetha. -
Specify Starting Position in Sender FCC
Hi Experts Team,
I wish to specify the starting position of field in sender FCC.
can i????
regards,
kandaHi,
I think positions we can't identify with FCC statements. fieldfixedlengths itself system will identify automatically. If column have any specific character indication we can do easily. Check it according to your requirement. -
Sender Channel Connection problem
Hi ,
I am getting the following error in the Adapter monitoring under RWB.
<b> Error: ConnectException: Connection refused: connect
- 2007-05-04 09:41:42 CEST: Processing started</b>
This happen all out of a sudden. I changed nothing in the Sender CC.
I also added a "\" towards the end of the directory access path in the sender CC.
What do you think is the problem ??HI,
Are you using FTP as sender?
This problem is either caused by incorrect firewall / packet filter settings or an incorrect configuration of the FTP server. Also make sure that you have correctly specified the host name / IP address and port of the FTP server.
Changing the connection type from 'active' to 'passive' (or vice versa) might additionally help to work around the incorrect firewall configuration
see SAP Note No:821267
Regards
Chilla -
Hi,
How to specify the sender fcc details for following structure
<header>
<Record>
<field1>
<field2>HI Guys,
How about the sender file is of such format
Header1,Item1 details
Header1,Item2 Details
Header2, Item1 Details
Header2,item2 Details
Header3, Item1 Details
I need to map this file format to IDOC strucutre, In Header there is a filed which is the Key value to identify the change in header.
Eg: Order Number is the field in the following file which identifies the change in header: First three fields are header details and following are the item details:
ABC,ON1,22,Item1,XX
ABC,ON1,33,Item2,FF
ABC,ON2,44,Item1,MM
ABC,ON3,66,Item1,LL
How would be the Data type strcuture to capture this type of falt file strcuture and FCC parameters?
I need to send a single IDOC per one header with multiple Items. is it possible to achieve?
Thanks
Rajeev -
Unable to send crash/error problem report
Hi There,
I have recently noticed that when a program I am running either force quits on it's own or I have to manually force quit the program, I am unable to send crash/error problem report to Apple. This has happened for all my programs from Safari and iTunes to recently Microsoft Word. The crashing messed up my internet as I had to give up using Firefox (because it kept crashing and wouldn't send a report) so I downloaded Chrome.
Yesterday, Microsoft Word had to force quit because I manually quit the program but it never closed. It kept running in the background at 192% under my operating processes. When I force quit Word, it gave me the option to report the problem or ignore it. I chose to send a report but once that Problem Report screen loaded, it would not let me send to Apple, stating "Your submission could not be submitted. Please try again later."
I have tried numerous times since all to no avail. As I mentioned, this happens on a lot of programs lately and I don't know what to do to fix it. Below are the specs of my Macbook. I can copy the problem details, but is lengthy.
Any help/feedback is greatly appreciated.Welcome to Apple Support Communities.
Apple is apparently no longer accepting crash reports for 'Leopard' OS X 10.5.8.
https://discussions.apple.com/message/17544781#17544781
Typical disk-maintenance activities when crashes occur include using Verify, and Repair Permissions on your hard drive (probably labeled Macintosh HD), using Disk Utility.
10% to 15% of hard-drive capacity is generally acknowledged as the minimum amount of free space needed for adequate performance. -
Sender FCC , problem with Repeating Field under a Sub-structure
Hi,
I have an Input File as
D,TH_ ,10/31/2008,ABC,pieces
PF, 10/31/2008,11/2/2008,11/3/2008,11/4/2008
P,mat,CS,100,120,130,125,150,170,120
P,mat,CS,100,120,100,110,140,120,110
I need to Implement an FCC to convert this to
a Structure like this
Recorset
Header 1....1
Unique Id
date Time
CustomerCode
Code
Unit
Dates 1
date 1....n
Products 1....n
product 1
unit 1
quantity 1.....n
This this is a Variable recordset type ( i.e each ROW has a Different Structure) the following keys D,PF,P are defined, for the header, dates, and Product Information.
The Following FCC parameters are applied
Document Name : MT_FILE_INPUt
Document NameSpace = http://xyz.com
Recordset Name = "Recordset"
Recordset structure = Header,1,Dates,1,Products,*
keyname = Key
Keytype = String
Header.FieldSeprator = ,
Header.FieldName = Unique Id,date Time,CustomerCode,Code,unit
Header.keyValue = 'H'
Dates.FieldSeprator = ,
Dates.Fieldname = 'date'
Date.keyValue = 'PF'
Products.FieldSeprator = ,
Product.FieldName = product,unit,quantity
Product.KeyValue = 'P'
Now the Problem is as Follows:
1) I have a Repeating Field Quantity under the Product and Date under the Dates Sub-structure, This is not getting Repeated at all.
Is there a Way to achieve the same
2) Another Point is That, i do not want to take the key Value in the XML structure after converion, is there a way to avoid it
Please let me know if any blogs are available
Any help would be appreciated.
Thanks,
Best Regards
Abhishekcan u try.. i haven't tired this.
quantity is occuring multiple times, but if that is fixed no# of occurance,, you can can try with this?
P,mat,CS,100,120,130,125,150,170,120
Product.FieldName = product,unit,quantity,quantity,quantity,quantity,quantity,quantity
let me try ..
As long as the quanitfy defined under Product.FieldName are more than the input msg quantity values (100,120..), you will be safe...
Edited by: Anand on Oct 31, 2008 3:54 PM -
Problem with End separator in Sender FCC channel
Hi Experts,
If i use a special character as field separator it is working.The same character is not recognized as end separator.
We tried all different options ,still its not working.
Thanks,
Karthikeyan.Hi Aamir,
We tried with single quotes and also as Hex values too.
As mentioned earlier, it is working as Field separator not as end separator.
Thanks,
Karthikeyan. -
Hi All,
I have a scenario where my source file is a flat file.I am using a FCC at sender side to convert the flat file into XML. My source side looks somting like this:
Root
Header
Data
Footer.
Header and footer will repeat only once , but data can be repeated n number of times.
To handle this i am using keyfield value in my FCC. But the problem is " for data record key field value can be X or Y" ie it can start with X as well as Y.
Can anyone please provide me solution for this problem.
Thanks in advance,
SivaHi Sivarama
You can use 2 nodes for the data records and pick up the data records with key x or y.
or
you can pick up the entire data records by using data.fieldseparator ='nl' and can then do the key field validation in the mapping using UDfs.
Thanks
Sabyasachi -
Content conversion in sender file adapter problem
Hello,
I receive a flat file with the following structure:
HEADER;...fields;
ITEM;...fields;
ITEM;...fields...;
HEADER;...fields;
ITEM;...fields...;
...etc.
and I am converting it to xml with the same structure. The Problem by the conversion is that the result looks something like this:
HEADER;...fields;
ITEM;...fields;
ITEM;...fields;
ITEM;...fields;
HEADER;...fields
HEADER;...fields.
So, all the ITEM recordsets are ordered to one HEADER structure and the other HEADER structures have no ITEMs.
Do you have a suggestion how I can get this right?
Thanks!!
Best Regards,
MirceaHi,
Can you provide with the details of FCC parameters you have used ??
The problem might be there in the occurance..
Regards,
Chandra -
Hi,
I have File to JDBC sceanrio, File is on FTP server and data is added in file in every 15 mint. while adding data to file its takes some time.
My problem : when data is being added to file, sender adapter picks the file when addition of data is not completed. so it picks incomplete file and send to target.
What can be the possible solution to be used for this problem or what configurtaion can be done in CC required.
Thanks
Laxmi BhushanHi Laxmi,
is PI picking file in NFS mode or FTP mode?
With NFS mode, you can use setting wait for file modification check. Same setting is available for FTP but it doesnt not work for FTP.
Another option could be ask Source system to generate file with a temporary name & rename once file is writen completely.
Regards
Sushil -
Sender file Adapter, problem with proxy authentication
HI all,
i'm having some problems with the following scenario, i need to configure a sender file adapter which connects to a FTP server. To connect this FTP server i need to set a proxy (and so a username and a password), and i don't know how to do.
From note 821267 seems that the proxy is not supported for an FTP adapter, but the are some workaround like the ones described in the following link
Re: Proxy server inFTP adapter
http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=57137
They don't work in my case as i need to se two username (the one for proxy and the one for the ftp server) and i cannot force the proxy use for all XI applications.
Can anyone help me?
Thanks a lot
AldoProxy is necessary to exit the customer local intranet. It's not possible to go outside network without going through the proxy server.
I cannot set the proxy server in file adapter as it's not supported like described in SAp note, a possible workarounf is to force the proxy server in the J2ee stack but in this way all PI calls would use that proxy.. -
Hi,
I am having problems to get my sender mail adapter running.
I configured it with the following parameters:
<i>Transport protocol: POP3
Message Protocol: XIALL
Adapter Engine: Integration Server
URL: pop://server
username + pw
poll intervall: 1 Min.</i>
The adapter is active and if I look into the adapter monitoring everything seems to be fine (green light).
But the adapter doesn't poll the messages from the mail account and I cannot see any activity in the message monitoring.
If I try the same configuration with Thunderbird everthing works fine. Also my receiving mail adapter works without any problems for the same account.
Do you have any idea what the problem could be or how I could find out what my mail adapter is doing?
Thanks,
AndreasHi all, hi Andreas,
have you solved you problem? Could you please describe how you did it.
I have the same situation and I haven't any ideas how can I manage it.
I checked all parameters and compared they with documentation. Everything seems to be ok.
I didn't see any messages in the message monitoring, but in the chanel monitoring I found follows:
exception caught during processing mail message; java.net.ConnectException: Connection refused: connect
I tried the same configuration with email client and it worked. I tried change POP on IMAP with URL imap://server/folder. It didn't work also.
Could you please help me?
Thank you in advance,
Anna
Maybe you are looking for
-
How to check the JDK version of a compiled java file
can anybody tell me how to check the JDK version of a compiled java file ? Edited by: gbhatia8 on Sep 9, 2010 7:04 AM
-
After 9.0.2 Update on PS-CS2 Can't Save as PSD or jpeg
After startup of my Photoshop CS2 (WinXP), I got a notice of an update of 9.0.2, so I installed it. Now when I try to save files as PSDs or JPEGs, they end up becoming 5CM files, which I can't open. I was very content with CS2 before the update. Is
-
Error: Enum: Enumeration has duplicate entries
I keep getting an error that says: 'Enum: Enumeration has duplicate entries' which results in a blue controller on my front panel that says 'general' on it. I can't delete or right click on it since it disappears if I do, so I can't find on my diagra
-
Possible Performance Issue - CMIS Connector
I don't know whether the Adobe developers read this but when a folder is renamed/deleted using the Drive the request "select * from cmis:document where in_tree(<folder id>)" is sent. Are the all properties really required? For example the request "se
-
Detecting Active Component in a BOM
Hello guys, Wanted to know if there is an easy way to know which componentes in a BOM are the active ones? A way not involving comparing validation date, like if there is a yes or no something that tells me those components in the BOM are the active