report zsalv_042 .
include <color>.
types: begin of g_type_itab.
include type sflight.
types: end of g_type_itab.
data gt_itab type table of 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.
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.
data: ls_color type lvc_s_colo.
lr_columns = gr_table->get_columns( ).
lr_column ?= lr_columns->get_column( 'PRICE' ).
ls_color-col = col_negative.
ls_color-int = 0.
ls_color-inv = 0.
lr_column->set_color( ls_color ).
gr_table->display( ).
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
650 | REPORT Z12_03 | sapjoy | 2012.07.30 | 818 |
649 | REPORT z14_07. | sapjoy | 2012.08.01 | 818 |
648 | REPORT z10_08. | sapjoy | 2012.07.30 | 819 |
647 | REPORT Z05_34. | sapjoy | 2012.07.30 | 823 |
646 | REPORT Z08_01. | sapjoy | 2012.07.30 | 824 |
645 | REPORT z05_28. [1] | sapjoy | 2012.07.30 | 824 |
644 | REPORT z08_02. | sapjoy | 2012.07.30 | 829 |
643 | REPORT z10_01. | sapjoy | 2012.07.30 | 830 |
642 | REPORT z14_11. | sapjoy | 2012.08.01 | 836 |
641 | REPORT z10_03. | sapjoy | 2012.07.30 | 837 |
640 | REPORT z11_07. | sapjoy | 2012.07.30 | 840 |
639 | REPORT Z14_02. | sapjoy | 2012.08.01 | 843 |
638 | REPORT z10_05. | sapjoy | 2012.07.30 | 845 |
637 | REPORT z14_10. | sapjoy | 2012.08.01 | 848 |
636 | REPORT z05_10. | sapjoy | 2012.07.30 | 849 |
635 | REPORT z05_30. | sapjoy | 2012.07.30 | 850 |
634 | REPORT z10_13. | sapjoy | 2012.07.30 | 850 |
633 | REPORT z14_12. | sapjoy | 2012.08.01 | 852 |
632 | REPORT Z05_33. | sapjoy | 2012.07.30 | 853 |
631 | REPORT z14_05. | sapjoy | 2012.08.01 | 857 |