Application Development and Automation 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: 
Read only

UPGRADE: change in functionality in Sort statement in ECC6

Former Member
0 Likes
542

hi,

i have a alphanumeric field of length 3. In 4.6c sytem when i SORT my internal table i used to get first characters and then numeric values Eg. A12,B21,123,234. But in my ECC6.0 system when i SORT my internal table i get numeric values first and then characters Eg. 123,234,A12,B21.

I want to retain the same functionality as in 4.6c system for my SORTING logic.

please advice..

5 REPLIES 5
Read only

Former Member
0 Likes
510

Hi ,

Try using SORT by adding AS text

sort itab .... as text .

Read only

0 Likes
510

I tried it but did not work

Read only

0 Likes
510

Try using STABLE addition.

SORT ITAB STABLE.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
510

Try to sort the field with DESCENDING addition...and see what happens...

Regards,

JOy.

Read only

0 Likes
510

Joyjit Ghosh ,

the descending addition gives me the output in the sequence B21,A12,234,123.