on 03-01-2012 7:01 AM
Hi all
I want to show a popup message. I tried using the IF_WD_MESSAGE_MANAGER's REPORT_ERROR_MESSAGE method. While calling I gave SHOW_AS_POPUP = abap_true. Still it is not showing as a popup, its just showing on top of the view. Whats the problem? How to show message as a popup?
Regards,
Fareez
I have seen this question many times and tried my selft why the SHOW_AS_POPUP parameter wont work , everyone suggesting to use popup up window to get popup message, if that is the case, what is the use of SHOW_AS_POPUP parameter in report_message method?
thomas...any lights?
Regards
Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
I am not sure if the window size can be fixed, but there can be a work around.
In your view that is launched in the popup, add a UI Element "scroll-container" and fix the size of the same to your window size. Now add all the other elements inside this Scroll Container. This should solve your problem.
Karthik.R
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
use this code this will help u
DATA lo_window_manager TYPE REF TO if_wd_window_manager.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_popup_window TYPE REF TO if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_popup_window = lo_window_manager->create_window(
* your window name
window_name = 'ZPOP'
title = 'POPWindow'
close_in_any_case = abap_false " cancel action in entertainment_view
close_button = abap_true
default_button = if_wd_window=>co_button_ok " Subscribe OK in entertainment_view
button_kind = if_wd_window=>co_buttons_okcancel
).
*Set the height and width here
lo_popup_window->set_window_size( width = '100' height = '100' ).
lo_popup_window->set_remove_on_close( abap_true ).
lo_popup_window->open( ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can create_popup_to_confirm method of window manager, check the below code,
data: l_cmp_api type ref to if_wd_component,
l_window_manager type ref to if_wd_window_manager,
l_popup type ref to if_wd_window,
l_text type string_table.
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window_manager = l_cmp_api->get_window_manager( ).
insert `Data where changed` into table l_text.
insert `You missed madatory values` into table l_text.
l_popup = l_window_manager->create_popup_to_confirm(
text = l_text
button_kind = if_wd_window=>co_buttons_ok
message_type = if_wd_window=>co_msg_type_error " You can change the message type to warning or other
window_title = 'Error' ).
l_popup->open( ).
Hope this helps u.,
Thanks & Regards,
Kiran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It helped me create a popup. Still I have one trouble. Its the size of the window, it is a bigger than actual popup sizes. I used the window_width window_height parameters.
I also tried
l_popup->set_window_size( exporting width = '400' height = '100' ).
Still the same big size is coming... no change.
Any solution?
Regards,
Fareez
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
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.