Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

sort statement

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

JozsefSzikszai
Active Contributor
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

Senthil,

Sort itab by first field assending.

Regards,

Satish

JozsefSzikszai
Active Contributor
0 Kudos

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