Skip to Content
0
Former Member
Apr 23, 2007 at 08:57 AM

help in stuck window

41 Views

Hallow

I doing a double click event with classes

And I when I double click on Colman it open a window but when I wont

To close the window it <b>stuck</b>

What can I do to change that?

Regards

&----


*& Class USED QUOTA CLASS

&----


  • Text

----


CLASS lcl_event_receiver DEFINITION.

PUBLIC SECTION.

METHODS:

handle_double_click

FOR EVENT double_click OF cl_gui_alv_grid

IMPORTING e_row e_column.

  • PRIVATE SECTION.

ENDCLASS. "USED QUOTA CLASS

*********************************************************************************

&----


*& Class (Implementation) quota_class

&----


  • Text

----


CLASS lcl_event_receiver IMPLEMENTATION.

METHOD handle_double_click.

IF e_column = 'OBJID'. "<---- To ensure first column is clicked , chk the fieldname of column 1

READ TABLE itab INTO wa_itab INDEX e_row-index.

IF sy-subrc = 0.

  • CALL SCREEN 200.

CALL SCREEN 101 STARTING AT 10 5.

ENDIF.

ENDIF.

ENDMETHOD. "handle_double_click

----


  • FORM EXIT_PROGRAM *

----


FORM exit_program.

  • CALL METHOD G_CUSTOM_CONTAINER->FREE.

  • CALL METHOD CL_GUI_CFW=>FLUSH.

  • LEAVE PROGRAM.

  • call method custom_container1->free.

    if not custom_container2 is initial.

    call method custom_container2->free.

    endif.

    call method cl_gui_cfw=>flush.

    if sy-subrc ne 0.

    • add your handling, for example

    call function 'POPUP_TO_INFORM'

    exporting

    titel = g_repid

    txt2 = sy-subrc

    txt1 = 'Error in FLush'(500).

    endif.

    leave program.

    ENDFORM. "EXIT_PROGRAM