cancel
Showing results for 
Search instead for 
Did you mean: 

Close the main view after exiting popup view in webdynpro

0 Kudos

Hi,

The output of the webdynpro I have created has a submit button. Once submitted, a pop up is displayed with a message. On clicking on, the pop up closes but not the main page.

The main page view and pop up view are view in 2 different windows. How do I close the main view on clicking 'OK' at the pop up.
I do see topics on this in this forum but unfortunately it did not help.

Need advice and suggestions please.

Thanks,

Deepak

Accepted Solutions (1)

Accepted Solutions (1)

former_member197475
Active Contributor
0 Kudos

Hi Deepak,

You can achieve this by using exit plug to close your Web Dynpro application. Please check the below doc.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0018077-f0c9-2b10-87af-eb9bb4077...

BR,

RAM.

0 Kudos

Hi Ram,

Thanks for the link. It is helpful to a certain extent but does not solve my issue. I wanted to close the browser once the pop up button is actioned. I see that in a pop up we have an option to close it by using the method close( ). I do not see a similar method for the main view.

Thanks,

Deepak

0 Kudos

Hi Deepak,

Create an exit plug for the main window and use that controller in the view of your popup window.

On clicking a button in the pop up, fire the exit plug for the main window.

Example : lo_main_window type ref to ig_zwd_main_window.

                lo_main_window =  wd_this->get_zwd_main_window_ctr( ).

                lo_main_window->fire_exit_plg( ).

please refer to the provided link to automatically close the browser:

0 Kudos

Thankyou Taiyeb. This works perfectly as expected.

Thanks,

Deepak M S

Answers (0)