‎2009 Feb 11 7:05 PM
Hi all,
I want to implement the METHOD SET_FOCUS in ALV OO but it doens't work, the cursor always go to the first row? ... How can i set cursor on specific row ?
thanks .
Regards.
‎2009 Feb 11 7:32 PM
Hi,
data : c_alv_grid type ref to CL_GUI_ALV_GRID,
col type LVC_S_COL,
row type LVC_S_ROID.
col-fieldname = <fieldname>. " as string.
col-row_id = <row_number>. "as integer
CALL METHOD c_alv_grid ->set_current_cell_via_id
EXPORTING
IS_COLUMN_ID = col
IS_ROW_NO = rowRegards,
Siddarth
‎2009 Feb 11 7:21 PM
‎2009 Feb 11 7:22 PM
On a screen, only one element can have the focus, be it a control or another kind of screen element such as an input field. The element with the focus is always the one to which the last set_focus method call or SET CURSOR statement was applied.
so before method set_focus use set cursor command
‎2009 Feb 11 7:32 PM
Hi,
data : c_alv_grid type ref to CL_GUI_ALV_GRID,
col type LVC_S_COL,
row type LVC_S_ROID.
col-fieldname = <fieldname>. " as string.
col-row_id = <row_number>. "as integer
CALL METHOD c_alv_grid ->set_current_cell_via_id
EXPORTING
IS_COLUMN_ID = col
IS_ROW_NO = rowRegards,
Siddarth