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

Multiple Rows selection SALV output

Former Member
14,438

Please let me know how to select multiple rows in SALV report output. I have tried with below code but it is not working

TRY.
  CALL METHOD cl_salv_table=>factory
    EXPORTING
      list_display = if_salv_c_bool_sap=>false
      r_container = lo_cont
      container_name = 'DOCK_CONT'
    IMPORTING
      r_salv_table = lo_alv
    CHANGING
    t_table = me->t_data.
  CATCH cx_salv_msg .
ENDTRY.
*
* Pf status
DATA: lo_functions TYPE REF TO cl_salv_functions_list,
      o_selections TYPE REF TO cl_salv_selections.
o_selections = lo_alv->get_selections( ).
o_selections->set_selection_mode( cl_salv_selections=>multiple ).

Thanks and Regards,

Suman

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
5,398

What are you actually mean with "not able to get multiple rows selection"

Did you intend to click on multiple lines/cells holding down ctrl (or shift) key or would you provide a box to check (with if_salv_c_selection_mode=>row_column and not cl_salv_selections=>multiple) or were you unable to get the list of selected cells/rows/columns?

5 REPLIES 5
Read only

matt
Active Contributor
5,398

1. In future when posting code, use the CODE button in the editor. If pasting code, use right-click paste as plain text. I've done it for you this time.

2. "Not working" is not useful as a description of something going wrong. What is not working? What do you see on screen? What do you expect to see? Are you getting a dump? What dump?

Read only

Former Member
0 Likes
5,398

I am not able to get multiple rows selection in SALV output.

Thanks for your valuable suggestion.

Read only

RaymondGiuseppi
Active Contributor
5,399

What are you actually mean with "not able to get multiple rows selection"

Did you intend to click on multiple lines/cells holding down ctrl (or shift) key or would you provide a box to check (with if_salv_c_selection_mode=>row_column and not cl_salv_selections=>multiple) or were you unable to get the list of selected cells/rows/columns?

Read only

0 Likes
5,398

Thanks Raymond...

Read only

0 Likes
5,398

And please, replace your profile picture with that of a Rafale...