Application Development and Automation 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: 
Read only

simple transformation create counter

joseph_fryda2
Participant
0 Likes
1,422

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
Read only

Sandra_Rossi
Active Contributor
1,113

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

3 REPLIES 3
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,113

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

Read only

Sandra_Rossi
Active Contributor
1,114

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

Read only

0 Likes
1,113

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