I've sorted an itab by two fields A and B. Before loop one i've sorted by A B. Before loop two by B A. In loops i've used At End Of... keyword. In loop one At End Of A, and in loop two At End Of B...In loop one there is no problem when A change the At End Of catches but in loop two every loop it catches the but it has no change in field B. I can not solve this problem.