cancel
Showing results for 
Search instead for 
Did you mean: 

Pop up window to appear in a specific size

Former Member
0 Kudos

Hi friends,

On button click i want the pop up window to appear as per the required size ,after which i can drag and change accordingly.

This is the code i am using

DATA LO_WINDOW_MANAGER TYPE REF TO IF_WD_WINDOW_MANAGER.

DATA LO_API_COMPONENT TYPE REF TO IF_WD_COMPONENT.

DATA LO_WINDOW TYPE REF TO IF_WD_WINDOW.

LO_API_COMPONENT = WD_COMP_CONTROLLER->WD_GET_API( ).

LO_WINDOW_MANAGER = LO_API_COMPONENT->GET_WINDOW_MANAGER( ).

LO_WINDOW = LO_WINDOW_MANAGER->CREATE_WINDOW(

WINDOW_NAME = 'W_POPUP'

close_in_any_case = abap_false

close_button = abap_true

BUTTON_KIND = IF_WD_WINDOW=>CO_BUTTONS_OKcancel

DEFAULT_BUTTON = IF_WD_WINDOW=>CO_BUTTON_OK ).

lo_window->set_window_size( width = '400' height = '200' ).

lo_window->set_remove_on_close( abap_true ).

LO_WINDOW->OPEN( ).

presently for all set_window_size( ) settings, i am getting the same window size in the beginning but draging is working properly.

please give suggestions to generate a popup as per my window_size requirement.

regards,

Radhika

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi ..

I tried all these possibilities as per the above suggestd posts,then also i am getting the same.please suggest some other alternatives too,for eg, any othr methods which will meet my requirement.

thank you.

rgds,

radhika

Former Member
0 Kudos

Refer this :

Former Member
0 Kudos

Hi,

If your ui size(width & height ) is heigher than window size, you can not see the changes. so please check the UI size(width&height) in RootUITransactionContainer of View.

Best Regards

Ravi Golla

abhimanyu_lagishetti7
Active Contributor
0 Kudos

I don't see set_window_size is working, alternatively you can set the height and width of the ROOTUIELEMENT in the View which is placed in Window.

Abhi