cancel
Showing results for 
Search instead for 
Did you mean: 

How to create external window on top of other window?

Former Member
0 Kudos

I create an external window from my web dynpro component. How to make sure the new window is created on top, not in the back? My web dynpro component is accessed via sapgui and browser.

Thank you

Edited by: Vincent Cao on Jun 15, 2010 5:25 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I guess by default, external windows are created on top of the application window by which they are created.

Is it opened in the background in your case? If so, please post the code snippet which you are using to create external window.

Regards,

Srilatha

Former Member
0 Kudos

Yes, by default it should be on top.But mine is displayed in the background.

Logic is:

1 Window A (or SAPGUI A) has a pop window PA with a button "OK"

2 Press "OK" button, PA window is closed. And fire an event to window A

3 A get the event, refresh itself and create an external window.

Part of codes:

window = lo_window_manager->create_external_window(

url = i_url

title = title

modal = modal " abap_false

has_menubar = has_menubar "abap_true

is_resizable = is_resizable "abap_true

has_scrollbars = has_scrollbars "abap_true

has_statusbar = has_statusbar "abap_true

has_toolbar = has_toolbar "abap_true

has_location = has_location ). "abap_true

IF width IS NOT INITIAL AND height IS NOT INITIAL.

window->set_window_size( width = width height = height ).

ENDIF.

window->open( ).

Former Member
0 Kudos

HI,

I had tried similar thing. As the original application was also refreshing, the created window was in the background.

But again, it came to foreground again once the original application was refreshed.

Isnt it the case in your case?

Regards,

Srilatha

Former Member
0 Kudos

It is different in my case:

When I press the "OK" button, I see that the original window A's title bar become grey. At the same time the external window is being created . Soon, window A come to the front with the title bar in color blue.

I feel that it seems something in window A grasp the focus again. But I cannot find it out.

Former Member
0 Kudos

Please check the following SAP Notes:

1322483

1224407

950770

980745

Hope it will solve your issue!

Regards,

Srilatha

Former Member
0 Kudos

It doesn't solve the issue. I do not meet this issue in SAP GUI, but in browser.

Is there any API to like set_focus to let window get the focus?

Thanks

Former Member
0 Kudos

Hello,

Did you check the above mentioned SAP(OSS) notes.

SAP notes which i had mentioned above are related to the same issue occuring in browser not SAP GUI.

What version of SAP BASIS is on your system? According to that check which SAP note can be applied to resolve the issue.

Regards,

Srilatha

Answers (0)