cancel
Showing results for 
Search instead for 
Did you mean: 

SAPSCRIPT SYNTAX for checking If SAPSCRIPT Formpage = ''NEXT'?

Former Member
0 Kudos

Can someone tell me what the syntax would be for this if I wanted to add this logc in my SAPSCRIPT code?

Thank-You.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

1. IF &NEXTPAGE& = 0, indicates the form is printing the last page.

2. &PAGE&, gives the current page no.

3. &SAPSCRIPT-FORMPAGES&, gives the total no of pages in the output.

Rgds,

Pavan

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.

Thanks,

Suma.

Former Member
0 Kudos

well its either:

/: IF &NEXTPAGE& = 0

or

/: IF &PAGE& EQ &SAPSCRIPT-FORMPAGES&