title: How to call popup window from component controller and handle subscribe_to_button_event in WDA
body: <p>I found this issue in some scenario, and that is how I've resolve.</p>
  
  <p><strong>Scenario</strong>. Call a Popup window from the component-controller not from a the view.</p>
  
  <pre><code>METHOD wddoinit.
  
  DATA: lo_popup_window TYPE REF TO if_wd_window,
        lo_window_manager TYPE REF TO if_wd_window_manager,
        lo_cmp_api TYPE REF TO if_wd_component,
        lt_text TYPE string_table,
        ls_text TYPE string.
  
   lo_cmp_api = wd_this-&gt;wd_get_api( ).
   lo_window_manager = lo_cmp_api-&gt;get_window_manager( ).
   ls_text = 'Do you want to continue?'.
   INSERT ls_text INTO TABLE lt_text.
  
   CALL METHOD lo_window_manager-&gt;create_popup_to_confirm
        EXPORTING
          text = lt_text
          button_kind = if_wd_window=&gt;co_buttons_yesno
          default_button = if_wd_window=&gt;co_button_no
          window_title = 'Information'
          close_button = abap_false
        RECEIVING
          result = lo_popup_window.
  
   CALL METHOD lo_popup_window-&gt;popup_to_confirm-&gt;subscribe_to_button_event
        EXPORTING
            controller = lo_cmp_api
            button = if_wd_window=&gt;co_button_no
            handler_name = 'ACTION_BTN_NO'.
  
   CALL METHOD lo_popup_window-&gt;popup_to_confirm-&gt;subscribe_to_button_event
        EXPORTING
            controller = lo_cmp_api
            button = if_wd_window=&gt;co_button_yes
            handler_name = 'ACTION_BTN_YES'.
  
   lo_popup_window-&gt;open( ).
  
  ENDMETHOD.
  </code></pre>
  
  <p><em>-----------------------------------------------------------------------------------</em></p>
  
  <p>In the methods set the event handlers as follow.</p>
  
  <p><a href="https://i.stack.imgur.com/zfrdc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zfrdc.png" alt="enter image description here"></a></p>
  
  <p><em>-----------------------------------------------------------------------------------</em></p>
  
  <p>When I run the program</p>
  
  <p><a href="https://i.stack.imgur.com/enz9N.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/enz9N.png" alt="enter image description here"></a></p>