Skip to Content

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

How sort internal table with punctuation on non unicode system?

Hi

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,

Thank you

Former Member
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.
1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question