on 09-13-2010 3:46 PM
Hi All,
I'm working on a CSV file receiver in the below format.
Srinivas,123,xyx,K
Gawshan,123,xyx,R
Himaval,123,xyx,Q
I want to strip off the field value on the end K, R and Q while writng the file in CSV, using some file adapter setting.
Any suggestions would be hightly appretiated.
Thanks
AJ
> I want to strip off the field value on the end K, R and Q while writng the file in CSV, using some file adapter setting.
Lets say the field name is FIELD1 in which K comes, so add below parameters in your FCC..
FIELD1.fieldFixedLengths = 0
FIELD1.fixedLengthTooShortHandling = Cut
Similarly you can do it for R & Q fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
one possible solution is create a separete segment for those values that you have to use in variable substitution.
so, when create the FCC you can define
<row>.fieldName = XX
<row>.fieldFixedLengths = 0
<row>.NameA.fixedLengthTooShortHandling = Cut
so you can handle the conversion of this segment separatly
hi,
if you separate the segment as i sugguested you before,you can use CSV for the file structure and FixedLength for the segment that contain the values for Variable Susbtitution.
I mean
<Root>
<FileData>
-
<field>
-
<field>
-
<field>
-
<field>
-
<field>
<VariableSubstitutionSegment>
-
<fieldXX>
-
<fieldXX>
So for segment FileData you can use <row>.fieldSeparator and for segment VariableSubstitutionSegment you can use <row>.fixedFieldLength
its clear my point??
Rgds
Edited by: Rodrigo Alejandro Pertierra on Sep 14, 2010 12:43 PM
Hi.
if you use a mapping don't map this value else you can use the parameter fieldFixedLengths however this parameters works if the length of fields are known and the last field put 0.
http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
if you dont want to send this data to the target file, why you mapp it?
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.