cancel
Showing results for 
Search instead for 
Did you mean: 

Exiting a Web Dynpro Application by pressing a button on a Web Dynpro View

Former Member
0 Kudos

Hi all,

I want to exit a Web Dynpro application when the user presses an Exit button on the screen. Is there an API for closing the current browser window and exiting the application?Thanks.

Sukru

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

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 in the onAction of Exit Button .

Refer SAP online help on using Exit plug to close a window:

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

method ONACTIONGO_EXIT .

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_MY_EXIT_PLUG_PLG( CLOSE_WINDOW = 'X' ).

endmethod.

here Main_window is the window which needs to be closed.

I hope it is clear.

Answers (0)