Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

help in stuck window

Former Member
0 Kudos

Hallow

I doing a double click event with classes

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

To close the window it stuck

What can I do to change that?

Regards

i copy that from bcalv03

&----


*& 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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi,

try to use <b>CALL SCREEN <screen no > AND RETURN</b>

reward if helpful

ravi

3 REPLIES 3

Former Member
0 Kudos

hi,

try to use <b>CALL SCREEN <screen no > AND RETURN</b>

reward if helpful

ravi

0 Kudos

hi ravi

returen to where? can u give exempale

regards

Former Member
0 Kudos

Make sure the ok_code is correctly used for calling exit_program subroutine for exiting the container. Also check which custom container you are flushing while existing the dialog window. In the given SAP example the exit program is called at Return to Main screen button event.

Regards

Nilesh Shete