Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

method: handle_double_click, repeating itself on the second time of execution ?!

$
0
0

Hi everyone,

 

I have a program with alv and I am using handle_double_click method. After I execute the program, screen-field  takes the correct value (the one I click on alv), but when I click another value and look at debuger, the method just repeats itself a couple times and at the end, screen_field takes the previous value again, not the one I click on the second time.  Does anyone have any idea of why this might be happening ?

 

CLASS event_class IMPLEMENTATION.

 

  METHOD handle_double_click.

 

SELECT field1 field2 FROM table1

 

       INTO CORRESPONDING FIELDS OF TABLE lt_table1.

 

    READ TABLE lt_table1 INDEX e_row-index INTO ls_table1.

 

  screen_field = ls_table1-field1

 

    cl_gui_cfw=>set_new_ok_code( EXPORTING new_code = 'save_ok').

 

  ENDMETHOD. "handle_double_click

ENDCLASS.

 

 

 

Thank you in advance,

 

Shkelqim


Viewing all articles
Browse latest Browse all 8332

Trending Articles



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