SET_FOCUS

Use

To be able to use the SAP List Viewer (ALV) using the keyboard, the user needs the focus on one row or one cell of the ALV output. You can remove the focus from the ALV output by carrying out various actions. You then use method SET_FOCUS to set the focus on a particular row or cell.

  • If you want to set the focus to a row, use only the INDEX parameter.

  • If you want to set the focus to a cell, use parameters INDEX and COLUMN.

Syntax

Signature

METHODS SET_FOCUS

IMPORTING

INDEX TYPE I

OPTIONAL

COLUMN TYPE STRING

Parameter

(Importing)

INDEX

Index of the row that is to have the focus

COLUMN

Optional parameter

Technical name of the column that is to have the focus

Return values

-

Exceptions

-