on 07-15-2009 5:30 AM
Hi,
My requirement is to print subtotal and total one below the other at the bottom of last page(In main window). I have used BOTTOM ENDBOTTOM command to display it.
The subtotal is being printed at the bottom but the total is getting printed at the top of page.
Please tell me the command or procedure to display both total and subtotal one below the other at the bottom.
HI,
Please use this..
/:IF &NEXTPAGE& EQ 0
TOTAL...............SUBTOTAL
/:ENDIF
Also pls use a seperate window for printing the sub total/total & place it in the bottom of Page 2 of the script.
Rdgs,
Arnab Sinha
Edited by: Arnab Sinha on Jul 15, 2009 1:57 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use 'At Last field' control break event in the LOOP & in the event call the FM 'WRITE_FORM' to print the total & subtotal.
LOOP AT itab.
at last kunnr.
call function 'WRITE_FORM'
element = 'TOTAL'
window = .
endat.
ENDLOOP.
In script u call the element 'TOTAL' and print the total & subtotal variables.
Hope it helps!!
Rgds,
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Farhana,
use this to print everthing in the last page in scripts.
IF &PAGE& EQ &SAPSCRIPT-FORMPAGES(Z)&
code for subtotal and total.
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
write this way
Bottom
Subtotal :####
total : $$$$$$
endbottom.
surya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
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.