Thanks Ventak !!! for the solution it worked perfectly for me...
But here i,m facing a problem
1) |This code worked correctly on my office sap system.
It gave me the summary output.
BUT
2) when i tried this same code on my vmware virtual machine (SAP) it did,nt worked , it was not able to summarise nor calculate anything.
can any one help me on this. ?
plz i`m an beginner and this vmware (SAP) ides system on my laptop means alot...
what would be the solution on this ?