sy-lilli ), or the last line read with a preceding READ LINE
statement, is selected. No line is selected while creating the basic
list.
Example ABAP Coding This example reads all lines of the basic list after
selecting a line. The content of the checkbox is assigned to the output
data object flag . A target field wa with length 10 is used
for the date, since this is the length of the output area and contains
separators. If an assignment was made to the output field date ,
the area length would be reduced. The checked data is displayed in the
details list.
DATA: date TYPE d,
flag TYPE c LENGTH 1,
wa TYPE c LENGTH 10.
START-OF-SELECTION.
date = sy-datum.
DO 10 TIMES.
date = date + sy-index.
WRITE: / flag AS CHECKBOX, (10) date.
ENDDO.
AT LINE-SELECTION.
DO.
READ LINE sy-index FIELD VALUE flag
date INTO wa.
IF sy-subrc <(><<)>> 0.
EXIT.
ELSEIF flag = 'X'.
WRITE / wa.
ENDIF.
ENDDO.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved