cancel
Showing results for 
Search instead for 
Did you mean: 

Diplaying segment name in output file using receiver FCC

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

solotion posted in this post

madanmohan_agrawal
Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

can we use any FCC parameters to achieve this. if so please let me know

Regards

Deepika

Former Member
0 Kudos

Deepika,

We dont have any file content conversion parameters for this.

Regards,

---Satish

Former Member
0 Kudos

Hi,

if we use AF_Modules/StrictXml2PlainBean. for nested structures, upto how many levels will we be able to read.? also let me know if we have any module processors do work with nested structures of n levels

Regards

Deepika