cancel
Showing results for 
Search instead for 
Did you mean: 

How browser window can be closed in WD ABAP

Former Member
0 Kudos

Hi,

Please suggest how browser window can be closed in WD ABAP?

Regards,

Anindita

Accepted Solutions (0)

Answers (3)

Answers (3)

ChrisPaine
Active Contributor
0 Kudos

Alternatively, just use the FPM framework - it can detect that the application is in it's own browser window when launched from the portal and enables a "close" button.

You can also create a FPM close event which closes the application:

data: lo_fpm type ref to if_fpm.

  lo_fpm = cl_fpm=>get_instance( ).

   lo_fpm->RAISE_EVENT_BY_ID( cl_fpm_event=>gc_event_close ).  

As this is handled within the framework you have access to the standard eventing and checking - so ensuring application is in a fit state to exit etc.

Former Member
0 Kudos

HI,

In order to close window just check close_window parameter.


wd_this->fire_to_exit_plg( url = <url> close_window = close_window ).

Note: Link removed by moderator because site contained had copies of SAP owned materials

Regards and Best wishes.

Edited by: Thomas Jung on May 14, 2010 10:41 AM

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

I suggest you read about Exit Plugs with the parameter CLOSE_WINDOW:

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