Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with focus with an ALV grid using object methods

Former Member
0 Likes
509

Hi, i have an editable ALV and there is something wrong that we haven't been able to solve it yet, hope you can understand my explanation

Supose a grid 2 x 5

cell 1 - cell 2 - Cell 3 - Cell 4 - Cell 5

001 John Doe

So when a press tab or enter to the any cell diferent from cell 1 the focus get back to the cell 1, and i have to tab ( in this example) 3 times to fill cell 4, and then 4 times to fill cell 5

Any ideas???

ttorres

3 REPLIES 3
Read only

Laxmana_Appana_
Active Contributor
0 Likes
455

Hi,

Use method :SET_CURRENT_CELL_VIA_ID of grid to set the cursor position in a cell.

Ex:

CALL METHOD O_GRID->SET_CURRENT_CELL_VIA_ID

EXPORTING

IS_ROW_ID = V_ROW

IS_COLUMN_ID = V_COLUMN

IS_ROW_NO = V_ROW_NUM.

use methods : get_current_cell_row_id, get_current_cell

to get the required parameters for SET_CURRENT_CELL_VIA_ID.

Regards

Appana

Read only

0 Likes
455

Hi, tks for your answer but it didn't work, this is SAP 4.6 C and it says with this method get_current_cell_row_id that i can't use it 'cause i have no authority

ttorres

Read only

Former Member
0 Likes
455

Hi,

Check the program <b>BCALV_EDIT_02</b>.

Regards,

Azaz ali.