Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Close the main view after exiting popup view in webdynpro

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

Tags:
Former Member
replied

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:

Automatically Close Browser Window of Web Dynpro Application

1 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question