Skip to Content
0
Former Member
Feb 26, 2009 at 04:55 PM

lr_selections->get_selected_rows returns zero entries - why?

379 Views

Hello SDN Community,

I have extensively researched this in web and SDN forums. I have implemented the tutorial "ALV Object Model and Simple 2D Table and Event Handling". I can go into debugging and see the lt_rows table and it has the numbers of the rows I selected.

My program is a screen module pool with two screens built with SE51. Second screen has an ALV grid implemented using CL_SALV_TABLE.

When I compare coding between the ALV Object Model tutorial and my coding, only difference that I can see is the factory statement. Since I am using screen painter to build screen, my factory method has an exporting statement. Below are both factory statements...

from ALV Object Model tutorial

call method cl_salv_table=>factory

IMPORTING

r_salv_table = gr_table

CHANGING

t_table = ispfli.

from my program

CALL METHOD cl_salv_table=>factory

EXPORTING

r_container = alv1_cont

IMPORTING

r_salv_table = gr_alv1

CHANGING

t_table = lt_alv1.

Does anyone know of an example of ALV grid in a custom-control-container that uses selection from the grid (either single or multi)?

If not, would you have any ideas on what I might do so that lr_selections->get_selected_rows will return the rows selected on the ALV?

Thank you,

Dean Atteberry.