04-06-2006 9:35 AM
hi experts
From Table BSIS fields are BELNR, BUDAT, DMBTR, MENGE required output is quantity and
currencey fields should be sum at line item level.write a program ?
regds
Venky
04-06-2006 9:42 AM
Hi,
I hope you are displaying this data in a report. I suggest that you develop a report using a ALV Grid Control and all the SUM options will be automatically taken care of and the user can change it the way he wants.
Regards,
Ravi
04-06-2006 9:42 AM
select belnr budat DMBTR MENGE FROM BSIS INTO table it_bsis.
loop at it_bsis.
AT NEW BUDAT.
SUM.
ENDAT.
ENDLOOP.
SUM----
IT WILL AUTOMATICALLY SUMS THE QUANTITY AND CURRENCY , INTEGER FIELDS
04-06-2006 10:54 AM
Hello,
First of all modify you itab entries according to debit/credit indicator.
and then....
Loop at itab.
at last.
sum.
endat.
endloop.
Regards,
Naimesh.
PS : Reward points, it you find this good..!
04-06-2006 11:14 AM
Hi,
you can try this...
loop at it_bsis.
at last.
sum .
write 😕 'Sum',
it_bsis-dmbtr,it_bsis-menge.
endat.
endloop.
Thanks,
Lakshmi.