Hi,
I am trying to implement hotspot event in oo alv but i am facing issues.
My requirement is in 1st container the details from table ekko,ekpo,eban should display and when we click on matnr field then in second container fields from mara and makt should display.
Here is the code for reference:
CLASS lcl_events DEFINITION.
PUBLIC SECTION.
METHODS:
handle_hotspot
FOR EVENT hotspot_click OF cl_gui_alv_grid
IMPORTING e_column_id.
ENDCLASS. "lcl_events DEFINITION
DATA: w_events TYPE REF TO lcl_events.
*----------------------------------------------------------------------*
* CLASS lcl_events IMPLEMENTATION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS lcl_events IMPLEMENTATION.
METHOD handle_hotspot.
IF e_column_id-fieldname = 'MATNR'.
CALL METHOD lo_alv1->set_table_for_first_display
CHANGING
it_outtab = gt_final1
it_fieldcatalog = gt_fieldcat.
ENDIF.
ENDMETHOD. "on_hotspot_click
ENDCLASS.
MODULE status_0101 OUTPUT.
CALL METHOD lo_alv1->set_table_for_first_display
CHANGING
it_outtab = gt_final1
it_fieldcatalog = gt_fieldcat.
ENDMODULE.