cancel
Showing results for 
Search instead for 
Did you mean: 

How to increase size of popup window

Former Member
0 Kudos

Hi All,

I want to increase the size of popup window, after create window, i am calling method SET_WINDOW_SIZE I tried with all posible values like 100%, 250px, 1000 but there is no effect on the size of the popup in the output.

Please refer my code below and help me out in this

Thanks in advance......

lo_window_manager = lo_api_component->get_window_manager( ).

lo_window = lo_window_manager->create_window(

window_name = 'ZTEST_POPUP'

title = 'Test Popup'

close_in_any_case = abap_true

message_display_mode = if_wd_window=>co_msg_display_mode_selected

close_button = abap_true

button_kind = if_wd_window=>co_buttons_ok

message_type = if_wd_window=>co_msg_type_none

default_button = if_wd_window=>co_button_ok

).

lo_window->set_close_button( abap_true ).

lo_window->set_window_position(

position = if_wd_window=>co_left ).

lo_window->set_window_size( width = '500px'

height = '500px' ).

lo_window->open( ).

Regards,

Venkat.

Accepted Solutions (1)

Accepted Solutions (1)

SARK
Advisor
Advisor
0 Kudos

Hi Venkat,

Jus set the size (height and width ) in ROOTUIELEMENT of the popup view. This will resolve ur issue.

Regards

Sathish

Former Member
0 Kudos

Hi Satish,

Thanks.....a lot...

Problem solved

Regards,

Venkat.

Answers (1)

Answers (1)

christian_frier2
Explorer
0 Kudos

...just for future reference: It seems to work only if set_window_size is called after open( ).