Skip to Content
author's profile photo Former Member
Former Member

popup message

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 29, 2008 at 11:43 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 29, 2008 at 12:12 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.