2008 Aug 15 3:08 PM
Hi,
I am using class CL_SALV_TABLE for my grid ALV report. I want to select multiple rows in the report to proceed further in the logic. How to do that?
Hi.
Why don't you use checkbox in the rows to do that?
Regards.
2008 Aug 15 3:16 PM
2008 Aug 15 3:17 PM
2008 Aug 15 3:18 PM
Hi,
try searching for programs with
BCALVdemo
you can get many sample reports on ALV.
Regards,
Venkatesh
2008 Aug 15 3:20 PM
You need to take an object for the selection.
Like:
DATA: lr_sel TYPE REF TO cl_salv_selections.
lr_sel = gr_table->get_selections( ).
lr_sel->SET_SELECTION_MODE( IF_SALV_C_SELECTION_MODE=>MULTIPLE )
In the User command event handler
DATA: lr_sel TYPE REF TO cl_salv_selections.
call method gr_table->get_selections
receiving
value = lr_sel.
Regards,
Naimesh Patel
2008 Aug 15 3:31 PM
Thanks for ur valuable answer. Is there any way to get a select box for each row (not check box . it is like a button).
Regards
Dhanu
2008 Aug 15 4:17 PM
lr_sel->set_selection_mode( if_salv_c_selection_mode=>row_column ).
This will get you the normal ALV's selection button on the left.
Check Program SALV_DEMO_TABLE_SELECTIONS for more information.
Regards,
Naimesh Patel
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |