2007 Apr 23 9:57 AM
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
2007 Apr 23 10:01 AM
2007 Apr 23 10:01 AM
2007 Apr 23 10:09 AM
hi Santosh Kumar Patha
i try like u tell with sy-ucomm
and now nothing happen when i double click on the colman
regards
2007 Apr 23 10:14 AM
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.
2007 Apr 23 10:17 AM
sorry,
i have interpreted your question in a wrong way ... and i have corrected it back ..
Regards,
Santosh
2007 Apr 23 10:22 AM
hi Santosh
maybe u can give me tipp where is the problem
im new in double click
regards
2007 Apr 23 10:25 AM
hi ,
try with <b>CALL SCREEN <no> AND RETURN</b>
reward points if this helps u
ravi
Message was edited by:
ravi r
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |