2009 Oct 01 2:40 PM
Hello,
I have a alv grid using the method handle_data_changed for the fields quantity and price. When I change the price and click into another cell the system passes into this method.
Unfortunatly the cursor than is not in the clicked cell but in the first cell of this row. I used method set_current_cell_via_id but I can not access the cell ID of the cell where I clicked. The clicked cell is in the property_cache 'CurrentCellColID' of the alv object but this table is protected and I have no access to it. Method GET_CURRENT_CELL_COL_ID is also protected.
Any ideas how to put the cursor in the clicked cell?
best regards
stefan
2009 Oct 01 2:50 PM
You can use
* Get the Current Cell
CALL METHOD CL_GUI_ALV_GRID=>GET_CURRENT_CELL
IMPORTING
E_ROW = LE_ROW
E_VALUE = LE_VALUE
E_COL = LE_COL
ES_ROW_ID = LES_ROW_ID
ES_COL_ID = LES_COL_ID
ES_ROW_NO = LES_ROW_NO.
a®
Hello,
I have a alv grid using the method handle_data_changed for the fields quantity and price. When I change the price and click into another cell the system passes into this method.
Unfortunatly the cursor than is not in the clicked cell but in the first cell of this row. I used method set_current_cell_via_id but I can not access the cell ID of the cell where I clicked. The clicked cell is in the property_cache 'CurrentCellColID' of the alv object but this table is protected and I have no access to it. Method GET_CURRENT_CELL_COL_ID is also protected.
Any ideas how to put the cursor in the clicked cell?
best regards
stefan
2009 Oct 01 2:50 PM
You can use
* Get the Current Cell
CALL METHOD CL_GUI_ALV_GRID=>GET_CURRENT_CELL
IMPORTING
E_ROW = LE_ROW
E_VALUE = LE_VALUE
E_COL = LE_COL
ES_ROW_ID = LES_ROW_ID
ES_COL_ID = LES_COL_ID
ES_ROW_NO = LES_ROW_NO.
a®
2009 Oct 01 2:53 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |