Code: Alles auswählen.
REPORT.
DATA: current_cursor(40),
next_cursor(40),
set_next TYPE flag.
PARAMETERS: t1,
t2,
t3,
t4,
t5.
AT SELECTION-SCREEN.
GET CURSOR FIELD current_cursor.
AT SELECTION-SCREEN OUTPUT.
CLEAR: set_next,
next_cursor.
LOOP AT SCREEN.
CHECK screen-input = 1. " Eingabefeld
IF next_cursor IS INITIAL. " Rotierend bei letztem Eintrag
next_cursor = screen-name.
ENDIF.
IF set_next = 'X'.
next_cursor = screen-name.
EXIT.
ENDIF.
CHECK screen-name = current_cursor.
set_next = 'X'.
ENDLOOP.
SET CURSOR FIELD next_cursor.