on 02-09-2009 1:19 PM
hi all,
I have a script that prints invoices. I am trying to display page no as Current page / total no of page.
I am using &PAGE& / &SAPSCRIPT-FORMPAGE&. when I give invoice numbers as input, if each invoice has different no of pages for example 1st invoice - 2 pages; 2nd invoice - 3 pages; 3rd invoice - 2 pages, while printing it correctly counts total no of pages as 7 pages . But, while printing current page is not printed sequentially from 1 to 7. instead, for each invoice it recounts from 1 i.e. 1/7, 2/7, 1/7, 2/7, 3/7, 1/7, 2/7.
how can I rectify this,
Thanks,
Rajan
Hi Rajan
U r right
it does exactly like wat u specified
to rectify
just store the &PAGE& bfore entering in new invoice in a temporary variable and nxt time u print tempvariable+ &PAGE& instead of just &PAGE&
Hope it helps
Regards
Vikas C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Solved on my own
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
U can try giving all the WRITE_FORM,START_FORM , END_FORM within the same OPEN_FORM and CLOSE_FORM.
I think its taking different invoices as different jobs.
Thanks,
Nithya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
try giving &page& / &sapscript-jobpages&.
This prints 1/2 ,2/2.
1/3,2/3,3/3.
thanks.
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.