on 11-09-2009 6:58 AM
Hi All,
I have a requirement where i need to print leading zero's when printing the total number of pages in a smartform.
I have used Page &sfsy-page& of &sfsy-formpages(Z3.0)&
But for the above we get the output as Page 1 of 2, Page 2 of 2. and so on...
But my requirement is it shoud come as Page 1 of 002, Page 2 of 002.
The total number of pages will always be less than 999. and we need total of 3 numbers displayed.
Ex: Page 1 of 002 or Page 1 of 010 or Page 1 of 100...
Thanks,
Hari Prasad.
Hi,
try this.
Take a variable of type n,length 3.
w_tot(3) type n.
Move sfsy-formpages to w_tot.
Then print this variable .
&sfsy-page& of &w_tot&.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.