on 07-03-2009 2:04 PM
Hi,
we have a idoc to file scenario. we are using FCC at the receiver. the flat file generated should have the segment names before the values .
for example, if the structure is something like this
<root tag>
<serment1>
field1
field2
<segment2>
field1
field2
<segment2>
field1
field2
..
..
the output should be in the below format
segment1 field1value,field2value
segment2 field1value,field2value
segment2 field1value,field2value
can some one guide me how to achieve the same. Also if the segment repeats, in the output also it shoukld appear
Best Regards
Deepika
In mapping, output structure, create an extra field at the beginning and
map that field to a constant value same as the source segment name.
In Receiver FCC, use following configuration.
Recordset Structure: segment1,segment2(specify all segments seperated by comma)
segment1.fieldSeparator : , (it is comma)
segment1.endSeparator :'nl'
segment2.fieldSeparator : ,
segment2.endSeparator :'nl'
specify the same fieldSeparator and endSeperator for the other segments also
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
solotion posted in this post
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Deepika,
In mapping, output structure, create an extra field at the beginning and map that field to a constant value same as the source segment name.
In Receiver FCC, use following configuration.
data.fieldNames = <extra field Name>, field1, field2
data.fieldSeparator = '
hope it helps.
regards,
Madan Agrawal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.