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: 

Double aggregation using ABAP

Former Member
0 Kudos

Hi

How to translate such sql code to ABAP code:

Select field_1 count( * ) from

( Select field_1 field_2 ... field_n sum( * )

from table

group by field_1 field_2 ... field_n )

group by field_1.

Regards

Adam

1 ACCEPTED SOLUTION

Former Member
0 Kudos
4 REPLIES 4

Former Member
0 Kudos

SORRY Inappropriate reply Pls IGNORE

Edited by: Saravanan Rajan on Oct 15, 2008 1:58 PM

Former Member
0 Kudos

Hi,

This is concept of derived table of SQL in which result of inner select query is used as a source table by outer select query.

You can use inner select query to fill your internal table and then process your internal table to get the desired output.

Regards,

Vishal

0 Kudos

Hi

Give example how to process internal table.

Regards

Adam

Former Member
0 Kudos