on 04-26-2007 6:38 AM
Hi Friends,
I have to print subtotals and grandtotal thro' SAPScripts.
My requirement is as follows.
ITAB
VENUM MATNR CHARG VEMNG VEMEH
1057 20021 123456 550 EA
1057 20021 123456 350 EA
1057 20020 213456 150 EA
1057 20020 213456 600 EA
1057 20019 123456 400 EA
DESIRED OUTPUT
VENUM MATNR CHARG VEMNG VEMEH
1057 20021 123456 550 EA
1057 20021 123456 350 EA
20021 900 EA
1057 20020 213456 150 EA
1057 20020 213456 600 EA
20020 750 EA
1057 20019 123456 400 EA
Please guide me to solve this issue. Your early help is highly appreciated.
Thanks ,
Pritesh
Hello,
Check this link:
http://www.sap-img.com/sapscripts/sapscript-how-to-calculate-totals-and-subtotals.htm
If useful reward.
Vasanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi..
use 2 variables..1 for subtotal and 1 for grandtotal...
loop at it_tab.
at end of variable.
subtotal = subtotal + it_tab-amount.
grandtotal = grandtotal + subtotal.
endat.
endloop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
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.