Skip to Content
avatar image
Former Member

Close browser window using FPM

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Aug 19, 2011 at 08:21 AM

    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]

    Add comment
    10|10000 characters needed characters exceeded