cancel
Showing results for 
Search instead for 
Did you mean: 

leave screen

Former Member
0 Kudos

Hi gurus,

Am new to Webdynpro abap. How to close the application when i click the event(button) at run time.

Thanks in advance,

shakthi

Accepted Solutions (0)

Answers (2)

Answers (2)

gill367
Active Contributor
0 Kudos

Create an exit plug in the window with a parameter CLOSE_WINDOW of type wdy_boolean.

then create controller usage of the window in the view having the button.

then just fire the exit plug in the eventhandler and pass the parameter as abap_true.

thanks

sarbjeet singh

Former Member
0 Kudos

Hi,

i couldn't understand your points. could u please explain in detail.

When i click the button the window should be closed.

thanks,

Shakti

Edited by: shathis on Feb 23, 2011 1:36 PM

Former Member
0 Kudos

Hi shatis

Please go through th below steps:

1. Create an outbound plug in the Window. This should be of type Exit plug.

2. Specify a parameter to the plug-> Parameter CLOSE_WINDOW TYPE BOOLEAN.

3. Create Usage of this Window in the view in which you require the Close window button.

4. Go to Onaction method of Clos window (Any name) button in your view and give the following coding.

DATA lo_ytest_filter TYPE REF TO ig_your web dynpro component name.

lo_ytest_filter = wd_this->get_your web dynpro component name_ctr( ).

lo_ytest_filter->fire_Your plug name_plg(

close_window = 'X' " boolean ).

OR

follow this..

/people/mohammed.anzys/blog/2007/06/05/how-to-close-parent-window-in-webdynpro-applications

Thanks,

Kris.

Former Member
0 Kudos

Hi Shathi,

Please go through this blog step by step...

/people/mohammed.anzys/blog/2007/06/05/how-to-close-parent-window-in-webdynpro-applications

and also plese read this...

http://help.sap.com/saphelp_nw70/helpdata/en/45/1bc575ba064574e10000000a114a6b/frameset.htm

Thanks,

Kris.