03-08-2010 7:46 AM
Hi All,
I hav an issue in sapscript.
Two pages invoice....
&sapscript-formpages& is 2.
but it shows &nextpage& is 3.
i want to set a condition on the basis of last page.....
if it is a last page .....it should print ....some fields..values....in main window.
&sapscript-formpages& is written in Footer window...
and &nextpage& is written in Main window....
Please suggest me.
Thnx
RK
03-08-2010 7:52 AM
<li>Write like below .
Thanks
Venkat.O/: IF &nextpage& <= &sapscript-formpages&
/: &nextpage&
/: ENDIF
03-08-2010 8:41 AM
Hi V,
if i use ur code ..it will always fail.....
becoz....in my script .....nextpage is always +1....
i put a debug in the script...
and in run time ....the values are:
for Page 1
&page& = 1
&sapscript-formpages& = 1
&nextpage& = 2.
for page 2
&page& = 2
&sapscript-formpages& = 2
&nextpage& = 3.
i dont know why it is doing so....
Plz suggest..
Thnx
RK