cancel
Showing results for 
Search instead for 
Did you mean: 

Closeing Browser from Popup Ok Button?

Former Member
0 Kudos

Hi Frnds,

I have a scenario that, i have to close the entire Browser through Popup Window's Yes or No Button.

I have tried with Exit plug, it does closing the browser window,

But i have LinkTo Action, when i click on this LinkToAction button it Creates one Popup window,

That Popup window contains YES, NO, CANCEL buttons by Default.

Now i want to close the Popup s well as Browser Window, when i click on YES Button from Popup,

I need your Help, or Sample code.

Thanks,

Pradeep

Accepted Solutions (0)

Answers (2)

Answers (2)

ramakrishnappa
Active Contributor
0 Kudos

Hi Pradeep,

As suggested by Bhagat, use the exit plug to achieve your requirement.

Creating EXIT plug with parameter CLOSE_WINDOW = X in main window and on Yes button's action, firing the exit plug should be called to close the main window.

For closing window refer the below link:

Closing a web browser through action | Team ABAP

Regards,

Rama

Former Member
0 Kudos

Hi,

you know how to close browser window, right ?
Place the functionality used here.. in the action where u are using browser closing code, before the browser closing code. It will close both popup and browser.

Former Member
0 Kudos

Hi Pradeep,

Yes you can close the browser window by using window exit plug when user clicks on 'Yes' button.

Step1: within window create a outbound plug EXIT with interface ON

Step 2: within the action event YESONACTION fire  the EXIT PLUG of window.

you have to pass the parameter CLOSE_WINDOW with value ABAP_TRUE. Hence controller closes window.

DATA: l_ref_MAIN_WINDOW TYPE REF TO IG_MAIN_WINDOW .
l_ref_MAIN_WINDOW =   wd_This->Get_Main_Window_Ctr( ).
  l_ref_MAIN_WINDOW->Fire_Exit_Plg(
).

with the button action you have to fire exit plug of window.

You can refer below link

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

If still not working . Please tell me your NW release and support pack ?

Regards,

Bhagat.