Skip to Content
0
Former Member
Dec 17, 2007 at 01:16 PM

Popup window doesn't close

84 Views

Hi,

I habe a problem with a popup window.

I'm creating a popup in a new window, with a new view. In this popup I use a InteractiveForm to present a spool document in PDF. The window open and I see the PDF document. When I try to close the window and click on the close button, the window show me "please wait" and nothing happend. After a second click on the close button, the window close.

Why doesn't close the window at the first step.

Here ist the code:

I convert a ABAP Spool to PDF and convert it to xstring.

  • After this, I export the xstring to a context attribute:

node_pdf = wd_context->get_child_node( name = 'PDF' ).

elem_pdf = node_pdf->get_element( ).

node_pdf->set_attribute(

EXPORTING

name = `DOCUMENT`

value = r_file ).

  • Now, I call the popup window

l_api_main = wd_this->wd_get_api( ).

lo_api_component = wd_comp_controller->wd_get_api( ).

lo_window_manager = lo_api_component->get_window_manager( ).

wd_comp_controller->popup = lo_window_manager->create_window(

window_name = 'SECOND_WINDOW'

close_button = abap_true

button_kind = if_wd_window=>CO_BUTTONS_CLOSE

).

wd_comp_controller->popup->open( ).

Could somebody help me, I dont' now how I close the window on the first click.

Thank you for your help.

Best regards

Daniel

Edited by: Daniel Tockhorn on Dec 17, 2007 2:18 PM