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: 

SAP script display serial no

Former Member
0 Kudos
206

Hi All,

I am modifying madruck. I want to display multiple items with sr. no

Is there any counter in sapscript to display the number of material in the script.

Regards,

Dilip

2 REPLIES 2

Former Member
0 Kudos
40

Hi ,

use field ebelp for PO items na , Y u need another serial number.

Former Member
0 Kudos
40

Hi Dilip,

<b>There are ten counters in SAPScripts SAPSCRIPT-COUNTER_x (x=0.. 9)</b>

You can increase or decrease the value of a SAPSCRIPT-COUNTER_x (x=0.. 9) counter

variable by 1, before the current counter value is printed.

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)

If you want to change the value of a counter variable without actually printing the new value, use

this formatting option together with an additional option to set the output length to 0 (see above).

If you want to set a counter variable to some specific value, use the DEFINE control command.

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

Hope that Helps!

Rishi