2009 Jul 21 12:57 PM
Hi,
Is it possible to place the cursor on a row of a ALV grid ( the row number is determined at the runtime)?
Please tell the method that can be used to achieve this ?
Regards,
Ajit
Hi,
Is it possible to place the cursor on a row of a ALV grid ( the row number is determined at the runtime)?
Please tell the method that can be used to achieve this ?
Regards,
Ajit
2009 Jul 21 1:09 PM
Hai,
Use this Method: get_selected_rows.
Ex: call method grid2->get_selected_rows
importing
et_index_rows = lt_rows_2.
read table lt_rows_2 into ls_rows_2 index 1.
ls_rows_2-index has the number of the row.
To be able to use this, set the sel_mode of the layout to 'A'.
Best Regards,
rama
2009 Jul 21 1:13 PM
Hi Rama,
My problem is not to get the selected row, I have to place the cursor on a row (which is determined at the runtime)
Regards,
Ajit
2009 Jul 21 1:17 PM
Yes you can there is a method set_selected_rows with this method u can select rows in runtime.
2009 Jul 21 1:17 PM
2009 Jul 21 1:30 PM
Hai Ajit,
Okay, check this method GET_CURRENT_CELL_ROW_ID of the Class CL_GUI_ALV_GRID.
All the best.
Best Regards,
rama
2009 Jul 21 1:56 PM
Hi,
is there any method to set the cursor on a particular cell of a ALV grid ?
Regards,
Ajit
2009 Jul 21 2:09 PM
Yeah Ajit, have a look at this method SET_CURRENT_CELL_ID of the class CL_GUI_ALV_GRID.
Best Regards,
rama
2009 Jul 21 1:21 PM
Hi,
Did you try the [get_current_cell|http://help.sap.com/saphelp_nwpi71/helpdata/EN/0a/b552f7d30911d2b467006094192fe3/frameset.htm] method ?
BR,
Advait
2009 Jul 21 1:24 PM
Hello,
Please check the type group SLIS.
You have a TYPE slis_selfield which says "information cursor position ALV".
You can try using the fields row_stable and col_stable.
Cheers,
Balaji
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |