‎2008 Nov 17 6:37 PM
Moderator message: please use a more informative subject in futuer
Hi All,
I am having a entries in my table like this
Field1(TYPE C)
8
9
10
11
12.
When i use SORT ITAB DESCENDING BY FIELD1.I am getting out put like this.
9
8
12
11
10
But i want the output like this.
12
11
10
9
8.
Can any one tell me how to acheive this..
Edited by: Matt on Nov 18, 2008 7:55 AM
‎2008 Nov 18 5:14 AM
Hi,
Use type i (Integer). It will work fine.
If you are using type N. keep value like 09,08,11,12
use FM conversion_exit_alpha_input to convert value 9 to 09
then use sort command
‎2008 Nov 17 6:43 PM
‎2008 Nov 17 6:44 PM
Yeah now i have changed to N.
But still i am facing the same error
Thanks
‎2008 Nov 17 7:03 PM
‎2008 Nov 17 7:06 PM
Now ay it cant be wrong , are you using any other field in addition.
use this statement .
SORT ITAB DESCENDING FIELD1 . ( Dnt add any other field )
‎2008 Nov 17 7:10 PM
Hi
I have done like this SORT INT_UPLOADED DESCENDING BY SEQUENCE.
SEQUENCE IS MY FIELD NAME AND I HAVE DECLARED IT AS
data: sequence(4) type n.
Still i am facing the same error.
Thanks
‎2008 Nov 17 7:15 PM
how can you so sure that its getting sorted wrongly !!!! it cant go wrong . Are you writing it out or r u seeing in debugging mode . If debugging make sure the cursor passes the sort command. As per the above code nothing is wrong , it should work.
‎2008 Nov 18 5:14 AM
Hi,
Use type i (Integer). It will work fine.
If you are using type N. keep value like 09,08,11,12
use FM conversion_exit_alpha_input to convert value 9 to 09
then use sort command