Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

sort statement

ho guys,

i need to sort the internal table

i am using the sort statement like this

sort int_table hours descending type ascending

table values

type hours

16

A 16

0

0

0

0

A 0

i want to have the intable displayed like this as below mentioned

16

A 16

A 0

0

0

0

0

How can i give the sort statement

tx

Tags:
Former Member
replied

hi Kumar,

you want:

16

A 16

A 0

0

0

0

0

but there is no way, because in case of hours = 16 the type is sorted ascending, while in case hours = 0 the type is sorted descending.

ec

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question