Skip to Content
0
Former Member
Jul 04, 2009 at 08:48 PM

OO ALV with get_selected_rows

2149 Views

hi all

i would like ask one favor, i am making an ALV that already show information but now i need to select a record from my list, so i am trying to use the following method GET_SELECTED_ROWS, and when i try to compile send an error

Statement "C_GRID->GET_SELECTED_ROWS(" is not defined. Please check your spelling., but the method is alrady create, and usin the next satatement

Data c_grid TYPE REF TO cl_gui_alv_grid,

i have already move the creation and call the method but the error still appear.

CREATE OBJECT c_container

EXPORTING

container_name = 'C_CONTAINER'.

CREATE OBJECT c_grid

EXPORTING

i_parent = c_container

INCLUDE zsdoprc086_class. "Class definition and implementation here i am implement the method, inside i am using the statement

c_grid->get_selected_rows( importing

et_index_rows = et_index_rows

et_row_no = et_row_no

).

but the compiler send the error again, does anybody knows how to implement, i am working with 4.6 version, is this could be the reason?

thanks a lot