cancel
Showing results for 
Search instead for 
Did you mean: 

Close browser window using FPM

Former Member
0 Kudos

Hi all,

My requirement is to close the browser window on click of a button in the webdynpro component.

I have triggered FPM event gc_event_close in after action of that view.

The window gets closed perfectly if I execute the application from SE80.

But the window is not getting closed when I run the application from portal, instead I get a message saying' The application is closed, you can now close the window'

Any pointers on closing the browser window when the application is run from portal would be of great help.

Thanks in advance.

Veda

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I can confirm this behavior. You can change this behavior by adding code in process_event method.

1. Fire a portal event with

"urn:com.sapportals:navigation", "CloseWindow", ""

OR

1. Fire a Exit plug with close_window = abap_true

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