Application Development and Automation 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: 
Read only

help in stuck window

Former Member
0 Likes
898

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
838

hi,

Check out this thread

Message was edited by:

Santosh Kumar Patha

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

6 REPLIES 6
Read only

Former Member
0 Likes
839

hi,

Check out this thread

Message was edited by:

Santosh Kumar Patha

Read only

0 Likes
838

hi Santosh Kumar Patha

i try like u tell with sy-ucomm

and now nothing happen when i double click on the colman

regards

Read only

0 Likes
838

well you are calling a new screen.

probably you forgot to assign a status to that screen what again means you have no possibility to leave your form.

either assign a status you already have, or do a new gui-status for that screen.

Make sure you have at least the commands for the threee main buttons (BACK;CANCEL;EXIT) declared.

then all should work.

Read only

0 Likes
838

sorry,

i have interpreted your question in a wrong way ... and i have corrected it back ..

Regards,

Santosh

Read only

0 Likes
838

hi Santosh

maybe u can give me tipp where is the problem

im new in double click

regards

Read only

Former Member
0 Likes
838

hi ,

try with <b>CALL SCREEN <no> AND RETURN</b>

reward points if this helps u

ravi

Message was edited by:

ravi r