Skip to Content
0
Former Member
Oct 01, 2007 at 08:56 PM

Chbox not reading properly.

25 Views

Hi,

I have 12 records in the display and I checked the first 3 lines but my code is giving me lines 4 to 6 as checked records. Please help me with the problem.

Thanks,

Neelu.

WHEN 'CMEMO'.

DESCRIBE TABLE gt_zprice LINES lv_cnt.

DO lv_cnt TIMES.

lv_index = sy-index.

READ LINE lv_index FIELD VALUE chbox.

IF chbox = 'X'.

READ TABLE gt_zprice INTO gs_zprice1 INDEX sy-index.

IF sy-subrc EQ 0.

gs_zprice1-index = sy-index.

APPEND gs_zprice1 TO gt2_zprice.

CLEAR gs_zprice1.

ENDIF.

ENDIF.

CLEAR chbox.

ENDDO.