cancel
Showing results for 
Search instead for 
Did you mean: 

Window: Popup To Confirm

Former Member
0 Kudos

Hi,

I am using popup to confirm window. Surprisingly i am getting runtime errror.

Error: The following error text was processed in D08 system : View- , Window , interface and configuration controller can not be generated later.


After clicking on YES or NO button, i am facing this issue.


Code:


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(
               text                 = lt_text
               button_kind          = if_wd_window=>co_buttons_yesno
               message_type         = if_wd_window=>co_msg_type_information
              close_button         = abap_true
               window_title         = 'Confirmation'
*             window_left_position =
*             window_top_position  =
               window_position      = if_wd_window=>co_center
              window_width         = '40%'
              window_height        = '5%'
*             default_button       =
           ).
           lo_view_controller = wd_this->wd_get_api( ).

           lo_window->subscribe_to_button_event(
             EXPORTING
               button            = if_wd_window=>co_button_yes
               button_text       = 'YES'
               action_name       = 'YES_SNAIL'
               action_view       = lo_view_controller
*                is_default_button = ABAP_FALSE
           ).
           lo_window->subscribe_to_button_event(
             EXPORTING
               button            = if_wd_window=>co_button_no
               button_text       = 'NO'
               action_name       = 'NO_SNAIL'
               action_view       = lo_view_controller
*                is_default_button = ABAP_FALSE
              ).
           lo_window->open( ).



Thanks in advance.


Thanks & Regards,

Sankar

Accepted Solutions (1)

Accepted Solutions (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Sankar,

Are the actions YES_SNAIL, NO_SNAIL created in your view?

if yes, then check for the code written inside the actions, may that causing the error.

If you are still facing issue, provide full error text for clarity.

Regards,

Rama

Former Member
0 Kudos

Hi Rama,

Issue is resolved.

After calling the pop up to confirm, there was code for navigation. This was effecting.

Thanks & Regards,
Sankar

Answers (0)