Skip to Content
0
Former Member
Apr 27, 2009 at 06:49 AM

Convert XML to flat file with File adapter

267 Views

Hi all.

Trying to configure a file adapter according to the following link.

http://help.sap.com/erp2005_ehp_04/helpdata/EN/d2/bab440c97f3716e10000000a155106/frameset.htm

What i want it to do is the following.

I have the following incoming message:

<header>
	<h_field1></h_field1>
	<h_field2></h_field2>
</header>
<data>
	<d_field1></d_field1>
	<d_field2></d_field2>
	<infotext>
		<i_field1></i_field1>
		<i_field2></i_field2>
	</infotext>
</data>

I want this to become a flat file that looks as follow.

h_field1¤h_field2

d_filed1¤d_field2

i_field1¤i_filed2

Every field in each segment should be concatenated with the ¤ char as separator.

I've done the following:

Content Conversions Parameters

Record Structure: header,data,infotext

header.fieldSeparator ¤

data.fieldSeparator ¤

infotext.fieldSeparator ¤

The adapter just gets into wait mode.

Does anybody know why?

BR

Kalle