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

How to use aggregate function using Group By from SAP IDA

Partha
Explorer
0 Likes
1,788

Hi Experts

I have a requirement to display the sum of the quantity group by few fields from a table using SAP IDA. Is it possible using SAP IDA classes. If possible, please let me know how that can be achieved as while creating we take the table entries(using few filter condition).

Thanks

Partha Saha

3 REPLIES 3
Read only

DoanManhQuynh
Active Contributor
0 Likes
1,292

What the matter did you get? there is a demo you can check too:

SALV_IDA_INITIAL_AGGREGATION

Read only

0 Likes
1,292

Hi

I need to use aggregate function based on other fields present in the table. As per the template suggested by you, the agregations are done on a particular field(Like Sum,Average etc)

The requirement that I have is something like below

select vkorg vtweg spart kunnr matnr sum (menge) as menge into tale lt_tab group by vkorg vtweg spart kunnr matnr.

The result should be sent as ALV output.

Thanks

Partha

Read only

0 Likes
1,292

I think you missunderstand about ALV IDA. what you want is select data that already summalized and display on ALV, which is not supported within IDA. you can find supported conditions in IF_SALV_IDA_CONDITION_FACTORY. There is option to use method CREATE_FOR_CDS_VIEW where you put the query in cds view, otherwise select data and using other ALV technical.