Skip to Content
avatar image
Former Member

problem in creatign pop up window

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 27, 2008 at 11:11 AM

    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

    Add comment
    10|10000 characters needed characters exceeded