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 create counter

joseph_fryda2
Participant
0 Kudos

Hi,
I'm using simple transformation (TR XSLT_TOOL) and I wonder how to create a counter and increment it.
i have this piece of code
<tt:variable name="count" val="0"/>

How can I increment it by 1?

Regards,

Joseph

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor

It can at least be done using an ABAP method and called via tt:call-method (calling static methods)

3 REPLIES 3

Sandra_Rossi
Active Contributor
0 Kudos

Avoid using XSLT_TOOL, its name is misleading (simple transformation is not related to XSLT). Use STRANS instead (or SE80) (or use Eclipse).

Sandra_Rossi
Active Contributor

It can at least be done using an ABAP method and called via tt:call-method (calling static methods)

0 Kudos

Yes this what I've done. I thought there were another method....
Thank you Rossi