Skip to Content
0
Jan 31, 2007 at 01:18 PM

XML-IDOC to Plain File: File Receiver Cnt Conversion Problem Nested Stucts

19 Views

Hi all,

I have an IDOC-XI-File scenario and I have a problem with the file receiver adapter and the content conversion parameters when the final data type has nested structures. Imagine that I have something similar to the following:

My desire is to get something similar to this in the output file:

SEGMENT0;HEADER

SEGMENT1;100

SEGMENT2;0200000716

SEGMENT3;1000

SEGMENT2;0200000717

SEGMENT3;1000

SEGMENT3;1001

SEGMENT3;1002

But what we are getting is this:

SEGMENT0;HEADER

SEGMENT1;100

SEGMENT2;0200000716;SEGMENT3;1000

SEGMENT2;0200000717;SEGMENT3;1000;SEGMENT3;1001;SEGMENT3;1002

The content conversion parameters of the file receiver are as follow:

Recordset Structure: IDOC,EDI_DC40,E1STATS,Z1HDSTAT,Z1ITSTAT

IDOC.fieldSeparator: ;

IDOC. endSeparator: ‘nl’

IDOC. addHeaderLine: 0

EDI_DC40.fieldSeparator: ;

EDI_DC40. endSeparator: ‘nl’

EDI_DC40. addHeaderLine: 0

E1STATS.fieldSeparator: ;

E1STATS. endSeparator: ‘nl’

E1STATS. addHeaderLine: 0

Z1HDSTAT.fieldSeparator: ;

Z1HDSTAT. endSeparator: ‘nl’

Z1HDSTAT. addHeaderLine: 0

Z1ITSTAT.fieldSeparator: ;

Z1ITSTAT. endSeparator: ‘nl’

Z1ITSTAT. addHeaderLine: 0

I’ve tried to use the parameter beginSeparator=’nl’ for the segments Z1ITSTAT but it’s not working. I haven’t been able to find a solution in the other forums. Can anybody help me?

Thanks in advance

Roger Allué Vall