Start of Content Area

Object documentation ALV Grid  Locate the document in its SAP Library structure

Definition

You can use ALV Grid to display and edit table data. A main feature of ALV Grid is that it contains a standard set of functions. These functions extend beyond the functions of a table control.

Use

The cells in ALV Grid can be editable or read-only. You can switch to the cell editing mode by pressing [F2] only if the grid is editable.

Note

An application can display table data in ALV Grid or in a table control. In some applications you can choose between displaying and editing data in either ALV Grid or a table control. If a configurable button (This graphic is explained in the accompanying text) appears in the right upper corner of the table, it is a table control.

Note that these two UI elements require different keyboard navigation, with ALV Grid being more user-friendly.

Access

Sequential element navigation works for ABAP Grid, which means you can move the focus forwards to a grid using [Tab] or backwards using [Shift]+[Tab]. The same applies to navigation within ALV Grid.

Sequential group navigation works for ALV Grid. This means you can move the focus away from a grid and select the next group using [Ctrl]+[Tab] or get to the previous group using [Shift]+[Ctrl]+[Tab].

If the focus is on a cell in the grid, you can use group navigation to navigate out of the grid immediately. If you do not exit the application, and navigate back to ALV Grid, the focus is still on the same cell as when you exited the grid.

To start editing the text in an editable grid cell, choose [F2]. If an underlying function is available, you can start it by pressing [F2] again.

Help Functions

You can open the context menu for the focused cell by choosing the [ContextMenu] key or [Shift]+[F10]. If a value list is available for the cell, you can display it by choosing [Alt]+[Down]. In more complex applications, the F4 help opens up a dialog box and provides selection options.

By choosing [Backspace] in an editable cell in ALV Grid when the cursor is in the first position in the field, you can display a history list and choose one of your previous entries.

Internal Navigation

Cell Navigation Mode

You can use [Tab] or [Shift]+[Tab] within ALV Grid to navigate forwards or backwards between the editable cells.

Note

If you have chosen the accessibility mode, you can also navigate to read-only cells. If you have not chosen the accessibility option, choose [AltGr]+[Tab] to access read-only cells as well.

Pressing [Ctrl] together with one of the arrow keys moves the focus  to the first or last cell of a column or a row.

If the grid extends over more than one page you can page forwards or backwards through the document using [PageUp] or [PageDown]. You can use [Ctrl]+[Home] and [Ctrl]+[End] to go directly to the first or last page.

Cell Editing Mode

You can move the cursor between the characters within an editable grid cell using the right and left arrow keys. Use [Ctrl]+[Left] or [Ctrl]+[Right] to go to the next or previous word. Use the [Home] and [End] keys to place the cursor on the first or last word or character.

Select

Cell Navigation Mode

To select an entire row, choose [Shift]+[Space] in cell navigation mode.  To select an entire column, choose [Ctrl]+[Space]. To select the entire grid contents, choose [Ctrl]+[a].

You can also define a selection range across a number of vertically and horizontally arranged cells, using [Shift] together with the arrow keys.

Cell Editing Mode

You can use [Shift] and the right and left arrow keys to select characters within an editable cell.

Manipulation

You can use the clipboard to copy or cut selected characters. Choose [Ctrl]+[c] or [Ctrl]+[x] to do this. You can paste them elsewhere by choosing [Ctrl]+[v]. You can undo your last action by pressing [Ctrl]+[z]. When editing text, you can use the [Delete] key to delete the character to the right of the cursor and the [Backspace] key to delete the character to the left of the cursor.

Exit

To finish editing, choose [Tab] or [Enter] to leave the cell of a grid and accept the changes. Alternatively, choose [Escape] to leave the cell and undo the changes made.

 

End of Content Area