Skip to Content
0
Former Member
Jun 13, 2010 at 08:38 AM

OOP ALV : subtotals not getting updated

326 Views

Hi,

I am using OO ALV in module pool screen. The alv is editable with 1 qty field (it has subtotals also for this field). i have added code to handle 'enter' key as below

CALL METHOD ob_alvaloc->register_edit_event

EXPORTING

i_event_id = cl_gui_alv_grid=>mc_evt_modified

EXCEPTIONS

error = 1

OTHERS = 2.

Then i am handling "data_changed" event in my event handler and calls REFRESH_TABLE_DISPLAY.

The code reaches the event handler when user presses 'enter', the line gets updated, but the subtotals are not.

Everything works correctly if i presses the 'refresh' button on the toolbar. It has drag n drop functionality, and the subtotals are correct during drag n drop also, but not when the user changes the qty in the editable field.

i tried using 'check_changed_data' also, but the subtotals not getting updated.

Any help is appreciated.

Even some workaround where we can simulate the REFRESH button in tool bar is ok.

Edited by: Sreeram Raghav on Jun 14, 2010 11:01 AM