Skip to Content
avatar image
Former Member

How To Call a Window from a PopUp Window?

Hi,

I need to call a window from a Pop up window through Button Action?

Regards,

M J Vasanthakumar

Capture.JPG (15.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 27, 2015 at 10:19 AM

    Hi,

    you have to create a custom POWL action:


    Example:

      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. 
      DATA lo_view_controller     TYPE REF TO if_wd_view_controller. 
      DATA lv_string                    TYPE string_table. 
      lo_api_component  = WD_THIS->wd_get_api( ). 
      lo_window_manager = lo_api_component->get_window_manager( ). 
      lo_window         = lo_window_manager->create_window( 
                         window_name                    = 'W_POPUP ' 
                         title                                      = 'MESSAGE : Forwarding Process' 
                         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_okcancel 
                         message_type                    = if_wd_window=>CO_MSG_TYPE_WARNING 
                         default_button                     = IF_WD_WINDOW=>CO_BUTTON_OK 
                         ). 
    
    
    
        CALL METHOD LO_WINDOW->SUBSCRIBE_TO_BUTTON_EVENT 
           EXPORTING 
               BUTTON            = IF_WD_WINDOW=>CO_BUTTON_OK 
               BUTTON_TEXT       = 'Ok' 
    *         TOOLTIP           = 
               ACTION_NAME       = 'NEW_WINDOW' 
               ACTION_VIEW       = WD_THIS->GO_VIEW_CONTROLLER 
    *         IS_DEFAULT_BUTTON =  ABAP_FALSE 
        . 
      lo_window->open( ). 
    

    View Action: ONACTIONNEW_WINDOW


    In the action, a new Window can be created

    Regards

    Shkelqim

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 27, 2015 at 10:08 AM

    Hi Vasanth,

      Can you elaborate your requirement.

    Thanks & Regards,

    Sankar Gelivi

    Add comment
    10|10000 characters needed characters exceeded