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: 

cumulative quantity for a material

Former Member
0 Kudos

Hi

I am developing a report in which I have to calculate the cumulative quantity for a material purchased during particular period entered in the selection criterion and also for the month during that period.Both should be diplayed in the separate columns.The cumulative quantity for that period should be displayed in the last row for that material. And I am using ALV for the display.Please assist me.

1 ACCEPTED SOLUTION

former_member182485
Active Contributor
0 Kudos

Hi Venu,

You can ask specific question where u are facing problem

You can not expect ppl to post complete solution according to your specification.

If you want a person to do so you must serch for a freelancer.

Regards

Bikas

2 REPLIES 2

Former Member
0 Kudos

Hi,

Consider the internal table with the fields material, then date on which it is purchased. Now while processing the internal table, using the collect statement you can cumulate the quantity.

But for this all the records should have the same values with quantities in it.

i.e. Lets say for internal table will be having the rows with MATERIAL PERIOD (lets say we have picked only the month from the date purchased, So in this period, all the entries will have MONTH value unique) and then QUANTITY.

Now if you use collect, automatically for all the records with same MATERIAL and PERIOD combination, it will cumulate the quantity.

Regards,

Santhosh.

former_member182485
Active Contributor
0 Kudos

Hi Venu,

You can ask specific question where u are facing problem

You can not expect ppl to post complete solution according to your specification.

If you want a person to do so you must serch for a freelancer.

Regards

Bikas