cancel
Showing results for 
Search instead for 
Did you mean: 

View in popup

0 Kudos

Hi Experts,

how i can show view on popup without creating extra window .

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hello Rohit,

I agree with Baskaran Senthivel,

if you want to shaow a View as a Pop Up you have to embed it in a Window.

Warm Regards,

Upendra Agrawal

Former Member
0 Kudos

Hai,

Create a view and design the layout whatever you want . After that embed that view into window.

                              • Use this code for generating 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 = 'WINDOW2' *********** window name (in which window your view is embed)

  • title =

  • 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_none

default_button = if_wd_window=>co_button_ok

).

lo_window->open( ).

Gowtham
Contributor
0 Kudos

Hi Rohit,

I already done creating Popup with out any views..check the coding that i 've attached with this post.

DATA L_CMP_API            TYPE REF TO    IF_WD_COMPONENT.
  DATA L_WINDOW_MANAGER     TYPE REF TO    IF_WD_WINDOW_MANAGER.
  DATA L_POPUP              TYPE REF TO    IF_WD_WINDOW.
  DATA L_TEXT               TYPE           STRING_TABLE.
  DATA L_API                TYPE REF TO    IF_WD_VIEW_CONTROLLER.
           
         L_CMP_API        = WD_COMP_CONTROLLER->WD_GET_API( ).
         L_WINDOW_MANAGER = L_CMP_API->GET_WINDOW_MANAGER( ).
         INSERT `Auction Published Successfully !!` INTO TABLE L_TEXT. " --------------->Popup message "
         L_POPUP = L_WINDOW_MANAGER->CREATE_POPUP_TO_CONFIRM(
                                 TEXT            = L_TEXT
                                  BUTTON_KIND     = IF_WD_WINDOW=>CO_BUTTONS_OK -----------> "Buttons"
                                  MESSAGE_TYPE    = IF_WD_WINDOW=>CO_MSG_TYPE_INFORMATION
                                  WINDOW_TITLE    = 'Auction publish' --------------->" Topic of a window"
                                  WINDOW_POSITION = IF_WD_WINDOW=>CO_CENTER
                                  DEFAULT_BUTTON  = IF_WD_WINDOW=>CO_BUTTON_OK ).
                                  L_API = WD_THIS->WD_GET_API( ).
                                  L_POPUP->OPEN( ).

Former Member
0 Kudos

I am afraid that is not possible. However why that matters to you?. You can have a poup window embedded with a view

Former Member
0 Kudos

Hi Rohit,

Create ViewContainer UI element and embed your veiw in VC.

and display that view whenever you required.

Cheers,

Kris.