Search code examples
abapalv

Make CL_SALV_TABLE column editable?


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


Solution

  • 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).