cancel
Showing results for 
Search instead for 
Did you mean: 

&nextpage& issue in SAPSCRIPT

former_member187457
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

you can use this field to get total number of pages (&SAPSCRIPT-FORMPAGES&). and then you can check whether the current page (&PAGE&) is the last page or not.

Hope this solved your problem

thanks,

Amish.