Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

OOALV

$
0
0

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.


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>