* Define field for the checkbox
data markfield(1) type c value space.
* Define filed for counting line numbers
data lineno type i.
* Writing the report with a checkbox
write: / markfield as checkbox,
* Reading the lines and cehcking if the line has been checked
lineno = 0.
* Counting the line numbers
lineno = lineno + 1.
* Read the value of markfield
read line lineno field value markfield.
* Test for end of report
if sy-subrc ne 0. exit. endif.
* If the value of the checkbox is X ( The checkbox is checked) the read
* the rest of the fields of the report line into the internal table itab.
if markfield = 'X'.
read current line field value i_ejitabel-zzbukrs into itab
i_ejitabel-zzsaknr into itab.