Skip to Content
-1
Dec 07, 2022 at 12:41 PM

Sort by descending wont sort my internal table.

41 Views

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.

image.png

I want the result to be like this:

image.png

Should I just use this code instead?

  SORT t_ekbe DESCENDING BY ebeln ebelp cpudt cputm.

Attachments

image.png (7.1 kB)
image.png (7.2 kB)