Show TOC

Enabling Addition and Deletion of RowsLocate this document in the navigation structure

Use

You can provide the user with pushbuttons in the toolbar for adding or deleting data records in various places in the ALV output. These functions are activated when you remove the write-protection for the ALV output.

More information: Controlling Write-Protection of the ALV Output

You can provide the following functions:

Buttons for Editing Data

  • 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 at a time 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 a time.

More information: Defining the Selection of Rows and Columns

Note

If the selection type No Selection Possible is specified, the user cannot select any rows. The pushbuttons for inserting and deleting rows are therefore hidden.

Event Handling

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