Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

summing of currency and quantity fields individually

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

hymavathi_oruganti
Active Contributor
0 Kudos

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

naimesh_patel
Active Contributor
0 Kudos

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..!

Former Member
0 Kudos

Hi,

you can try this...

loop at it_bsis.

at last.

sum .

write 😕 'Sum',

it_bsis-dmbtr,it_bsis-menge.

endat.

endloop.

Thanks,

Lakshmi.