cancel
Showing results for 
Search instead for 
Did you mean: 

Closing the internet explorer on click of button

Former Member
0 Kudos

Hi,

In my application, my requirement is to close the explorer from the window default plug event.

In default plug event , if condition faills, user has to get pop up , and on click ok on pop up, total explorer has to close.

In my case I odnt want to use ICM (SICF).

Regards,

saraht

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks.

I used OUTBOUND PLUG EXIT TYPE.

wd_this->fire_close_wind_plg( URL = '/sap/bc/bsp/sap/system/logoff.htm'

).

Former Member
0 Kudos

hi Sarath ,

u eithercreate a controller of ur view , in which ur button UI element is there or use component controller.

windows exit plug is called by an event handler method in the controller of embedded view.

pls refer this online SAP help . how to create the outbound plugs and their parameters , in order to exit from the browser :

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/ca3351508f04e7e10000000a42189c/content.htm

http://help.sap.com/erp2005_ehp_04/helpdata/EN/45/1bc575ba064574e10000000a114a6b/frameset.htm

regards,

amit

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

If you meet the technical requirements, you can use the exit plug with the close_window parameter:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/ca3351508f04e7e10000000a42189c/frameset.htm

Former Member
0 Kudos

Hi,

Thnks for your replay.

My requirement meets with EXIT Out bound plug.

But I wnat to show a popup to the user.. wit hsome message and click YES button I want to fire EXIT out bound plug.

I am not getting how subscribe for an event in WINDOW?

Regards,

sarath

kkram
Contributor
0 Kudos

Raise a popup before firing the plug. If user accepts, fire the plug, else, don't.

KK

Former Member
0 Kudos

hi,

You can call a Pop up to confirm window and on the click of yes button Close the Pop up window and also the main window.

For closing Main Window, use Exit Plug in Windows:

Do the following steps :

-> Make an Outbound Plug to the Window.

->Make the type of Outbound plug to Exit Type.

->Add CLOSE_WINDOW of type wdy_boolean as a parameter to the outbound plug of Window.

->Do remember to add Component Name in the Properties Tab of View ( othervs Calling Outbound plug of window from view wont be possible ).

->Fire the outbound plug with close_window as X.

Former Member
0 Kudos

Hi,

On the close button u can open a new window with using the create_popup_to_confirm method of window.

Now in the action of this on click of Yes button write the code of fire plug.