Skip to Content
avatar image
Former Member

how to display value of variable in popup window

Hi Experts ,

I need to display a variable which imported from call method and i have to display in popup window

( need code ) please help

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jul 12, 2011 at 04:41 PM

    Hi Neeraj,

    You can use modal dialog box,

    create a view and window also that should be displayed as pop up in the same component and use the following code

    to display it.

    Concept is we are using the window that embeded with view is dispalyed as modal dialog box.

    Before calling the window, you should populate the data that mapped in the view.

    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_manager->create_window(

    window_name = u2019POPUP_WINDOWu2019

    title = 'welcome'

    close_in_any_case = abap_false

    message_display_mode = if_wd_window=>co_msg_display_mode_selected

    close_button = abap_false

    button_kind = if_wd_window=>co_buttons_ok

    message_type = if_wd_window=>co_msg_type_none

    default_button = if_wd_window=>co_button_ok ).



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Use the approach suggested by Meera. If you want to display variables... do context mapping ( view in pop-up to component controller) and you should be able to display thing you want.

  • Jul 13, 2011 at 05:04 AM

    Hi Neeraj,

    You define all your CONTEXT in Component controller, so that you can mapping in all veiw.

    So you get data automatically. Mapping can do data transfer between veiws. Just read that variable in your action code.



    Add comment
    10|10000 characters needed characters exceeded