Skip to Content
0
Former Member
Sep 26, 2006 at 08:56 AM

Simple Transformation Error: CX_ST_Match_Element

156 Views

Hi All,

I have got an exception as aboved when trying to convert XML file into ABAp strcuture.However, i really can't firgure out what is wrong with matching Element . Could anyone help? or give me some idea how to solve it?

my ST is as follows:

<?sap.transform simple?>

http://www.sap.com/transformation-templates">

<tt:root name="ROOT"/>

<tt:template>

<content>

<tt:loop ref=".ROOT" name="line">

<item>

<Name>

<tt:value ref="$line.myName"/>

</Name>

<Component>

<tt:value ref="$line.myComponent"/>

</Component>

</item>

</tt:loop>

</content>

</tt:template>

</tt:transform>

My XML File is like below:

<?xmlversion = "1.0"encoding = "utf-16">

<Content>

<Item>

<Name>a</Name>

<Component>component1</Component>

</Item>

<Item>

<Name>b</Name>

<Component>component2</Component>

</Item>

</Content>