Showing results for 
Search instead for 
Did you mean: 

Table view as popup

Former Member
0 Kudos


I have a requirement as follows:

I have a standard component view. In that view I need to add the button. When that button is clicked, I have to fetch the details from a custom table and I need to show them as popup. (table view as popup).

Now I can do the following:

1. I can enhance the view and can add the button as first step.

2. And I can create a custom view (table view) in the same componenent. and I can call this as popup.

3. My last concern is, where I need to fill the context node of table view. I have to fetch the values from custom table and I need to set them into context node of table view.

Can you please help me, how exactly I need to do this.



Accepted Solutions (1)

Accepted Solutions (1)

Active Contributor
0 Kudos

Hi Sandeep,

You need to create a separate view/component (ZCUSTOMVIEW/ZCUSTOM) which you will call where you will populate custom values. It has to be a table view. Once you create this view, you have to create the component usage of this view in the main component from where you will call this pop up

You have to use the following code as reference:

lv_title = 'Custom Values'.

lv_interface_view_name = 'ZCUSTOMVIEW/MainWindow'. "#EC NOTEXT

lv_usage_name = 'ZUSAGE'. "#EC NOTEXT

lv_close_event_name = 'POPUP_CLOSE'. "#EC NOTEXT

lv_inbound_plug = 'DEFAULT'.

  • Create POPUP if necessary

IF lr_popup IS NOT BOUND.

lr_popup = comp_controller->window_manager->create_popup(

iv_interface_view_name = lv_interface_view_name

iv_usage_name = lv_usage_name

iv_title = lv_title ).

gr_popup = lr_popup.


lr_popup->set_on_close_event( iv_view = me

iv_event_name = lv_close_event_name ).

lr_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_surrounded ).

                • Put all your custom table values in lr_col *******************

                    • Then call the pop up here *****************************

lr_popup->open( iv_inbound_plug = lv_inbound_plug

iv_collection = lr_col ).

I hope this helps.



Answers (0)