Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

scripts

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi

if&next-page&= 0

end of page

endif.

regards

3 REPLIES 3

Former Member
0 Kudos

hi

if&next-page&= 0

end of page

endif.

regards

Former Member
0 Kudos

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

Former Member
0 Kudos

hi

u try with

if &page& = &sapscript-formpages&

endof pages