cancel
Showing results for 
Search instead for 
Did you mean: 

Text for popup window

Former Member
0 Kudos

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é

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

Have a look on this [Thread|]