hi friends,
in smartforms i am trying to print a material
my prob is i have to aggregate and print
1.example-- mat1 quantity 2 amount is 1000
mat1 quantity 3 amount is 200
now it should print
mat1 quantity 5 amount 1000
my code is --
loop at IS_BIL_INVOICE-IT_GEN into gs_it_gen
where material = gs_it_gen-material and
bil_number = gs_it_gen-bil_number.
on change of gs_it_gen-material.
quantity = GS_IT_GEN-FKIMG + quantity.
GRWT = GS_IT_GEN-GROSS_WT + GRWT.
endon.
endloop.
but it prints twice
i want it to print once is that any i should add with this code
for this plz give me some idea
regards
raj