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:
First I want to aggregate multiple rows like below:
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.