Skip to Content
Former Member
Dec 11, 2007 at 04:25 PM

Sum up the values


data : begin of itab,

n(3) type c,

n1 type n,

n2 type n,

k(5) type c,

end of itab.

select n n1 n2 k from into itab from table /zteest.

*internal table has

n n1 k n2

gar 100 uji 2

hae 90 iou 3

gar 90 uji 3

hae 87 iou 4

I want

gar 190 uij 5

hae 177 iou 7

How to use collect statement as n1 is n ..?

I want to sum up n1 and n2 if value of k and n is same