Application Development 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: 

ALV, disabling hotspot click on sum-field

Former Member
0 Kudos

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.

4 REPLIES 4

former_member194669
Active Contributor
0 Kudos

Hi,

Need more info on ALV, Are u using Object oriented or using fm REUSE* ?

0 Kudos

I'm using object-oriented

0 Kudos


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.

0 Kudos

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?