Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

call method create_popup_to_confirm

Hello experts,

mein problem is to call methods. How can i call the method

create_popup_to_confirm ?

Sorry for the question but i am new to web dynpro.

can i insert vertical gutters ?

Thanks a lot.

Edited by: René Hölterling on Oct 14, 2008 4:43 PM

Former Member
Former Member replied

Hi Rene,

Calling a popup to confirm is as follows:

  DATA: l_cmp_api TYPE REF TO if_wd_component,
        l_window_manager TYPE REF TO if_wd_window_manager,
        l_popup TYPE REF TO if_wd_window,

  l_cmp_api = wd_comp_controller->wd_get_api( ).
  l_window_manager = l_cmp_api->get_window_manager( ).
  ls_text = 'Do you confirm....?'.
  INSERT ls_text INTO TABLE lt_text.
  l_popup = l_window_manager->create_popup_to_confirm(
               text = lt_text
               button_kind = if_wd_window=>co_buttons_yesno
               message_type = if_wd_window=>co_msg_type_question
               window_position = if_wd_window=>co_center ). "#EC *

  l_api = wd_this->wd_get_api( ).

*Create an action called <<ACTION_YES>> and <<ACTION_NO>> corresponding to confirming Yes to the * action or No to the action
*Implement the actions accordingly in an event of YES when the user wants to go ahead with the action
* or in an event NO when the user wants to terminate the action

              button = if_wd_window=>co_button_yes
              action_name = 'ACTION_YES'
              action_view = l_api
              is_default_button = abap_false ).

              button = if_wd_window=>co_button_no
              action_name = 'ACTION_NO'
              action_view = l_api
              is_default_button = abap_false ).

  l_popup->open( ).


Vertical Gutter

If you have a layout setup where Pane 1 and Pane 2 are seperated by a vertical gutter as such,







put Pane 1 and Pane 2 under a transparent container of layout Matrixlayout

and Under the LayoutData for Pane2, there would be a property called vGutter. Select a value for it from the drop down , such as 'mediumWithRule'

Best Regards,


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question