Hey guys,
i am new with simple transformation. I read some stuff and try to build my first ST-programm. Now i stuck ...... 😔
Hope you guys could help me. I have build up an internal table and would like to transform it to an excel sheet. I found an article on the net and modified to my useage. It is working for a static table with static colunm number. But what if i have a internal table which column numbers could change?
Look at the coding:
<tt:loop ref=".table">
<Row>
<Cell>
<Data ss:Type="String">
<tt:value ref="FIELD_1"/>
</Data>
</Cell>
<Cell>
<Data ss:Type="String">
<tt:value ref="FIELD_2"/>
</Data>
</Cell>
=> here i want to loop over my internal table columns
<Cell>
<Data ss:Type="String">
<tt:value ref="FIELD_N"/>
</Data>
</Cell>
</Row>
</tt:loop>
I know i have to define a variable but this variable has to count startin from 1 to the end of the table columns. Then i have to concatenate the column name with the variable FILED_XX (like i do in ABAP). How can i achieve this?
thx,
M.