09-27-2006 8:37 AM
How to get the last page SAP Script form.
I want to print a specific information in the last page of SAP form (Script). Please tell me how to get the last page number.
Regards
09-27-2006 8:40 AM
Hi
You have to check the system variable &NEXTPAGE&, if it's 0 it means you're in the last page.
From SAP Help:
This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .
Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.
/: IF &NEXTPAGE& = '0'
Last page
/: ENDIF
Max
09-27-2006 8:40 AM
Hi
You have to check the system variable &NEXTPAGE&, if it's 0 it means you're in the last page.
From SAP Help:
This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .
Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.
/: IF &NEXTPAGE& = '0'
Last page
/: ENDIF
Max
09-27-2006 8:41 AM
Hi Kiran,
The variable SAPSCRIPT-FORMPAGES contains the total number of pages in current Form.
So you can check the condition -
IF &PAGES& = &SAPSCRIPT-FORMPAGES&.
Print information
ENDIF.
Hope this helps!
Regards,
Saurabh
09-27-2006 8:42 AM
Hi Kiran.
& SAPSCRIPT-FORMPAGES& -> this will give the last apge no
09-27-2006 8:51 AM
hi,
& SAPSCRIPT-FORMPAGES& -> last page
so chk &PAGES& = & SAPSCRIPT-FORMPAGES&
rgds
anver
pls mark hlpful answers