Skip to Content
0
Former Member
Dec 06, 2006 at 01:19 PM

sum of fileds to be stored in the same internal table

24 Views

Hi SDNners,

i hav an internal table with fileds f1,f2 ,f3,f4,f5 of which f1,f2 are key fields

for each of the key combination i want to hav the sum of the field f4 into the field

f5.

ex.

f1 f2 f3 f4 f5

-


k1 k2 d1 10

k1 k2 d2 20

k1 k2 d3 30

.

.

..

i want the sum of k1 & k2 combination i.e 102030 into f5

plz give me sample code

Thanks in advance

Ganesh M