Application Development and Automation 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: 
Read only

scripts

Former Member
0 Likes
497

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
Read only

Former Member
0 Likes
478

hi

if&next-page&= 0

end of page

endif.

regards

3 REPLIES 3
Read only

Former Member
0 Likes
479

hi

if&next-page&= 0

end of page

endif.

regards

Read only

Former Member
0 Likes
478

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

Read only

Former Member
0 Likes
478

hi

u try with

if &page& = &sapscript-formpages&

endof pages