cancel
Showing results for 
Search instead for 
Did you mean: 

Set cursor in ALV grid

jakob_steen-petersen
Active Participant
0 Kudos

I have a screen with some input fields. Also i have an Grid control on the screen. I want the cursor to be set on a specific field in the grid control when the user press ENTER. I ex. the input field contains the customer number. When the user press enter the cursor should be placed on a field of that customer in the grid control.

How to do that?

/Jakob

Accepted Solutions (0)

Answers (1)

Answers (1)

andreas_mann3
Active Contributor
0 Kudos

Hi Jakob,

time = PAI (user command)

...

read table itab into wa with key kunnr = p_kunnr.

row_no-row_id = sy-tabix.

CALL METHOD grid->set_scroll_info_via_id

EXPORTING

IS_COL_INFO = col_info

is_row_no = row_no.

regards Andreas