Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV Grid: get_selected_rows for subtotal lines

Peter_Inotai
Active Contributor
0 Kudos

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.
...

1 REPLY 1

Former Member

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.