cancel
Showing results for 
Search instead for 
Did you mean: 

how to close popup window

Former Member
0 Kudos

Hi Colleague,

I am facing one issue in webdynpro. my problem is

when i am click on close button popup window has to close.

could anybody please help me how to do it?

Thanks

Raju

Accepted Solutions (1)

Accepted Solutions (1)

JanarthananE
Contributor
0 Kudos

Hi,

Refer the following link for step by step process for popup window.

http://www.saptechnical.com/Tutorials/WebDynproABAP/Popup/page1.htm

Hope its useful to u,

Regards

Jana

Former Member
0 Kudos

Hi Jana,

Thanks for your reply,

the link is used to how to create an popup window, but i want to close the window.

Thanks&Regards,

Raju

chengalarayulu
Active Contributor
0 Kudos

Eraaju,

follow the below.

1. create a reference for window at component controller level. (Attributes tab)

          lr_window type ref to IF_WD_WINDOW.

2. come to your popup raising place.

     after generating popup just assign the window reference to global attribute.

          wd_comp_controller->lr_window = lo_window.

3. If you have any button on your popup like Close / Ok / Submit - or wherever you want to close window just call the close method.

          wd_comp_controller->lr_window->close( ).

          clear: wd_comp_controller->lr_window.

test your application.

Former Member
0 Kudos

Thanks so much for your reply ...it is working now fine..

Answers (1)

Answers (1)

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

While calling create_window, mention that

close_button =  abap_true.