cancel
Showing results for 
Search instead for 
Did you mean: 

popup message

Former Member
0 Kudos

Hi,

I want to display the popup message in my view.

But in my scenario, I need to display lot of messages. So if im using Create_window means I need to create many views.

Is there any other way to display the pop up message without view design.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can use method CREATE_POPUP_TO_CONFIRM of interface IF_WD_WINDOW_MANAGER.

Check the below code :

l_cmp_api           = wd_comp_controller->wd_get_api( ).
  l_window_manager    = l_cmp_api->get_window_manager( ).
  if wd_this->m_popup1_1 is initial.

 wd_this->m_popup1_1 = l_window_manager->CREATE_POPUP_TO_CONFIRM(
             TEXT  = Text
             button_kind  = if_wd_window=>CO_BUTTONS_ABORTRETRYIGNORE
             message_type = if_wd_window=>CO_MSG_TYPE_QUESTION 
             WINDOW_WIDTH = '1000' 
             WINDOW_HEIGHT = '1000' ). "stop -> stopp, Info -> Information

endif.
  wd_this->m_popup1_1->open( ).

Thanks.

Edited by: Viji on Apr 29, 2008 1:43 PM

Former Member
0 Kudos

Hi

I got the pop up message. It shows three buttons. But I need two buttons only Yes and No.

Former Member
0 Kudos

Hi,

For that just change the button kind of your method.

Check this,

button_kind  = if_wd_window=>CO_BUTTONS_YESNO

Thanks.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Try this,

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.

DATA l_text_table type string_table.

data lv_msg_text type string.

lo_api_component = wd_comp_controller->wd_get_api( ).

lo_window_manager = lo_api_component->get_window_manager( ).

lv_msg_text = 'Message1'.

APPEND LV_MSG_TEXT TO l_text_table.

lv_msg_text = 'Message2'.

APPEND LV_MSG_TEXT TO l_text_table.

CALL METHOD lo_window_manager->CREATE_POPUP_TO_CONFIRM

EXPORTING

TEXT = l_text_table

BUTTON_KIND = if_wd_window=>CO_BUTTONS_YESNO

MESSAGE_TYPE = if_wd_window=>CO_MSG_TYPE_NONE

  • CLOSE_BUTTON = ABAP_TRUE

  • WINDOW_TITLE =

  • WINDOW_LEFT_POSITION =

  • WINDOW_TOP_POSITION =

  • WINDOW_POSITION =

  • WINDOW_WIDTH =

  • WINDOW_HEIGHT =

  • DEFAULT_BUTTON =

RECEIVING

RESULT = lo_window.

lo_window->open( ).

Regards,

Padmam.