on 09-20-2010 6:44 AM
Hi All,
I tried to print the last page number in a separate window with the field &SAPSCRIPTS-FORMPAGES&. But my last page value is not printing When I debugg the script the value is there in the field but before printing new-page event is called.
Can anyone help me to print the last page number in my SAP script .
Thanks & Regards,
Sweta Tyagi
Hi,
Use &SFSY-FORMPAGES& to display total pages.
and &SFSY-PAGE& to display current page.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
try this way.
use this way...
/: IF &NEXTPAGE& EQ 0 "this will trigger when it comes to last page
/: &PAGE&
/: ENDIF
Or
check the Paragaraph format or commad used properly while calling &SAPSCRIPT_FORMPAGES&
Prabhdas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can try this way, do store the total page number in a variable and use that variable throught the page, example in main window at top of all codes, do like,
/: DEFINE &TOTAL_PAGE& = &SAPSCRIPT-FORMPAGES&
& whenever you need just use,
Page &PAGE& of &TOTAL_PAGE&
Thats it, try this way solve your problem, if you come accross any other solution, please share with me
Thanks!
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.