Code: Alles auswählen.
DATA: lo_window_manager TYPE REF TO if_wd_window_manager,
lo_api_component TYPE REF TO if_wd_component,
lo_view_api TYPE REF TO if_wd_view_controller,
lo_window TYPE REF TO if_wd_window,
lt_buttons TYPE wdr_popup_button_list,
ls_canc_action TYPE wdr_popup_button_action.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_view_api = wd_this->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
* create the cancel icon, but without any action handler
ls_canc_action-action_name = '*'.
* Simple example, see docu of method create_and_open_popup for details
lt_buttons = lo_window_manager->get_buttons_ok("cancel(
default_button = if_wd_window=>co_buttons_ok
).
lo_window = lo_window_manager->create_and_open_popup(
window_name = 'W_SUCHE'
component_usage_name = 'C_SUCHE'
* title =
message_type = if_wd_window=>co_msg_type_none
message_display_mode = if_wd_window=>co_msg_display_mode_selected
* is_resizable = ABAP_TRUE
buttons = lt_buttons
cancel_action = ls_canc_action
).
CALL METHOD lo_window->subscribe_to_button_event
EXPORTING
button = if_wd_window=>co_button_ok
button_text = 'Übernehmen'
* tooltip =
action_name = 'ACTION_OK_CLICK'
action_view = lo_view_api
is_default_button = abap_true
.
lo_window->open( ).