02-07-2005 2:24 PM
Hi,
How can I restrict ALV method 'get_selected_rows' not to pick up subtotal and total lines in the ALV Grid?
In the debugger I saw, that ROWTYPE has some value in this cases, so I use 'WHERE rowtype IS initial', but couldn't find any official documentation about this.
Is it the best/recommended way or there is a better one?
Thanks in advance,
Peter
My code:
CALL METHOD gro_grid->get_selected_rows
IMPORTING et_index_rows = lit_index_row.
LOOP AT lit_index_row INTO lwa_index_row
<b>WHERE rowtype IS initial.</b>
READ TABLE git_alvouttab INTO lwa_alvouttab
INDEX lwa_index_row-index.
...
02-07-2005 2:33 PM
That is the technique that I have been using in 4.6C and it has been working successfully. I also have not seen any documentation. I looked around some time ago and this was the only technique that I could come up with.
Let us know if you encounter any problems.