04-12-2005 7:19 AM
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
04-12-2005 3:02 PM
Hi ,
use field ebelp for PO items na , Y u need another serial number.
04-12-2005 10:14 PM
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