on 11-11-2008 2:06 PM
Dear Experts,
i generated the following Popup:
data lo_window_manager type ref to if_wd_window_manager.
data lo_api_component type ref to if_wd_component.
data lo_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_window = lo_window_manager->create_window(
window_name = 'POPUPS_MELDUNG'
title = 'Personalnummer gesperrt !'
close_in_any_case = abap_true
message_display_mode = if_wd_window=>co_msg_display_mode_selected
close_button = abap_true
button_kind = if_wd_window=>co_buttons_ok
message_type = if_wd_window=>co_msg_type_Error
default_button = if_wd_window=>co_button_ok
).
lo_window->open( ).
The problem is that i don´t kow how to insert text in the Popup.
Can you please help me how to do that ?
Best regards
René
Hello René
if you use method create_window(...) of the window_manager you have to define a window (in your example: 'POPUPS_MELDUNG') with a view. In this view you can insert an element for example Textview. And in this element you insert the text.
As an other solution you can use the method create_popup_to_confirm instead of create_window. There you have the parameter 'text' which has the type string_table and use it like this:
INSERT `Data where changed` INTO TABLE l_text. "#EC *
INSERT `Do you want to save?` INTO TABLE l_text. "#EC *
Hope it helps.
Johann
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
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.