cancel
Showing results for 
Search instead for 
Did you mean: 

Reg: sap script counter

venkata_reddy6
Participant
0 Kudos

Hi friends, very urgent, plz help me.

I am using DEFINE&SAPSCRIPT-COUNTER_0& = 0.

I want to increase this number per each line item in the layout.

so i am doing like &SAPSCRIPT-COUNTER_0(+)&. this is working fine when i used paragraph format in the command editor of the layout. but it is printing in the layout as well. but what i want is, it has to increase but should not print on the layout. so that i used command prompt in the command editor. then it is not getting increased.

Regrads,

venkat

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

use &SAPSCRIPT-COUNTER_0(+1)& in ur window editor and call this window in ur loop.counter will automatically increase

don't forget to put command line (/:)

if useful reward points.

SIddhartha Prakash

Answers (1)

Answers (1)

former_member624107
Contributor
0 Kudos

use <b>/:</b>

venkata_reddy6
Participant
0 Kudos

Hi Sheeba, Thanks for your response.

If I use /: the counter is not getting increased.

Regards.

former_member624107
Contributor
0 Kudos

Hi..

better use a variable in the program .. n increment for each line item....