Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Simple Transformation Error: CX_ST_Match_Element

Former Member
0 Kudos

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?>

<tt:transform xmlns:tt="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>

1 REPLY 1

Former Member
0 Kudos

could anyone help me?