2013 Apr 11 10:20 AM
Hi All,
My requirement is to get the cursor on ALV Grid.
I wrote the following code but its giving only focus in ALV cell not the cursor.
How to get the cursor in ALV Cell like field in the module pool SET CURSOR FIELD.
Below is the code I wrote but I am not getting the focus on perticuler cell, not the mouse cursor.
Please solve my problem.
DATA: lt_cell TYPE TABLE OF lvc_s_ceno.
DATA: lwa_cell LIKE LINE OF lt_cell.
lwa_cell-col_id = 6.
lwa_cell-row_id = 1.
APPEND lwa_cell TO lt_cell.
CALL METHOD go_grid->set_selected_cells_id
EXPORTING
it_cells = lt_cell.
call method cl_gui_cfw=>flush.
*
* DATA : wl_is_row_id TYPE lvc_s_row,
* wl_is_column_id TYPE lvc_s_col,
* wl_is_row_no TYPE lvc_s_roid.
*
* wl_is_row_id-index = 1.
* wl_is_column_id-fieldname = 'CHKB'.
* wl_is_row_no-row_id = 1.
*
* CALL METHOD go_grid->set_current_cell_via_id
* EXPORTING
* is_row_id = wl_is_row_id " Row No
* is_column_id = wl_is_column_id " Column No
* is_row_no = wl_is_row_no. " Row No.
*
* DATA : lw_cells TYPE lvc_s_cell,
* lt_cells TYPE TABLE OF lvc_s_cell.
*
* lw_cells-col_id = 6.
* lw_cells-row_id = 1.
** lw_cells-value = 'CHKB'.
* APPEND lw_cells TO lt_cells.
*
*
* CALL METHOD go_grid->set_selected_cells
* EXPORTING
* it_cells = lt_cells.
* DATA : lw_cells1 TYPE lvc_s_ceno,
* lt_cells1 TYPE TABLE OF lvc_s_ceno.
*
* lw_cells1-col_id = 6.
* lw_cells1-row_id = 1.
** lw_cells-value = 'CHKB'.
* APPEND lw_cells1 TO lt_cells1.
* CALL METHOD go_grid->set_selected_cells_id
* EXPORTING
* it_cells = lt_cells1.
Hi All,
My requirement is to get the cursor on ALV Grid.
I wrote the following code but its giving only focus in ALV cell not the cursor.
How to get the cursor in ALV Cell like field in the module pool SET CURSOR FIELD.
Below is the code I wrote but I am not getting the focus on perticuler cell, not the mouse cursor.
Please solve my problem.
DATA: lt_cell TYPE TABLE OF lvc_s_ceno.
DATA: lwa_cell LIKE LINE OF lt_cell.
lwa_cell-col_id = 6.
lwa_cell-row_id = 1.
APPEND lwa_cell TO lt_cell.
CALL METHOD go_grid->set_selected_cells_id
EXPORTING
it_cells = lt_cell.
call method cl_gui_cfw=>flush.
*
* DATA : wl_is_row_id TYPE lvc_s_row,
* wl_is_column_id TYPE lvc_s_col,
* wl_is_row_no TYPE lvc_s_roid.
*
* wl_is_row_id-index = 1.
* wl_is_column_id-fieldname = 'CHKB'.
* wl_is_row_no-row_id = 1.
*
* CALL METHOD go_grid->set_current_cell_via_id
* EXPORTING
* is_row_id = wl_is_row_id " Row No
* is_column_id = wl_is_column_id " Column No
* is_row_no = wl_is_row_no. " Row No.
*
* DATA : lw_cells TYPE lvc_s_cell,
* lt_cells TYPE TABLE OF lvc_s_cell.
*
* lw_cells-col_id = 6.
* lw_cells-row_id = 1.
** lw_cells-value = 'CHKB'.
* APPEND lw_cells TO lt_cells.
*
*
* CALL METHOD go_grid->set_selected_cells
* EXPORTING
* it_cells = lt_cells.
* DATA : lw_cells1 TYPE lvc_s_ceno,
* lt_cells1 TYPE TABLE OF lvc_s_ceno.
*
* lw_cells1-col_id = 6.
* lw_cells1-row_id = 1.
** lw_cells-value = 'CHKB'.
* APPEND lw_cells1 TO lt_cells1.
* CALL METHOD go_grid->set_selected_cells_id
* EXPORTING
* it_cells = lt_cells1.
2013 Apr 11 12:07 PM
Hello,
There was a method called GET_FOCUS AND SET_FOCUS .
I think you should use set_current_cell_via_id as in your code has been commented.
Thanks,
Abhijit
2013 Apr 30 7:44 AM
I have tried those methods but not working. thats why I have commented.
i didnt get the solution, those menthods are focussing on the cell but not the cursor.
like SET CURSOR FIELD I need this requirement on ALV.
Help me.
2013 Apr 30 10:23 AM
2013 Apr 30 10:40 AM
2013 Apr 30 10:42 AM
I want to edit a coloumn in ALV tree control, How to do that? I have tried using field catalog and layout, but its not working ...?
2013 Apr 30 10:46 AM
2013 Apr 30 10:50 AM
Not possible as per my knowledge. Because you move scroll which is not capturable...
Regards,
Venkat Sesha
2013 Apr 30 10:53 AM
Hi Guru,
You can refer to the program BCALV_GRID_EDIT.
Thanks,
Namrata
2013 Apr 30 11:16 AM
I have checked the program BCALV_GRID_EDIT, but cursor is not on ALV, its on a I/O field on screen.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |