cancel
Showing results for 
Search instead for 
Did you mean: 

Short dump on closing popup message window in webdynpro

Former Member
0 Kudos

Hi

Can anyone advice how to close the popup messages and a window without short dump? My scenario is detailed below as well as the short dump details

_____________________________________________________________________

I have created a webdynpro application with following layout

1. WINDOW1->VIEW1 which displays a list in a TABLE UI element.

2. On selecting any table entry, and executing an action (button press), WINDOW2->VIEW2 is opened as popup to modify some fields. Three buttons, SAVE, CHECK and CANCEL are provided.

3. On pressing CHECK, popup showing some message is triggered using create_popup_to_confirm( ). On pressing OK, messages disappear and VIEW2 is still displayed.

4. On pressing SAVE, a popup showing messages log is displayed using create_popup_to_confirm( ). On pressing OK, message log should close as well as VIEW2 in popup window WINDOW2 should close. Assigned an action 'OK' to this popup and in the event called method close( ) to close window.

lo_window = wd_this->wd_get_api( )->get_embedding_window( ).

lo_window->close( ).

RESULT:

on pressing SAVE, 2 popups are displayed showing messages from step 3 and step 4. On pressing any Ok, short dump occurs. Details of the short dump are:

Category               ABAP Programming Error

Runtime Errors         ASSERTION_FAILED

ABAP Program           CL_WDR_CLIENT_APPLICATION=====CP

Application Component  BC-WD-ABA-RUN

    1 method if_wdr_update_server_peer_data~close_window.

    2

    3   data: l_current_active_window type ref to cl_wdr_window.

    4

    5   l_current_active_window = me->application_window->get_active_modal_window( ).

    6 * window must be the current active window

>>>>>   assert l_current_active_window = window.

    8   l_current_active_window->add_to_window_queue( window = window

    9                                                 to_close = abap_true ).

   10

   11 endmethod.

Accepted Solutions (1)

Accepted Solutions (1)

joao_sousa2
Active Contributor
0 Kudos

You are launching two modals at the same time? If you are, and it seems like you are trying to do that, don't do it. It's confusing for the users and you get that kind of behaviour from Webdynpro.

Create a CHECK/SAVE Popup that contains both information.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello,

you are calling two window at the same time. as u can saw in the error

6 * window must be the current active window

>>>>>   assert l_current_active_window = window.

you are not getting reference of current window. On save you are using the reference of Pop_up window and try to closing the Window which contain View. SO the issue is coming while closing the View.

And as per my Knowledge/Experience we can but should not show two pop-up at the same time its not a best practice..

BR

C...

Former Member
0 Kudos

Hello Vikram,

Check whether are you getting reference in lo_window.

Thanks

Katrice