Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to display an OO ALV in a Popup?

Former Member
0 Kudos

The ALV will be non-editable but it has to be able to have the hotspot functionality, so it has to be done in OO. Is there any function module that will display my OO alv as a popup?

1 ACCEPTED SOLUTION

former_member201285
Active Participant
0 Kudos

* Show as popup


   CALL METHOD gr_grid->set_screen_popup( EXPORTING start_column = 10

                                                    end_column = 130

                                                    start_line = 5

                                                    end_line = 15 ).


* Define a column as hotspot


DATA:

          lr_columns TYPE REF TO cl_salv_columns_table,

           lr_column TYPE REF TO cl_salv_column,

           lr_cols   TYPE REF TO cl_salv_columns,

           lr_column_list TYPE REF TO cl_salv_column_list.


  lr_cols = lr_columns.

  lr_columns = gr_grid->get_columns( ).

  lr_column_list ?= lr_cols->get_column( 'MYCOLUMN' ).

  lr_column_list->set_cell_type( if_salv_c_cell_type=>hotspot ).

5 REPLIES 5

former_member205763
Active Contributor
0 Kudos

check sample program : BCALV_EDIT_01

rosenberg_eitan
Active Contributor
0 Kudos

Hi,

See demo programs that use CL_SALV_TABLE .

Regards.

Former Member
0 Kudos

try REUSE_ALV_POPUP_TO_SELECT

former_member201285
Active Participant
0 Kudos

* Show as popup


   CALL METHOD gr_grid->set_screen_popup( EXPORTING start_column = 10

                                                    end_column = 130

                                                    start_line = 5

                                                    end_line = 15 ).


* Define a column as hotspot


DATA:

          lr_columns TYPE REF TO cl_salv_columns_table,

           lr_column TYPE REF TO cl_salv_column,

           lr_cols   TYPE REF TO cl_salv_columns,

           lr_column_list TYPE REF TO cl_salv_column_list.


  lr_cols = lr_columns.

  lr_columns = gr_grid->get_columns( ).

  lr_column_list ?= lr_cols->get_column( 'MYCOLUMN' ).

  lr_column_list->set_cell_type( if_salv_c_cell_type=>hotspot ).

Former Member
0 Kudos

In addition to the above mentioned way, there is one simple method. Mark the screen where you are displaying the ALV as 'Modal Dialog Box' in attributes.