Make CL_SALV_TABLE column editable?

Viewed 2373

I am displaying an ALV using CL_SALV_TABLE=>FACTORY where I want the user to be able to select a number of lines which then will be processed further.

I did turn the column into a checkbox column using CHECKBOX_COLUMN->SET_CELL_TYPE( IF_SALV_C_CELL_TYPE=>CHECKBOX ), but I did not find a way to make the column "editable", it is read-only.

Is there a way to get this to work with CL_SALV_TABLE? Everything i found so far are solutions for the old ALV-Functions

2 Answers

Inside CL_SALV_TABLE builded on CL_GUI_ALV_GRID. You can get access to internal instance of CL_GUI_ALV_GRID and switch it to editable mode. There are several ways to get it, e.g.:

Then you can use SET_READY_FOR_INPUT method to switch in edit mode.

SALV (ALV OM) does not offer any "edit" feature (search the Web for "International Editable SALV Day XXXX – Year XX", each year it's asking for this feature).

You may use CL_GUI_ALV_GRID instead.

NB: concerning CL_GUI_ALV_GRID, although the edit feature is widely used by standard programs, when it's about using it in custom programs, SAP don't offer any support in case the clients have issues using this edit feature (note 695910 - ALV Grid: Editable grid and methods that are not released).

Related