Skip to Content
0
Former Member
Oct 26, 2007 at 03:36 PM

Problem with Selecting the Record

11 Views

Hi,

To select the records and create the orders to the selected records, it was working fine before adding the headings. But now after adding the headings, if I select(check box) record num 1 for creating order it is taking record num 4. How can I select this properly.

Thanks,

Veni.

When 'ORDER'.

      DESCRIBE TABLE gt_zprice LINES lv_cnt.
      DO lv_cnt TIMES.
        lv_index = sy-index + 1.
        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.