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

select/deselect all in alv using SALV classes

Hi All,

Is it possible to have select/deselect all functionlaity in alv using SALV classes.

Once i select all and click on another button in the status bar it should update some records in the database.

Select/deselect all is an editing functionality so I am not sure whether this is possible in SALV or not.

Please let me know your thoughts on this


Bala Duvvuri

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 12, 2012 at 04:55 PM

    I have not tried with SALV, but this is very easy to do as OO ALV.... I added the Sel all, Desel All as function buttons, and when the user presses one I loop at the internal table and set my value in the column as 'X' or space as needed....

    Why not try this in SALV, and see if you can't achieve the same results by modifying the internal table, and calling the refresh method? I don't see a reason why it would not work.

    While SALV is intended to not be editable, one can achieve edited allowing a person to choose a row and press a function button. Then popup a screen, accept the user's input, replace the data into the correct row of the display table and call the refresh method.... goes right around the "not editable" constraints.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      problem is solved

      I created a custom status with custom button for select all and created an event

      WHEN 'ALL'.
      IF <lfs_edit> IS ASSIGNED.
      UNASSIGN <lfs_edit>.
      LOOP AT wt_edit1 ASSIGNING <lfs_edit>.
      <lfs_edit>-select = 'X'.
      wwo_alv_table->refresh( ).


      Bala Duvvuri

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.