I do not have a local itab. There is just one itab and this is global.
Edit: I was wrong. I used a sorted itab in the whole program and copied it into a standard itab (because SALV does not work with sorted itabs). I always looked into the sorted itab (and of course, a sorted itab can not be sorted).
Message was edited by: Ralf Wenzel for providing the solution