on 12-11-2009 11:12 AM
Hello all,
I want to print page total at the end of the page and grand total in the last page in a script. Please let me know where and how do I need to write the code for totla and grand total.
Yuor help is highly appriciated.
Regards,
Pavan
Hi,
Check the following link
[Page total in script|http://wiki.sdn.sap.com/wiki/display/ABAP/Displayingspecificnumberofrecordsperpage.]
Hope this helps you.
Regards,
Rajani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hii
Please be clear whether you want to display the page number with the total pages or the total of some field on a page and last page.
If you want to display the page number at the bottom of page you can do as follows.
Make a window and place it at the end. Now insert a field
&page& - For current page
&Sapscript-formpages& - For total pages
eg. &page& / &Sapscript-formpages& will display <current page> / <Total pages>
Please mark the question as answered if i have answered you correctly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
To display grand total on the last page :
-
Program which calls the SAP Script Form----
call function OPEN_FORM.....
loop at itab.
call function WRITE_FORM....... To display main window details
AT LAST.
SUM.
call function WRITE_FORM
exporting
ELEMENT = 'ABC'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'TOTAL'........................ To display grand total window
ENDAT.
ENDLOOP.
I hope it helps you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
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.