hi frnds i hav a doubt in Collect statement .
As per my program its like that
data : begin of itab occurs 0,
f1 type c,
f2 type i,
end of itab.
itab-f1 = 'a'.
itab-f2 = 10.
append itab.
itab-f1 = 'b'.
itab-f2 = 20.
append itab.
itab-f1 = 'c'.
itab-f2 = 30.
append itab.
loop at itab.
write : / itab-f1,
itab-f2.
endloop.
ok frnds when i m writing collect after appending the last record the o/p is like this
a 10
b 20
c 60
why?
can anyone solve my doubt i m debbuging the program but not getting exactly.
regards,
karthik