REPORT z17_21 .
TYPES: BEGIN OF g_type_itab.
INCLUDE TYPE sflight.
TYPES: exception TYPE char1,
END OF g_type_itab.
DATA gt_itab TYPE TABLE OF g_type_itab.
DATA gs_itab TYPE g_type_itab.
DATA gr_table TYPE REF TO cl_salv_table.
SELECT * FROM sflight INTO CORRESPONDING FIELDS OF TABLE gt_itab
UP TO 25 ROWS.
LOOP AT gt_itab INTO gs_itab.
IF gs_itab-seatsocc >= 90.
gs_itab-exception = '1'.
ELSEIF gs_itab-seatsocc >= 50.
gs_itab-exception = '2'.
ELSE.
gs_itab-exception = '3'.
ENDIF.
MODIFY gt_itab FROM gs_itab.
ENDLOOP.
cl_salv_table=>factory(
IMPORTING
r_salv_table = gr_table
CHANGING
t_table = gt_itab ).
DATA: lr_columns TYPE REF TO cl_salv_columns_table,
lr_column TYPE REF TO cl_salv_column_table.
lr_columns = gr_table->get_columns( ).
lr_columns->set_exception_column( 'EXCEPTION' ).
lr_column ?= lr_columns->get_column( 'EXCEPTION' ).
lr_column->set_short_text( 'MY EXCEPT' ).
DATA: lr_functional_settings TYPE REF TO cl_salv_functional_settings.
lr_functional_settings = gr_table->get_functional_settings( ).
DATA: lr_tooltips TYPE REF TO cl_salv_tooltips.
lr_tooltips = lr_functional_settings->get_tooltips( ).
lr_tooltips->add_tooltip(
type = cl_salv_tooltip=>c_type_exception
value = '1').
lr_tooltips->add_tooltip(
type = cl_salv_tooltip=>c_type_exception
value = '2').
lr_tooltips->add_tooltip(
type = cl_salv_tooltip=>c_type_exception
value = '3').
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
490 | REPORT z04_014 | sapjoy | 2007.05.21 | 2216 |
489 | REPORT Z04_017 | sapjoy | 2007.05.21 | 2233 |
488 | REPORT Z04_018 | sapjoy | 2007.05.21 | 2109 |
487 | REPORT Z04_019 [2] | sapjoy | 2007.05.21 | 2476 |
486 | REPORT Z05_001 [3] | sapjoy | 2007.05.21 | 2880 |
485 | REPORT Z05_002 | sapjoy | 2007.05.21 | 2172 |
484 | REPORT z05_005 | sapjoy | 2007.05.21 | 2160 |
483 | REPORT Z05_003 | sapjoy | 2007.05.21 | 2406 |
482 | REPORT Z05_007 [2] | sapjoy | 2007.05.26 | 2192 |
481 | REPORT Z05_008 [2] | sapjoy | 2007.05.27 | 2611 |
480 | REPORT Z05_009 [2] | sapjoy | 2007.05.28 | 2149 |
479 | REPORT Z05_010 [1] | sapjoy | 2007.05.28 | 2122 |
478 | REPORT Z05_011 | sapjoy | 2007.05.28 | 2159 |
477 | REPORT Z05_011 | sapjoy | 2007.05.28 | 2066 |
476 | REPORT Z05_021 | sapjoy | 2007.05.28 | 2087 |
475 | REPORT Z05_022 | sapjoy | 2007.05.28 | 2136 |
474 | Include Z_SHARED_AREA | sapjoy | 2007.05.28 | 2528 |
473 | REPORT Z05_025 | sapjoy | 2007.05.28 | 2564 |
472 | REPORT Z05_026 [2] | sapjoy | 2007.05.28 | 2428 |
471 | REPORT z05_028 | sapjoy | 2007.05.29 | 2276 |