메뉴 건너뛰기

SAP 한국 커뮤니티

report zsalv_042 .

sapjoy 2010.08.20 11:01 조회 수 : 3132

 

report  zsalv_042                                 .

include <color>.

typesbegin of g_type_itab.
include type sflight.
typesend 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( ).
번호 제목 글쓴이 날짜 조회 수
650 REPORT Z07_010. sapjoy 2006.12.07 2527
649 REPORT Z07_011 [1] sapjoy 2006.12.07 2183
648 REPORT Z07_012 sapjoy 2006.12.08 2326
647 REPORT Z07_013 sapjoy 2006.12.08 2544
646 REPORT Z07_014 sapjoy 2006.12.08 2098
645 REPORT Z07_015 sapjoy 2006.12.08 2426
644 REPORT Z07_017 sapjoy 2006.12.08 2609
643 REPORT Z07_018 sapjoy 2006.12.08 2341
642 REPORT Z07_019 sapjoy 2006.12.08 2284
641 REPORT Z07_020 sapjoy 2006.12.08 2152
640 REPORT Z07_021 [2] sapjoy 2006.12.08 2453
639 REPORT Z07_024 sapjoy 2006.12.08 2472
638 REPORT Z07_022 sapjoy 2006.12.08 2070
637 REPORT Z07_023 sapjoy 2006.12.08 2255
636 REPORT Z07_026 [3] sapjoy 2006.12.08 2632
635 REPORT Z07_027 [3] sapjoy 2006.12.08 2374
634 REPORT Z07_030 [4] sapjoy 2006.12.08 2438
633 REPORT Z07_031 [2] sapjoy 2006.12.08 2309
632 REPORT Z07_033 sapjoy 2006.12.08 2317
631 REPORT z09_002 sapjoy 2006.12.15 2602