on 11-27-2008 10:46 AM
hai gurus i am using the following code for creating a pop up window wehn i press button but when press a button it is giving exception can any one help me out if anything missing
i am calling this method on button action
the exception
Das Window TESTWINDOW existiert nicht innerhalb der Komponente ZPOPUP
data : l_window_manager type ref to if_wd_window_manager,
l_cmp_api type ref to if_wd_component,
l_window type ref to if_wd_window .
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window_manager = l_cmp_api->get_window_manager( ).
append 'it is pop up window' to lt_text.
CALL METHOD l_window_manager->create_window
EXPORTING
MODAL = ABAP_TRUE
window_name = 'TESTWINDOW'
TITLE = 'my window'
CLOSE_BUTTON = ''
BUTTON_KIND =
MESSAGE_TYPE = IF_WD_WINDOW=>CO_MSG_TYPE_NONE
CLOSE_IN_ANY_CASE = ABAP_TRUE
receiving
window = l_window
.
regards
afzal
Hi Mohammad,
The error says that the window TESTWINDOW that you are passing to the window_name attribute of create_window does not exist. I guess that you would have created a view to be displayed as the popup. So now right click on the WINDOWS node on your left hand side & select "Create". Create a new window TESTWINDOW. Then double click on this newly created window & go to the "Window" tab & embed the view within this window. It should be working fine.
Regards,
Uday
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.