Application Development 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: 

Multiple Rows selection SALV output

Former Member
11,197

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

raymond_giuseppi
Active Contributor
2,157

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

matt
Active Contributor
2,157

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?

Former Member
0 Kudos
2,157

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

Thanks for your valuable suggestion.

raymond_giuseppi
Active Contributor
2,158

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?

0 Kudos
2,157

Thanks Raymond...

0 Kudos
2,157

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