Skip to Content

Set cursor in ALV grid

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Posted on Apr 28, 2004 at 11:59 AM

    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

    Add comment
    10|10000 characters needed characters exceeded