Application Development and Automation 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: 
Read only

Problem in ALV

Former Member
0 Likes
660

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?

6 REPLIES 6
Read only

Former Member
0 Likes
633

you can check this ..

Read only

Former Member
0 Likes
633

Hi.

Why don't you use checkbox in the rows to do that?

Regards.

Read only

Former Member
0 Likes
633

Hi,

try searching for programs with

BCALVdemo

you can get many sample reports on ALV.

Regards,

Venkatesh

Read only

naimesh_patel
Active Contributor
0 Likes
633

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

Read only

0 Likes
633

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

Read only

0 Likes
633

  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