REPORT Z_3DGRAPH.
*그래프의 수치를 저장 할 구조체를 선언합니다.
TYPES: BEGIN OF ty_performance,
company(15) TYPE c,
q1 TYPE i,
q2 TYPE i,
q3 type i,
q4 type i,
END OF ty_performance.
*그래프의 옵션을 저장할 구조체를 선언합니다.
types : BEGIN OF ty_opttable,
options(30) TYPE c,
END OF ty_opttable.
*구조체를 참조하는 내부테이블도 하나씩 선언합니다.
DATA: it_performance TYPE STANDARD TABLE OF ty_performance,
wa_performance TYPE ty_performance.
DATA : it_opttable type standard table of ty_opttable,
wa_opttable type ty_opttable.
INITIALIZATION.
START-OF-SELECTION.
CLEAR WA_PERFORMANCE.
CLEAR wa_opttable.
*수치를 내부테이블에 저장해볼까요.
wa_performance-company = 'Company A'.
wa_performance-q1 = 78.
wa_performance-q2 = 68.
wa_performance-q3 = 79.
wa_performance-q4 = 80.
append wa_performance to it_performance.
wa_performance-company = 'Company B'.
wa_performance-q1 = 48.
wa_performance-q2 = 68.
wa_performance-q3 = 69.
wa_performance-q4 = 70.
append wa_performance to it_performance.
wa_performance-company = 'Company C'.
wa_performance-q1 = 78.
wa_performance-q2 = 48.
wa_performance-q3 = 79.
wa_performance-q4 = 85.
append wa_performance to it_performance.
*GRAPH_MATRIX_3D function에 넘길 옵션들도 넣어보죠.
wa_opttable-options = 'P3TYPE = TO'.
APPEND wa_opttable TO it_opttable.
wa_opttable-options = 'P2TYPE = VB'.
APPEND wa_opttable TO it_opttable.
wa_opttable-options = 'TISIZE = 1'.
APPEND wa_opttable TO it_opttable.
*이제 호출만 해주면 되겠죠?
CALL FUNCTION 'GRAPH_MATRIX_3D'
EXPORTING
col1 = 'Quarter 1'
col2 = 'Quarter 2'
col3 = 'Quarter 3'
col4 = 'Quarter 4'
dim1 = 'In Percentage%'
set_focus = 'X'
titl = 'Company Performances'
TABLES
data = it_performance
opts = it_opttable
EXCEPTIONS
others = 1.
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
391 | report zsaptip_009 [1] | sapjoy | 2010.12.10 | 3852 |
» | REPORT Z_3DGRAPH. [1] | sapjoy | 2010.10.18 | 3666 |
389 | REPORT zsmw0010 | sapjoy | 2010.10.12 | 4315 |
388 | z_exception_test | sapjoy | 2010.10.11 | 3521 |
387 | REPORT zmacro_01. | sapjoy | 2010.10.10 | 2582 |
386 | REPORT ZTEST_ABAPTPDF | sapjoy | 2010.10.10 | 3693 |
385 | REPORT ZALVCOLOR | sapjoy | 2010.10.10 | 3212 |
384 | REPORT ZTABLE_UTIL | sapjoy | 2010.10.10 | 4012 |
383 | REPORT Z_DYNAMIC_SCREEN [1] | sapjoy | 2010.10.08 | 3035 |
382 | report zsalv_045 . | sapjoy | 2010.08.20 | 4264 |
381 | report zsalv_043 . | sapjoy | 2010.08.20 | 2978 |
380 | report zsalv_042 . | sapjoy | 2010.08.20 | 3135 |
379 | report zsalv_041 . | sapjoy | 2010.08.20 | 2998 |
378 | report zsalv_040 . | sapjoy | 2010.08.20 | 2608 |
377 | report zsalv_036 . | sapjoy | 2010.08.20 | 3473 |
376 | report zsalv_035 . | sapjoy | 2010.08.20 | 2505 |
375 | report zsalv_032 . | sapjoy | 2010.08.20 | 2976 |
374 | report zsalv_031 . | sapjoy | 2010.08.20 | 2427 |
373 | report zsalv_030 . | sapjoy | 2010.08.20 | 2331 |
372 | report zsalv_023 . | sapjoy | 2010.08.20 | 2347 |
good