Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2801

using hotspot event in oo alv, split container concept

$
0
0

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


Viewing all articles
Browse latest Browse all 2801

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>