Quantcast
Channel: SCN : Unanswered Discussions - ABAP Development
Viewing all articles
Browse latest Browse all 8768

ST Transformation - Flat itab to Hierarchical XML

$
0
0

Hello Transformation experts!

I have a simple (I hope) question.  Suppose I build an internal table itab that has the following data (assume both columns are strings):

 

T    F

---------

T1, F1

T1, F2

T1, F3

T2, F1

T2, F4

T3, F2

T3, F5

....

I would like to create a hierarchical XML that looks like this

<T name='T1'>

     <F name='F1' />

     <F name='F2'/>

     <F name='F3'/>

</T>

<T name='T2'>

     <F name='F1'/>

     <F name='F4'/>

</T>

<T name='T3'>

     <F name='F2'/>

     <F name='F5'/>

</T>

 

I have seen the <tt:group> command, but it is not clear how to apply it.  Any help would be appreciated!


Viewing all articles
Browse latest Browse all 8768

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>