‎2009 Apr 16 3:21 PM
Hi Experts,
I want to sort my internal table by a certain field, but without it taken in account lower- or upper-case.
Let's say I have the following list:
- Abe
- celine
- bart
- Zorro
- Bambi
I do this in my code:
SORT it_names BY nameThe result:
- Abe
- Bambi
- Zorro
- bart
- celine
How do I get the following result?
- Abe
- Bambi
- bart
- celine
- Zorro
‎2009 Apr 16 3:26 PM
Hi,
try below
loop at it_names into wa_name.
translate wa_name-name to lowercase..
append wa_name to it_names_final.
endloop.then try to sort it_names_final by names.
now table it_names_final will sort out correctly.
‎2009 Apr 16 3:31 PM
‎2009 Apr 16 3:47 PM
I added a new field to the internal table where I put the name in upper case and sorted on this...