2010 Dec 25 12:36 PM
I have an ALV grid control the first column of the grid control is the check box.The user can select any record by cliking the check box .My requirement is when the user click the sum button in the toolbar only those entries get summed which are selected .PLea
I have an ALV grid control the first column of the grid control is the check box.The user can select any record by cliking the check box .My requirement is when the user click the sum button in the toolbar only those entries get summed which are selected .PLea
2010 Dec 25 12:54 PM
2010 Dec 25 1:17 PM
2010 Dec 26 10:23 AM
Hi Tabish,
if you are using the CL_GUI_ALV_GRID class, then method get_selected_cells will give you the column name(s). Use this to modify the field catalog (get/set_frontend_fieldcatalog) regarding DO_SUM flag. o a refresh_table_display then.
Regards,
Clemens
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |