Skip to Content
author's profile photo Former Member
Former Member

Get Line - HotSpot

Hi,

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

Best Regards.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Dec 04, 2007 at 03:58 PM

    Hi, try this link.

    how to handle the hyperlink in alv

    Regards,

    RP

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 03:48 PM

    In standard ABAP list or ALV?

    Albert

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 04, 2007 at 04:08 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.