cancel
Showing results for 
Search instead for 
Did you mean: 

how to close the create_window

Former Member
0 Kudos

i am creating a popup window using create_window and how to close the pop-up

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Unless and untill u take action on the POP-UP Window.how does it close automatically....? If have any other queries or u can elaborate more on ur requirement...

Thanks,

Naga Prakash

Former Member
0 Kudos

i am displaying table data in popup window. user select any row from the table then popup window will be closed

Former Member
0 Kudos

>

> i am displaying table data in popup window. user select any row from the table then popup window will be closed

Hallo Praveen,

You should not close the window on the action of the table row selection or lead selection while you are in the popup window.

when you create a window, you can define some thing like this in your compo controller attribute

GO_POPUP_WINDOW type if_wd_window.

create window returns a window reference.

So you can change your statement like

wd_comp_controller->GO_POPUP_WINDOW = current create window statement here.

In your popup view component controller, create a event like table_row_selected.

Subscribe this event in your parent view(which creates popup).

in this event handler close the window like this

wd_comp_controller->go_popup_window->close( ).

I would also suggest that you invest some time on learning WDA basics and going through forum before you post your questions.

Answers (2)

Answers (2)

Former Member
0 Kudos
Former Member
0 Kudos

>

> hi,

>

> use this

>

>

>

> http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40794172-b95a-2910-fb98-b86d8a091...

HI Praveen,

I have no idea what you mean by this "Use this" ?

Is your problem solved ? Do you advice the readers to go through your link to solve simillar problem. Please avoind such one line posting as it is creating confusion.

gill367
Active Contributor
0 Kudos

HI

there are two ways basically which you can use to close the window.

one is while creating the window there is one parameter close_in_any_case which if you set to true as follows will close the

window on any action performed on the window.

close_in_any_case      = abap_true

second way is you can manually call the method close().

lo_window->close(  ).

let me know if you need further assistance.

thanks

Sarbjeet