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

call screen in method handle_double_click

former_member182371
Active Contributor
0 Likes
1,066

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
930

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

7 REPLIES 7
Read only

Former Member
0 Likes
931

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

Read only

former_member182371
Active Contributor
0 Likes
930

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.

Read only

0 Likes
930

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

Read only

former_member182371
Active Contributor
0 Likes
930

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

Read only

0 Likes
930

I am talking about multiple events on the grid of 100.

Can you post the code here?

Message was edited by: Ravikumar Allampallam

Read only

former_member182371
Active Contributor
0 Likes
930

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.

Read only

0 Likes
930

Set next screen to 0 in the attributes of screen 101, and use leave screen in the pai. see if it works.

Regards

Sridahr