2006 Jun 02 10:20 PM
Hi,
in my report i display first dynpro 100. In this dynpro i display 2 ALV´s. If i double click on one of them
i do a call a new screen (101) within event
handle_double_click:
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.
class lcl_event_receiver implementation.
method handle_double_click.
data: ls_qs like line of i_qs.
read table i_qs index e_row-index into ls_qs.
call screen 101 starting at 10 5.
endmethod. "handle_double_click
Once in dynpro 101, if i want to leave this dynpro and return to dynpro 100 (by means of a button with ok_code = 'GO_BACK' controlled in PAI of dynpro 101)the flow of the program returns to method handle_double_click
processing again dynpro 101.
The question is that if i double click again it FINALLY leaves dynpro 101.
How can i overcome this situation?
Has anyone faced something similar?
Best regards.
2006 Jun 02 10:33 PM
Can you explain a little more?
Once you go back from 101, the method handle_double_click resumes .... and then 101 comes up again ??
Regards,
Ravi
Hi,
in my report i display first dynpro 100. In this dynpro i display 2 ALV´s. If i double click on one of them
i do a call a new screen (101) within event
handle_double_click:
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.
class lcl_event_receiver implementation.
method handle_double_click.
data: ls_qs like line of i_qs.
read table i_qs index e_row-index into ls_qs.
call screen 101 starting at 10 5.
endmethod. "handle_double_click
Once in dynpro 101, if i want to leave this dynpro and return to dynpro 100 (by means of a button with ok_code = 'GO_BACK' controlled in PAI of dynpro 101)the flow of the program returns to method handle_double_click
processing again dynpro 101.
The question is that if i double click again it FINALLY leaves dynpro 101.
How can i overcome this situation?
Has anyone faced something similar?
Best regards.
2006 Jun 02 10:33 PM
Can you explain a little more?
Once you go back from 101, the method handle_double_click resumes .... and then 101 comes up again ??
Regards,
Ravi
2006 Jun 02 10:39 PM
Hi,
the fact is that when i´m in dynpro 101 and want to return to dynpro 100 i have to click two times in button GO_BACK of dynpro 101. This button is controlled in PAI where i have a LEAVE TO SCREEN 0,
The first time i click on button GO_BACK the flow of the program goes to method handle_double_click of dynpro 100 and the second time it does not.
Best Regards.
2006 Jun 02 10:43 PM
Hi,
Ideally it shouldn't happen, is there any HOTSPOT event also on the grid that shows the same screen. If that is the case probably its firing once for the double click and one for the hotspot.
Regards,
Ravi
Note :Please mark the helpful answers
2006 Jun 02 10:49 PM
Hi Ravikumar,
in dynpro 101 i don´t double click but click on a button.
No event is raised in dynpro 101. I just controll it via ok_code in module of PAI.
But the flow of the program insists on repeting again method handle_double_click of dynpro 100.
Best regards
2006 Jun 02 11:03 PM
I am talking about multiple events on the grid of 100.
Can you post the code here?
Message was edited by: Ravikumar Allampallam
2006 Jun 02 11:07 PM
Hi,
yes, in dynpro 100 i have handle_double_click event which is the event that allows me to go to dynpro 100.
Best Regards.
2006 Jun 02 11:43 PM
Set next screen to 0 in the attributes of screen 101, and use leave screen in the pai. see if it works.
Regards
Sridahr