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.
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
669 | REPORT Z06_01. | sapjoy | 2024.04.20 | 14 |
668 | REPORT z05_36 | sapjoy | 2023.02.07 | 243 |
667 | z15_21_drag | sapjoy | 2022.02.24 | 269 |
666 | Z18_06_DRAGCLASS | sapjoy | 2022.02.22 | 296 |
665 | API | sapjoy | 2022.11.02 | 316 |
664 | REPORT z10_02. | sapjoy | 2012.07.30 | 779 |
663 | REPORT Z11_09. | sapjoy | 2012.07.30 | 780 |
662 | REPORT Z11_04 . | sapjoy | 2012.07.30 | 786 |
661 | REPORT Z11_03. | sapjoy | 2012.07.30 | 795 |
660 | REPORT z11_05. | sapjoy | 2012.07.30 | 797 |
659 | REPORT z14_13. | sapjoy | 2012.08.01 | 798 |
658 | REPORT z14_09. | sapjoy | 2012.08.01 | 800 |
657 | REPORT Z11_08. | sapjoy | 2012.07.30 | 805 |
656 | REPORT z08_05. | sapjoy | 2012.07.30 | 809 |
655 | REPORT z10_06. | sapjoy | 2012.07.30 | 813 |
654 | REPORT z05_14. | sapjoy | 2012.07.30 | 814 |
653 | REPORT Z05_32. | sapjoy | 2012.07.30 | 816 |
652 | REPORT z08_03. | sapjoy | 2012.07.30 | 817 |
651 | REPORT z10_11. | sapjoy | 2012.07.30 | 817 |
650 | REPORT Z12_03 | sapjoy | 2012.07.30 | 818 |
good