on 12-04-2006 11:32 AM
Hi All.
I am having Idoc to file Scenario,
File/File content conversion/ (reciever).
In the file contenet conversion parameter , I am using two structure detaila and detailb.
I am using these properties for configuration out put as text file but comma delimated.
I make it like this :
detaila.fieldFixedLengths =1,2,4,6,10,0
detailb.fieldFixedLengths=2,8,6,8,25,7,8,0
detailafixedLengthTooShortHandling Cut
detaila.endSeparator 'nl'
detaila.fieldSeparator ,
detailb.fixedLengthTooShortHandling Cut
detaila.fieldSeparator ,
detailb.endSeparator 'nl'
Here in the output file it is appending comma for each field and appending in the end of the record also.
Suprisingly in the above given configuration, which is same for detaila and detailb. The detaila does not have comma (,) in the end of the record . while detailb output has comma at the end of the record.
I did not understand why it is appending comma in the second structure, while configurations are same for both.
Please through some lite on this.. Thanks
closing. thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ram,
Are u also considering the <b>,</b> as part of your string,
then just have a look at these options for fieldSeparator
If you specify a character string here, it is added as a separator to all columns except the last. You can also specify this string in addition to NameA.fieldFixedLengths.
If you made no specification for NameA.fieldFixedLengths, <b>this is the only specification to identify the individual columns in a row.</b>
If you made a specification for NameA.fieldFixedLengths, the length of the <b>separator is not taken into account.</b>
<b>Try using without fieldSeparator</b>
Check this link:
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm
Regards
Sachin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Denise for pointing out the mistake but it does not solve the pupose. the comma is still appending in the end of the file after last record.. Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please remove last 0 from detailb.fieldFixedLengths=2,8,6,8,25,7,8,0 and try again.
Thanks,
Tuhin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ram,
Just to make sure:
"detailafixedLengthTooShortHandling Cut" <-- The missing "." is present in your configuration?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.