Here's my code. I was trying to group the entries by ebeln and ebelp then sort it by descending order by cpudt cputm however, it won't take effect.
SORT t_ekbe BY ebeln ebelp DESCENDING cpudt cputm.
Assuming here's the EKBE table unsorted EKBE table.

I want the result to be like this:

Should I just use this code instead?
SORT t_ekbe DESCENDING BY ebeln ebelp cpudt cputm.