Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV grid overwriting sum method

Former Member
0 Likes
578

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

3 REPLIES 3
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
541

What kind of alv are you using ?

Reuse or OO method ?

Read only

0 Likes
541

OO method

Read only

0 Likes
541

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