cancel
Showing results for 
Search instead for 
Did you mean: 

To close a popup

Former Member
0 Kudos

Hi,

I am creating a pop up with properities close_in_any_case = abap_false but i need to close the pop up on certain actions.

i have used below code to close the pop up.

data lo_window type ref to if_wd_window.

lo_window->close( ).

But it throws error "NULL object reference". So how can i get the window reference to pop up ?

Thanks

Vimalraj

Accepted Solutions (0)

Answers (1)

Answers (1)

rainer_liebisch
Contributor
0 Kudos

Hello Vimalraj,

the reference to the popup has to be a global attribute of your view. Then you can use:

check wd_this->r_window is bound.

wd_this->r_window->close( ).

in the ONACTION method for the close button.

Regards,

Rainer

Edited by: Rainer Liebisch on Feb 26, 2008 12:09 PM

Former Member
0 Kudos

From wd_this, ge the component controller interface.

there is a method to get the embedding a view through that get the reference to the window.

A big workaround is required