Skip to Content
author's profile photo Former Member
Former Member

using cl_salv_table for ALV display

Hi gurus,

I am using cl_salv_table class for my alv display.

Does any one have idea how to make the ALV grid multi-line selectable?

Do we have to have a 'SEL' field for internal table ? anf if we have where can we mention that it is a selfield, as we do in classical ABAP.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Aug 13, 2008 at 09:08 AM

    what about this:

          lr_selections TYPE REF TO cl_salv_selections.
    * Selektion
          lr_selections = lr_alv_table->get_selections( ).
          lr_selections->set_selection_mode( lr_selections->MULTIPLE ).

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 13, 2008 at 11:41 AM


    Please check this thread for solution..


    Hope this would help you.

    Good luck


    Add a comment
    10|10000 characters needed characters exceeded

    •       cl_salv_table=>factory(
                r_salv_table   = gr_alv_table
                t_table        = gt_data ).
              lr_selections    = gr_alv_table->get_selections( ).
              lt_rows = gr_selections->get_selected_rows( ).

      lt_rows contains the row-indices of gt_data, so you can read from table with index (and loop to get all data):

        LOOP at lt_rows INTO lf_row.
          READ TABLE gt_data INTO gs_data
                         INDEX lf_row.

      Edited by: Karsten Korte on Aug 13, 2008 5:05 PM

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.