Skip to Content

ALV Grid: get_selected_rows for subtotal lines

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Feb 07, 2005 at 02: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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.