cancel
Showing results for 
Search instead for 
Did you mean: 

POPup problem

Former Member
0 Kudos

Hi Experts,

My code for popup is as below,

l_window_manager = l_cmp_api->get_window_manager( ).

l_popup = l_window_manager->create_popup_to_confirm(

When i try to execute it through SE80 it comes as popup message but same if i see from IVIEW its throwing an error as " SapPopupMainId_X1 "

What could be my fault?

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I have checked a Pop Up blocker which is OFF. This is happening with all popups not just mine.

My code extract is:

DATA:

l_api_main TYPE REF TO if_wd_view_controller,

l_window_manager TYPE REF TO if_wd_window_manager,

l_popup TYPE REF TO if_wd_window,

l_cmp_api TYPE REF TO if_wd_component.

DATA: str_table TYPE string_table.

DATA: str TYPE string.

l_api_main = wd_this->wd_get_api( ).

l_cmp_api = wd_comp_controller->wd_get_api( ).

str = 'Data will be lost'.

APPEND str TO str_table.

str = 'Do you still want to exit the current screen?'.

APPEND str TO str_table.

l_window_manager = l_cmp_api->get_window_manager( ).

l_popup = l_window_manager->create_popup_to_confirm(

text = str_table

button_kind = 4

message_type = 5

close_button = 'X'

window_title = 'Exit Application Confirmation' ).

  • window_left_position = 10

  • window_top_position = 10 ).

  • window_position = l_conf_context-window_position

  • window_width = l_conf_context-window_width

  • window_height = l_conf_context-window_height ).

l_popup->subscribe_to_button_event(

button = if_wd_window=>co_button_yes

action_name = 'YES'

action_view = l_api_main

is_default_button = abap_true ).

l_popup->subscribe_to_button_event(

button = if_wd_window=>co_button_no

action_name = 'NO'

action_view = l_api_main

is_default_button = abap_false ).

l_popup->open( ).

Please suggest!

mohammed_anzys
Contributor
0 Kudos

Hi Prasad,

Seems like a protal problem as your code is perfectly OK.Please go through this thread.Here they have discussed about disabling pop ups

Thanks

Anzy

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

We coldnt find those options in IVIEW given in the notes.

Any more help?

Thnks in advance

mohammed_anzys
Contributor
0 Kudos

Hi

Could write some more from your code.....And have you blocked the pop in your browser?

Thanks

Anzy