‎2007 Oct 26 4:36 PM
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.
‎2007 Oct 26 4:40 PM
Hello,
Add the number of lines occupied by the Header.
Like:
lv_index = sy-index + 3.
If you report ouput is like:
---------------------------------
| Header1 | header 2 |
--------------------------------
First record
........regards,
Naimesh Patel
‎2007 Oct 26 4:40 PM
Hello,
Add the number of lines occupied by the Header.
Like:
lv_index = sy-index + 3.
If you report ouput is like:
---------------------------------
| Header1 | header 2 |
--------------------------------
First record
........regards,
Naimesh Patel
‎2007 Oct 26 4:47 PM
Thank you Naimesh,
The problem got solved by your logic.
Regards,
Veni.