Skip to Content
0
Former Member
May 11, 2010 at 12:45 PM

Problems with POPUP TO CONFIRM

554 Views

Hi experts,

I have a problem with a popup... I need to insert a popup with only the OK button after an action. I write this code:

....

lo_api_component = wd_comp_controller->wd_get_api( ).

lo_window_manager = lo_api_component->get_window_manager( ).

lo_view_ctrl = wd_this->wd_get_api( ).

  • lv_message = wd_assist->IF_WD_COMPONENT_ASSISTANCE~GET_TEXT( '001' ).

lv_message = err_msg.

insert lv_message into TABLE lt_message.

CALL METHOD LO_WINDOW_MANAGER->CREATE_POPUP_TO_CONFIRM

EXPORTING

TEXT = lt_message

BUTTON_KIND = IF_WD_WINDOW=>CO_BUTTONS_OK

MESSAGE_TYPE = IF_WD_WINDOW=>CO_MSG_TYPE_WARNING

WINDOW_POSITION = IF_WD_WINDOW=>CO_CENTER

RECEIVING

RESULT = lo_window.

CALL METHOD LO_WINDOW->SUBSCRIBE_TO_BUTTON_EVENT

EXPORTING

BUTTON = 1

BUTTON_TEXT = 'OK'

TOOLTIP = 'Ok'

ACTION_NAME = 'NO_SAVE'

ACTION_VIEW = lo_view_ctrl

  • IS_DEFAULT_BUTTON = ABAP_FALSE

.

lo_window->open( ).

....

but I have a dump and the error is: Are not defined command buttons to a popup POPUP_TO_CONFIRM.

What is my error?

Tks a lot.