Show TOC Entering content frame

Background documentation Adding and Deleting Rows Locate the document in its SAP Library structure

You can provide the user with pushbuttons in the toolbar for adding or deleting data records in various places in the ALV output. You can provide the following functions:

·        Insert row

If the user has not selected a row, the new row is created as the first row. Otherwise, it is created before the selected row or rows.

·        Append row

A new row is appended to the end of the ALV output, regardless of which row is selected.

·        Delete row

The selected rows are deleted.

The number of rows that the user can insert or delete depends on how many rows he or she has selected. You use the selection type to define how many rows the user can select at once (see Selecting Rows).

See Editable ALV in Providing Standard ALV Functions for information on which methods to use to show pushbuttons for inserting, appending, and deleting rows.

Note

These pushbuttons are only visible if you have removed write-protection for the ALV output (see Write-Protection and Activation).

If the selection type No Selection Possible was defined, the user cannot select any rows. In this case, the pushbuttons for inserting and deleting rows are invisible.

Event Handling

The event ON_DATA_CHECK contains parameters for getting the indexes of inserted or deleted rows (see ON_DATA_CHECK).

 

 

Leaving content frame