Skip to Content
avatar image
Former Member

Launching a view from Transaction Launcher

Hello Forum,

I created a view in one component from BSP_WD_CMPWB.

My requirement is to lauch this view from Transaction Launcher.

Is it possible? If Yes please guide me

Thanks and Best Regards,


Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Sep 25, 2008 at 06:57 PM


    Why you want to lauch this view from transaction launcher ? You can launch it in a Pop up. Let me know if its fine to open in pop up, i can give you the code.

    If you want to open in the transaction launcher only, then the nice approch would be to create a BS and open it using its URL.

    You can also get the URL of your view in the viewset methods . Just explore on IMPL class methods. there are method that give you the view URL. and then i thing you can configure transaction launcher for this URL.



    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      You must be willing to open the view on click of button or on some event handler.

      You said you have created a component and a view in that component.

      1. Go to your component and create a window to which you can attach this view. If you have already attached it to any window, say MainWindow etc. then ignore this step.

      2. Go to runtime repository and right click on interface view and say create. Use F4 and select the window to which you have attached your view ( i.e. the view to be opened in the pop up )

      3. Once you have created interface view, then we have to create component usage for this interface view.

      Within the runtime repository, right click on component usage and say create. Use F4 and select the interface view you just created. Give some meaningful name to your componet usage as say CUPopupWindow etc.

      Its OK to leave inbound and Outbound plug assignments blank.

      4.once you are done with step 1, 2,& 3 save the runtime repository, save your componetnt and quit.

      5. Now open the other component in which you want to open this view as a pop up.

      Go to the view which has the even handler ar button on click on which you want to open this window.

      In the IMPL class of that view, define a attibute,

      gv_popup type ref to IF_BSP_WD_POPUP

      Now in the event handler of button ( or the event handler on click of which you want to open the popup )

      write following code.

      IF gv_popup IS NOT BOUND.

      gv_popup = comp_controller->window_manager->create_popup(

      iv_interface_view_name = 'Name of your interface view' (created in step 2)

      iv_usage_name = 'Name of usage you created' (ie CUPopUp etc. Its case sensitive. give the exact name as it appears in runtime repository)

      iv_title = 'The title you want for the pop up').


      • Open the popup

      gv_popup->set_window_height( 1000 ). " you can manipulate this ht and width

      gv_popup->set_window_width( 1200 ).

      gv_popup->set_on_close_event( iv_view = me

      iv_event_name = 'POPUPCLOSED' ). " (use this if you want something to be done when pop up window is closed.implement EH_ONPOPUPCLOSED then the control will come in this event handler on close of pop up)

      gv_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_surrounded ).

      gv_popup->open( ).