Code: Alles auswählen.
REPORT zs_test.
data: begin of line,
x(132) type x,
end of line.
start-of-selection.
WRITE: / 'Es ist', sy-uzeit USING EDIT MASK '__:__:__'.
set cursor line 3.
CALL FUNCTION:
'CONTROL_INIT',
'CONTROL_SETFUNCTIONCODE' EXPORTING fcode = '=/00',
'CONTROL_FLUSH'.
AT LINE-SELECTION.
READ LINE 3 OF CURRENT PAGE.
IF sy-index EQ 7.
CLEAR sy-index.
ENDIF.
ADD 1 TO sy-index.
WRITE: sy-uzeit USING EDIT MASK '__:__:__' TO sy-lisel+7.
CASE sy-index.
WHEN 1. MODIFY CURRENT LINE line FORMAT COLOR 1.
WHEN 2. MODIFY CURRENT LINE line FORMAT COLOR 2.
WHEN 3. MODIFY CURRENT LINE line FORMAT COLOR 3.
WHEN 4. MODIFY CURRENT LINE line FORMAT COLOR 4.
WHEN 5. MODIFY CURRENT LINE line FORMAT COLOR 5.
WHEN 6. MODIFY CURRENT LINE line FORMAT COLOR 6.
WHEN 7. MODIFY CURRENT LINE line FORMAT COLOR 7.
ENDCASE.
WAIT UP TO 1 SECONDS.
CALL FUNCTION:
'CONTROL_INIT',
'CONTROL_SETFUNCTIONCODE' EXPORTING fcode = '=PICK',
'CONTROL_FLUSH'.