Skip to Content
0
Former Member
Nov 24, 2009 at 08:56 PM

group in internal table

22 Views

In my logic, I have an internal table itab1 whose contents are as follows:

plant sale

1001 100

1001 50

2001 300

First I want to aggregate multiple rows like below:

plant sale

1001 150

2001 300

Second, I want to create another internal itab2 which ranks plants as follows:

plant sale rank

1001 150 2

2001 300 1

Please help with logic.

Moderator message - Please do not ask or answer basic questions. The forum is not a substitute for F1 - thread locked

Edited by: Rob Burbank on Nov 24, 2009 4:11 PM