Hi,
I tried to select the user selected records from a table by useing check box, I am always getting the 2nd next record from the selected record. Suppose if user selcts record no 1 then I am getting record no 3 in to my itab. Can some one please guide me where I am doing wrong.
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'CMEMO'.
DATA: lv_cnt TYPE i.
DESCRIBE TABLE gt_zprice LINES lv_cnt.
lv_cnt = lv_cnt + 2.
DO lv_cnt TIMES.
READ LINE sy-index FIELD VALUE chbox.
IF sy-index > 0 AND chbox = 'X'.
READ TABLE gt_zprice INTO gs_zprice INDEX sy-index.
IF sy-subrc EQ 0.
APPEND gs_zprice TO gt2_zprice.
CLEAR gs_zprice.
ENDIF.
ENDIF.
ENDDO.
Thanks,
Neelu.