‎2008 Jul 20 10:46 AM
Hi Friends...........
I got a problem in Script that I added a field called Serial No for that I want 1 2 3 4 5.......like that for each record........will u plz help me ........
‎2008 Jul 20 10:54 AM
Use this code in your sap script for page no.
Page No : &PAGE& of &SAPSCRIPT-FORMPAGES(R)& &NEXTPAGE&
You will get: Page No : 3 of 12
and next page as 4
‎2008 Jul 20 10:57 AM
no not like that..i don't want page syntax.........
I want serial no for each record like........
S.No. date amount document no
1 xxxxxx xxxx xxx
2 xxxxxxx xxxxx xxxx
3 xxxxxxx xxxxxx xxxxx
I am getting date, amount ,document no....how can I get serial no........that is my issue...
‎2008 Jul 20 11:28 AM
If you r printing through internal table by loop. you can make a variable mctr and increase it in loop. use this varr. into your sap script as you passed another varriable.
you will get serial no too.
‎2008 Jul 20 11:49 AM
Use SAPscript Field SAPSCRIPT-COUNTER.
&SAPSCRIPT-COUNTER_x& (x = 0.. 9):
These fields represent ten counter variables that you can use in your text and forms for any counting purposes. You can use the u2018+u2019 and u2018-u2019 formatting options to increment or decrement a counter before its value is printed. You can use the DEFINE control command to assign any specific value to a counter.
Regards,
Joy.