I need to get the lines with the highest EXBEL registers from an itab for every different VKONT.
The result table may contain several lines for the same VKONT value if this latter one has several lines in the source table with the same highest EXBEL value.
Actual source table:
SPARTE VKONT EXBEL
05 800000008422 1NSN150900000058
L2 800000008422 1NSN150900000058
05 800000008422 1NSN150900000037
L2 800000008422 1NSN150900000037
05 800000008422 1NSN150900000013
L2 800000008422 1NSN150900000013
05 800000008415 1HSN151200000009
S1 800000008415 1HSN151200000009
05 800000008415 1HSN151200000008
S1 800000008415 1HSN151200000008
L1 800000008422 1NSN150900000050
L1 800000008422 1NSN150900000029
L1 800000008422 1NSN150900000023
05 800000008415 1HSN151200000012
S1 800000008415 1HSN151200000012
05 800000008422 1NSN150900000058
L2 800000008422 1NSN150900000058
05 800000008415 1HSN151200000009
S1 800000008415 1HSN151200000009
Expected result table:
SPARTE VKONT EXBEL
05 800000008422 1NSN150900000058
L2 800000008422 1NSN150900000058
05 800000008415 1HSN151200000012
S1 800000008415 1HSN151200000012
I tried different solutions but didn't work.
Any help will be appreciated.
Raúl.