cancel
Showing results for 
Search instead for 
Did you mean: 

Popup window doesn't close

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Daniel,

I think this link will help you........

/people/mohammed.anzys/blog/2007/06/10/webdynpro-abap-controlling-external-windows

Thanks ,

Kishor.

Former Member
0 Kudos

Hello Rainer,

thank you for your answer.

Is there another chance to display a abap spool document in pdf-fomat in webdynpro for abap?

Thank you for your help.

Best regards

Daniel

rainer_liebisch
Contributor
0 Kudos

Hello Daniel,

the limitation is only for popups. You can for example embed your Adobe view in a view container and display it in your main window.

Regards,

Rainer

rainer_liebisch
Contributor
0 Kudos

Hello Daniel,

this issue is well known and the result of a limitation in the usage of Adobe in Web Dynpro ABAP. Generally spoken the usage of Interactive Forms in Web Dynpro ABAP popups is not supported. Please read note 1098009 about this topic.

Regards,

Rainer