2008 Jan 29 4:51 PM
Hi all.
I have enabled hotspot click on the column in alv-grid. But when I set to display sum of all the values in the column, the hotspot click is enabled on the sum-field as well. But I need to disable the hotspot click when clicking on the sum-field. Is it possible somehow?
TIA, regards, Nikolai.
2008 Jan 29 4:59 PM
Hi,
Need more info on ALV, Are u using Object oriented or using fm REUSE* ?
a®
2008 Jan 29 5:02 PM
2008 Jan 29 5:45 PM
class lcl_events_0100 definition.
public section.
methods:
hotspot_click for event hotspot_click
of cl_gui_alv_grid
importing e_row_id
e_column_id
es_row_no.
endclass.
method hotspot_click.
perform 0100_event_hotspot_click using e_row_id
e_column_id.
endmethod. "hotspot_click
Here E_ROW_ID-ROWTYPE contains the value like "S 0101 0000000001" if user click on the subtotal line the ROWTYPE value start with "S" .
Check whether the rowtype value is "S" then do nothing.
a®
2008 Jan 30 8:44 AM
Thanks, you're right. But the event hotspot_click still happens when the user clicks on the sum-field (the value in this field is still underlined). Is it possible do disable the event itself?