‎2006 Oct 07 6:34 AM
Hii
I need to print sum of all line items in a SAPScript at the last page of the script. I am able to get that figure in SAPSCRIPT structure in the layout . But when i compare this with PAGE attribute to check the last page .its not working.
How could this functionality be achieved ?
Thanks & Regards
Ajitabh
‎2006 Oct 07 7:23 AM
Hi Ajitabh
use &NEXTPAGE& = 0. this ensures its the last page of the script.
Thanks
Kapil
‎2006 Oct 07 6:41 AM
H many pages are u having in ur script.And where exactly u want to print the sum.
Regards
‎2006 Oct 07 6:46 AM
Hii Ravi
I want to print the sum at the last page of the script. Right now i have put a condition as
&PAGE& = &SAPSCRIPT-FORMPAGES& in the script window to check the last page of script and if the condition is true then print the Sum .But this is not working.
Hope you got my question Now?
Ajitabh
‎2006 Oct 07 6:50 AM
To my understanding
U can do one thing if u are printing the sum in the main window itself, then keep text element for sum.Then in print program use at last event and put the write_form in this particular event.
For more details, let me know.
Regards
‎2006 Oct 07 7:12 AM
Hi,
After the main window processing comepleted, then create a element and call that element if you want to change the Driver program, if you do not want to change the Driver program, After the minwindow, just write like
/: IF &PAGE& = &SAPSCRIP-FORMPAGES&
Write your lines over here
/: ENDIF.
Make sure you don't use any dots with your IF / ENDIF-statements
Regards
Sudheer
‎2006 Oct 07 7:23 AM
Hi Ajitabh
use &NEXTPAGE& = 0. this ensures its the last page of the script.
Thanks
Kapil