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: 

Get Line - HotSpot

Former Member
0 Kudos

Hi,

How to get the line number that was clicked through HOTSPOT?

Best Regards.

1 ACCEPTED SOLUTION

rodrigo_paisante3
Active Contributor
0 Kudos

Hi, try this link.

Regards,

RP

5 REPLIES 5

Former Member
0 Kudos

In standard ABAP list or ALV?

Albert

0 Kudos

is ALV

rodrigo_paisante3
Active Contributor
0 Kudos

Hi, try this link.

Regards,

RP

former_member194669
Active Contributor
0 Kudos

Hi,

1. First in the field catalog the field as hot sport enabled.

i_fieldcat-hotspot = c_x.

2. Use handler for hotspot event.

set handler event_receiver_grid->handle_hotspot_click for grid1.

3. In the definition

class lcl_event_receiver_grid definition.

public section.

methods:

handle_hotspot_click

for event hotspot_click of cl_gui_alv_grid

importing e_row_id e_column_id

es_row_no.

endclass.

4. In the implementation

class lcl_event_receiver_grid implementation.

method handle_hotspot_click.

call method cl_gui_control=>set_focus

exporting

control = grid1.

v_dclick = c_y.

move es_row_no to wa_hotspot_rows.

append wa_hotspot_rows to i_hotspot_rows.

v_row = wa_hotspot_rows-row_id.

endmethod. "handle_hotspot_click

endclass. "lcl_event_receiver

0 Kudos

Thank you .... I could solve seeing the comment above