04-20-2007 11:42 AM
Hi,
How to find the last page.
If last page reached.
(print) end of page.
else.
(print)go to next page.
endif.
I have used this
if &nextpage& = &sapscript-formpages&
end of form.
else
continue to &nextpage&
endif.
I am getting the else part while coming to if condition it is printing continue to 0 instead of printing end of form.
Please solve it.
Regards,
Nasru
04-20-2007 11:43 AM
04-20-2007 11:43 AM
04-20-2007 11:45 AM
u may try this one it may solve u r problem
/: IF &LASTPAGE& EQ '1'
*LT &SAPSCRIPT-JOBPAGES&
t1 Last Page<>
/: ELSE
t1 continued on Page &NEXTPAGE&<>
/: ENDIF
reward if it helps u
Vijay Pawar
04-20-2007 11:47 AM