on 08-18-2011 1:31 PM
Hello professionals,
I need to map this structure
<message>
<node1>
<ab>1</ab>
<ab>2</ab>
<ab>3</ab>
</node1>
<node1>
<ab>3</ab>
<ab>4</ab>
</node1>
<node1>
<ab>5</ab>
<ab>6</ab>
<ab>7</ab>
</node1>
</message>
So, in the target structure I need to take only the first "ab" occurence in node1:
<message>
<node1>
<ab>1</ab>
</node1>
<node1>
<ab>3</ab>
</node1>
<node1>
<ab>5</ab>
</node1>
</message>
How can I do this? Many thanks for help!
Use the Node function CollapseContext and keep the context of the source field as node1.
Node1 --> CollapseContext --> target field
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use COLLAPSECONTEXT or COPYVALUE(0) function
see this
http://help.sap.com/saphelp_nw04/helpdata/en/26/d22366565be0449d7b3cc26b1bab10/content.htm
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.