How sort internal table with punctuation on non unicode system?
We have a system with NON UNICODE. I would like sort internal table using Sort method.
When I use:
Sort itab By nachn Ascending. ""system sort by not with puntuation
e.g. when I have A, C, Č, B, Z,
System sort like that:
A, B, C, Z, Č,
But correct is:
A, B, C, Č, Z,
Tomas Buryanek replied
Try addition SORT ... AS TEXT. It works for me, but it depends on "locale text environment" (ABAP keyword documentation for more details):
- Character-like components are sorted by default by their binary representation (code page). Textual sorting of character-like components can be performed using the addition AS TEXT.