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

Nextpage issue in SAPSCRIPT

RahulKeshav
Active Contributor
0 Likes
452

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

2 REPLIES 2
Read only

venkat_o
Active Contributor
0 Likes
385

<li>Write like below .

/: IF &nextpage& <= &sapscript-formpages&
/:  &nextpage&
/: ENDIF
Thanks Venkat.O

Read only

0 Likes
385

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