cancel
Showing results for 
Search instead for 
Did you mean: 

Window Closing in Webdynpro ABAP

Former Member
0 Kudos

Hi,

I have a requirement in which I need to close the window on click of a button.

Is there any method which handles this?

Regards,

Pratibha.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member183069
Active Participant
0 Kudos

Hi ,

Try this

DATA lv_wc TYPE REF TO IF_WD_WINDOW_CONTROLLER.


data lv_view TYPE REF TO IF_WD_VIEW_CONTROLLER.


data lo_window  type ref to if_wd_window.


lv_view = wd_this->wd_get_api( ).


 
lv_wc = lv_view->GET_EMBEDDING_WINDOW_CTLR( ).

   lo_window = 
lv_wc ->GET_WINDOW( ).

   lo_window->CLOSE( ).

Regards,

K. karthikeyan

Former Member
0 Kudos
Former Member
0 Kudos

Pratibha,

Also this is solution for WD Java I hope you'll find similarities:

1. Save reference to IWDWindow returned with IWDWindowManager.open<>(...) method.

2. In action handler just call on this saved reference IWDWindow.close() (or IWDWindow.destroy if you have no plans to show it latter).

VS

Former Member
0 Kudos

Hi Valery,

Thanks for your reply.

The solution you have suggested will work for any window we are opening from our current application. But I need to close my parent application window itself. How do I get reference to that?

Pratibha.

Former Member
0 Kudos

Pratibha,

This task assumes client-side JavaScript and hence it is not possible with WD. Ok, it is impossible with stand-alone WD application. For application running as portal iView probably there are some options with portal eventing.

VS