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

Re: Auto update internal table when row selected (cl_gui_alv_grid)

$
0
0

Hello,

 

1) As for getting mouse single click check this:

 

CLASS lcl_event DEFINITION.
PUBLIC SECTION.


METHODS: handle_button_click FOR EVENT button_click

                    OF cl_gui_alv_grid IMPORTING es_col_id  es_row_no.


ENDCLASS.


CLASS lcl_event IMPLEMENTATION.

     METHOD handle_button_click.


*     PLACE YOUR CODE HERE


   ENDMETHOD.

ENDCLASS

 

Then, you should do this:

 

CREATE OBJECT oref_handlers.
SET HANDLER oref_handlers->handle_button_click FOR GCL_GRID.

 

CALL METHOD gcl_grid->set_table_for_first_display
EXPORTING

.

.

 

2) If the loop at selected rows internal table returns an error, check the type of internal table. Are you doiing a loop into a working area?

 

Hope this helps you.

 

Regards.


Viewing all articles
Browse latest Browse all 8451

Trending Articles



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