Application Development and Automation 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: 
Read only

Month wise Total

Former Member
0 Likes
577

Hi alll

I want month wise summary total. How can i calculate.my datas r in internal table. how can i calculate. Internal table structre

date

amount,

sales organisation,

etc.

Hi alll

I want month wise summary total. How can i calculate.my datas r in internal table. how can i calculate. Internal table structre

date

amount,

sales organisation,

etc.

3 REPLIES 3
Read only

Former Member
0 Likes
536

check the infostuctures which u are using ?

search in se11 with s*

Regards

Prabhu

Read only

Former Member
0 Likes
536

Hi,

u can use one simple logic.

assum your table name is itab and date format is ddmmyyyy.

loop at itab.

case itab-date+2(2).

when '01'." for month of jan

sum1 = sum1 + itab-amount. "sum 1 represent sum for jan month

"similarly do it for all the 12 months.

endcase.

endloop.

Regards,

Sumit.

Read only

Former Member
0 Likes
536

Hi,

call function 'CACS_DATE_GET_YEAR_MONTH'

by using this function u can find out the month and year and insert these month and year with all the records in int tab. than u can easily use

at ...endat for calculating the sum