Beruflich Dokumente
Kultur Dokumente
*
*
*
*
endcase.
endmethod.
"on_user_command
HOT SPOT processing
method on_double_click.
case column.
when others.
read table i_display index row into w_display.
CHECK NOT w_display-doc_num IS INITIAL.
SET PARAMETER ID 'BLN' FIELD w_display-doc_num.
SET PARAMETER ID 'BUK' FIELD p_bukrs.
CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN.
endcase.
endmethod.
" HANDLE_DOUBLE_CLICK
endclass.
data: gr_events
"lcl_handle_events IMPLEMENTATION
type ref to lcl_handle_events.
*&---------------------------------------------------------------------*
start-of-selection.
*&---------------------------------------------------------------------*
select carrid connid price currency planetype
from sflight client specified into table i_tab
where mandt = sy-mandt.
data: ls_colour
type lvc_s_scol.
pfstatus
= 'SALV_STANDARD'
report
= 'ZBAALVOO'
set_functions = gr_table->c_functions_all ).
data: lr_column type ref to cl_salv_column_table,
lr_columns type ref to cl_salv_columns.
**... optimize the column widths
try.
lr_columns = gr_table->get_columns( ).
lr_columns->set_optimize( ).
catch cx_salv_not_found.
endtry.
"#EC NO_HANDLER
catch cx_salv_not_found.
"#EC NO_HANDLER
endtry.
endform.
" REMOVE_COLUMNS
*&---------------------------------------------------------------------*
*&
Form HIGHLIGHT_EQUIPMENT
*&---------------------------------------------------------------------*
*
set column colours
*----------------------------------------------------------------------*
* This uses a different class from set_technical and set..text because
* cl_salv_column does not have set_color as a method where-as
* cl_salv_column_table does
* NOTE - you need the ?= to assign the column name in this case??
*
*
-->P_COLUMNS text
*----------------------------------------------------------------------*
form highlight_columns using p_columns type ref to cl_salv_columns.
data:
data:
"#EC NO_HANDLER
" HIGHLIGHT_EQUIPMENT
*&---------------------------------------------------------------------*
*&
Form process_selected_lines
*&---------------------------------------------------------------------*
* --> p1
text
* <-- p2
text
*----------------------------------------------------------------------*
form process_selected_lines .
data: lr_selections type ref to cl_salv_selections.
data: lt_rows type salv_t_row.
data: l_row
type i.
lr_selections = gr_table->get_selections( ).
lt_rows = lr_selections->get_selected_rows( ).
loop at lt_rows into l_row.
read table i_tab into w_tab index l_row.
* process selected line
message i899(bd) with l_row.
endloop.
endform.
" process_selected_lines