cancel
Showing results for 
Search instead for 
Did you mean: 

Pass Message to a pop-up view

Former Member
0 Kudos

Hi,

I pop-up a view in a window, that contains an error message.

How can i change this error message using a parameter or anything else ?

Thanks in advance.

Edited by: dyngry on Apr 14, 2011 2:23 PM

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi dyngry.,

If u want to display only message in popup window., no need of another view and window., use create_popup_to_confirm() method.,

try this.,

* Data declarations for Pop up window

  data: lt_text type string_table,
        lo_window_manager type ref to if_wd_window_manager,
        lo_api_component type ref to if_wd_component,
        lo_window type ref to if_wd_window,        
        l_api type ref to if_wd_view_controller.



   msgtext = 'Do u want to continue. ?'
 
    append msgtext to lt_text.

      clear: tmp_from , tmp_to .

      l_api = wd_this->wd_get_api( ).

      lo_api_component = wd_comp_controller->wd_get_api( ) .


      lo_window_manager  = lo_api_component->get_window_manager( ).

      lo_window1 =

      lo_window_manager->create_popup_to_confirm(

             text = lt_text
             button_kind = if_wd_window=>co_buttons_okcancel
             message_type = if_wd_window=>co_msg_type_information   " this is info msg u can give error message here 
             close_button = 'X'
             window_title = 'Confirmation message box'
             ).
  
   
      lo_window1->open( ).

reply if u need some more clarifications.,

Thanks & Regards

Kiran

Former Member
0 Kudos

Thanks.

Answers (0)