cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to keep selected items on ALV?

giovani_ragazzon
Product and Topic Expert
Product and Topic Expert
0 Kudos
906

Hi experts,

I'm facing a problem with ABAP ALV, and after researching I couldn't find the solution for that.

In my scenario I'm dynamically creating my ALV from DB (I'm using ORM for this, in case it makes any difference), and if I have several rows on my ALV, after selecting the values I want in the "first page", if I scroll down for further selecting other items, the items I've just selected they get deselected.

When dynamically creating the ALV I've set this

     lr_interfacecontroller->get_model( )->if_salv_wd_table_settings~set_selection_mode( cl_wd_table=>e_selection_mode-multi_no_lead ).

but it doesn't solves my problem (actually I've tried different values, but none of them did the job).

I've also tried other attributes (don't remember which of them) from this interface and from other interfaces, but still with no success.

Thanks in advance for your help!

Best regards,

Giovani

View Entire Topic
anoop_gupta2
Participant
0 Kudos

well an easy option is to keep an attribute in node char1 , as flag , and one checkbox in the Generated Table UI , so that user can select multiple values even after scrolling down..

Best Regards,

Anoop Gupta

giovani_ragazzon
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Anoop,

Thanks for the suggestion. In fact I've considered the usage of checkboxes for this, but instead of going for this approach we are trying to achieve the usage of the "standard" functionality of clicking on the rows, so if there is an alternative for this we'd prefer it rather using checkboxes.

Best regards,

Giovani

kutjohn
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Giovani,

Check this document http://scn.sap.com/docs/DOC-41911

giovani_ragazzon
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi John,

I wasn't able to try this approach due to time constraints for the delivery of the project (so I don't know if it will indeed do what I need or not), but for sure it is at least helpful in order to improve the solution to not request the CTRL click for selecting the rows.

Once I'm able to try this I'll provide a more suitable response to this proposal.

Thanks and regards,

Giovani

kutjohn
Product and Topic Expert
Product and Topic Expert
0 Kudos

Happy to know that it was helpful in some way