Counter in SAPscript

In SAPscript, sysem has symbol SAPSCRIPT-COUNTER_x (x=0...9) for apply in your program. You can increase or decrease by 1 by option (+) or (-).

Syntax


&SAPSCRIPT-COUNTER_x(+)& Increase by 1
&SAPSCRIPT-COUNTER_x(-)& Decrease by 1

Example

&SAPSCRIPT-COUNTER_1&     =      1
&SAPSCRIPT-COUNTER_1(+)& = 2
&SAPSCRIPT-COUNTER_1(-)& = 1

Post new comment