cancel
Showing results for 
Search instead for 
Did you mean: 

SAPSCRIPT-COUNTER_1

Former Member
0 Kudos

Hi all

What is SAPSCRIPT-COUNTER_1 and also tell me when is its value 1 and when is its value greater than 1?

Wit regards

Vijay

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

Counter variable SAPSCRIPT-COUNTERx (x = 0..9). These symbols can be used for counting.

With the option '+' or '-' their value can be increased or reduced by 1 before output.

With the control command DEFINE the value of these counting symbols can be filled

with an initial value.

syntax:

Syntax:

&SAPSCRIPT-COUNTER_x(+)& Increases by 1 the contents

of the counter variable x

(x=0.. 9)

&SAPSCRIPT-COUNTER_x(-)& Decreases by 1 the contents

of the counter variable x

(x=0.. 9)

Assume that &SAPSCRIPT-COUNTER_1& initially has the value 2.

&SAPSCRIPT-COUNTER_1& -> 2

&SAPSCRIPT-COUNTER_1(+)& -> 3

&SAPSCRIPT-COUNTER_1(-)& -> 2

&SAPSCRIPT-COUNTER_1(-)& -> 1

&SAPSCRIPT-COUNTER_1(+0)& ->

&SAPSCRIPT-COUNTER_1(+)& -> 3

rewards points if useful.

regards

sandhya