on 10-07-2009 8:01 AM
Dear experts,
In my file to jdbc scenario, I am doing an NFS and picking up a tab-delimited file . The file has 38 fields. But it has been noticed that when the adapter picks it up some data is being omitted.
For eg, here is a sample:
Consider the column names are:
Number, Code, Desc,Fname, Lname, Title, Nickname, FunctCode,Email,Phone
If the actual data in the file is:
001, acd123,prodqt,George,Smith,Mr., Gsmith,mgr,gsmith@m,+643456789
After PI picks it up and after FCC; it looks like below:
<Number>001</Number>
<Code>acd123</Code>
<Desc>Gsmith</Desc>
<Fname>mgr</Fname>
<Lname>643456789</Lname>+
<Title>Null</Title>
<Nickname>Null</Nickname>
<FunctCode>Null</FunctCode>
<Email>Null</Email>
<Phone>Null</Phone>
If you notice, the Fname, Lname,Title and Email data are omitted. Same happens to rest of the records. I cannot figure out what is wrong.
There are no header or trailer records in the file, only detail record which can have many rows.
My FCC details are as below:
ignoreRecordsetName = false
Detail.endSeparator = 'nl'
Detail.fieldSeparator =
Detail.lastFieldsOptional = yes
Detail.fieldNames=<field names>
Please help...
Thank you
Hi,
This should work for you without any issue. Check once -
Detail.fieldSeparator = '0x09'
Detail.endSeparator = 'nl'
Thanks,
Apu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can you try removing the option lastFieldsOptional.
also try giving filedFixedLenths and FieldNames as well.
Regards,
Chandra.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Can you try some thing like this
Detail.fieldFixedLengths
Detail.fixedLengthTooShortHandling as Cut
Regards,
Chandra.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Give Detail.fieldSeparator = ','
Regards
Suraj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Then why your input file is having vaues separated by comma??
can you past the actual input that you are getting?
Also if File adapter is unable to understand you fieldSeparator as TAB, then you can try this.
Open a notepad. Put a tab (by pressing tab key), copy it and paste it in the File adapter. and retest your interface.
Regards
Suraj
Dear experts,
In my file to jdbc scenario, I am doing an NFS and picking up a tab-delimited file . The file has 38 fields. But it has been noticed that when the adapter picks it up some data is being omitted.
For eg, here is a sample:
Consider the column names are:
Number Code Desc Fname Lname Title Nickname FunctCode Email Phone
If the actual data in the file is:
001 acd123 prodqt George Smith Mr. Gsmith mgr gsmith@mail +643456789
After PI picks it up and after FCC; it looks like below:
<Number>001</Number>
<Code>acd123</Code>
<Desc>Gsmith</Desc>
<Fname>mgr</Fname>
<Lname>643456789</Lname>
<Title>Null</Title>
<Nickname>Null</Nickname>
<FunctCode>Null</FunctCode>
<Email>Null</Email>
<Phone>Null</Phone>
If you notice, the Fname, Lname,Title and Email data are omitted. Same happens to rest of the records. I cannot figure out what is wrong.
There are no header or trailer records in the file, only detail record which can have many rows.
My FCC details are as below:
ignoreRecordsetName = false
Detail.endSeparator = 'nl'
Detail.fieldSeparator =
Detail.lastFieldsOptional = yes
Detail.fieldNames=<field names>
Please help...
Thank you
yes, that will be inserted by default.
No need to specify ignoreRecordset = false.
just check by not mentioning this parameter in content conversion
one more work around as you fcc parameters look perfect,
try removing lastFieldsOptional as this parameter is obsolete....as per help.sap.com
http://help.sap.com/saphelp_nw70/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
User | Count |
---|---|
84 | |
10 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.