09-18-2014 7:48 PM
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?
09-19-2014 6:59 AM
* 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 ).
09-18-2014 8:04 PM
09-18-2014 8:08 PM
09-18-2014 8:13 PM
09-19-2014 6:59 AM
* 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 ).
09-19-2014 9:26 AM
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.