Skip to Content
0
Former Member
Nov 24, 2009 at 09:18 PM

simple logic - virtual characteristic

16 Views

I'm writing a code for a virtual characteristic, but need a couple pieces to get in place. please help with the following problem:

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.