on 12-10-2009 4:52 AM
Hi
I have created a popup to confirm using wizard but i have problem while doing so.
Can you kindly let me know the parameters to be passed to this?
DATA lo_window_manager TYPE REF TO if_wd_window_manager.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_window TYPE REF TO if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->CREATE_POPUP_TO_CONFIRM(
Here i need to know the parameters to be passed ).
My requirement is - On clicking save button i need a popup which has text 'Do you want to contine?' written on it with YES and NO button.
Regards,
Wilma
Hi,
I used the function pop_up_to_confirm but it gives me a dump with the error "Exception condition "CNTL_ERROR" raised. "
I have done the following -
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TEXT_QUESTION = 'Do you want to continue?'
TEXT_BUTTON_1 = 'YES'(001)
TEXT_BUTTON_2 = 'NO'(002)
IMPORTING
ANSWER =
TABLES
PARAMETER =
EXCEPTIONS
TEXT_NOT_FOUND = 1
OTHERS = 2
.
*IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*ENDIF.
I also need that on action of YES, the pop up should close.
Regards,
Wilma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The following code will close the popup.
data:
l_api type ref to if_wd_view_controller,
l_window_ctlr type ref to if_wd_window_controller,
l_popup type ref to if_wd_window.
l_api = wd_this->wd_get_api( ).
l_window_ctlr = l_api->get_embedding_window_ctlr( ).
if l_window_ctlr is bound.
l_popup = l_window_ctlr->get_window( ).
l_popup->close( 'POPUP_WINDOW' ).
endif.
Regards,
Wilma
The following code will close the popup.
data:
l_api type ref to if_wd_view_controller,
l_window_ctlr type ref to if_wd_window_controller,
l_popup type ref to if_wd_window.
l_api = wd_this->wd_get_api( ).
l_window_ctlr = l_api->get_embedding_window_ctlr( ).
if l_window_ctlr is bound.
l_popup = l_window_ctlr->get_window( ).
l_popup->close( 'POPUP_WINDOW' ).
endif.
Regards,
Wilma
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.