Show TOC

Adding Entire Pages with Input Ready RowsLocate this document in the navigation structure

Use

You can switch the SAP List Viewer (ALV) to the mode for mass data. You thereby automatically create a page of empty, input ready rows at the end of the ALV output. The user does not have to individually insert every new row but can fill any number of rows at the end of the ALV output.

To switch the ALV output to the mode for mass data, use the methods of the interface class IF_SALV_WD_TABLE_SETTINGS (implementing class CL_SALV_WD_CONFIG_TABLE).

Methods for Switching on the Mode for Mass Data

Function

Method

Activating and deactivating the mode for mass data

SET_EDIT_MODE

Check whether the mode for mass data is switched on

GET_EDIT_MODE

Procedure

  1. Instantiate the ALV Configuration Model, as described in Getting ALV Configuration Model .

  2. Activate the mass data mode:

    lv_value->IF_SALV_WD_TABLE_SETTINGS~SET_EDIT_MODE ( IF_SALV_WD_C_TABLE_SETTINGS=>EDIT_MODE_MASS ).

  3. If you want to display initial values for the new rows, then you can set it up using this method:

    lv_value->IF_SALV_WD_MASS_EDIT_SETTINGS~SET_DEFAULT_VALUES_VISIBLE( ABAP_TRUE ).