728x90
๋ฐ์ํ
INCLUDE ๋?
ABAP์์ INCLUDE ๋ฅผ ์ฌ์ฉํ์ฌ ํ๋ก๊ทธ๋จ์ ๋ชจ๋ํํ๊ณ ์ฌ์ฌ์ฉ ๊ฐ๋ฅํ ์ฝ๋ ๋ธ๋ก์ ์ ์ํ ์ ์์ต๋๋ค.
์์ฝ ์ ๋ฆฌ
INCLUDE ์ด๋ฆ ๋ค์ ๋ถ๋ ์ ๋ฏธ์ฌ๋ ํด๋น INCLUDE ๋ชฉ์ ๊ณผ ์ญํ ์ ๋ํ๋ ๋๋ค.
CLS | ํด๋์ค๋ฅผ ํฌํจํ์ฌ INCLUDE |
F01 | ํผ ๋ฃจํด(์๋ธ๋ฃจํด)์ ํฌํจํ์ฌ INCLUDE |
I01 | ์ด๊ธฐํ ๋๋ ์ ๋ ฅ์ฝ๋๋ฅผ ํฌํจํ๋ INCLDUE |
O01 | ์ถ๋ ฅ ๊ด๋ จ ์ฝ๋๋ฅผ ํฌํจํ๋ INCLUDE |
T01 | ํ์ด์ง ์๋จ ์ถ๋ ฅ ์ฝ๋ ๋๋ ํ ์ด๋ธ ๋ฐ ๋ฐ์ดํฐ ์ ์ธ ์ฝ๋๋ฅผ ํฌํจํ๋ INCLDUE |
CLS (Class)
ํด๋์ค ์ ์์ ๊ตฌํ์ ํฌํจํฉ๋๋ค.
INCLUDE ZMYCLASS_CLS.
CLASS zmyclass DEFINITION.
PUBLIC SECTION.
METHODS: method1,
method2.
ENDCLASS.
CLASS zmyclass IMPLEMENTATION.
METHOD method1.
" Method implementation
ENDMETHOD.
METHOD method2.
" Method implementation
ENDMETHOD.
ENDCLASS.
F01 (Form Routines)
ํผ ๋ฃจํด (์๋ธ๋ฃจํด)์ ํฌํจํฉ๋๋ค.
INCLUDE ZMYINCLUDE_F01.
FORM routine1.
" Routine1 implementation
ENDFORM.
FORM routine2.
" Routine2 implementation
ENDFORM.
I01 (Initialization or Input)
์ด๊ธฐํ ๋๋ ์ ๋ ฅ ์ด๋ฒคํธ ์ฒ๋ฆฌ ์ฝ๋๋ฅผ ํฌํจํฉ๋๋ค.
INCLUDE ZMYINCLUDE_I01.
INITIALIZATION.
" Initialization code
O01 (Output)
์ถ๋ ฅ ์ด๋ฒคํธ ์ฒ๋ฆฌ ์ฝ๋๋ฅผ ํฌํจํฉ๋๋ค.
INCLUDE ZMYINCLUDE_O01.
MODULE STATUS_0100 OUTPUT.
" Status handling for screen 0100
ENDMODULE.
MODULE STATUS_0200 OUTPUT.
" Status handling for screen 0200
ENDMODULE.
T01 (Top of Page or Table Declarations)
ํ์ด์ง ์๋จ ์ถ๋ ฅ ์ฝ๋ ๋๋ ํ ์ด๋ธ ๋ฐ ๋ฐ์ดํฐ ์ ์ธ์ ํฌํจํฉ๋๋ค.
INCLUDE ZMYINCLUDE_T01.
DATA: lt_flights TYPE TABLE OF sflight,
wa_flight TYPE sflight.
TOP-OF-PAGE.
WRITE: / 'Flight Information'.
INCLUDE ํ์ผ ์ ์ธ ์์
REPORT z_example_report NO STANDARD PAGE HEADING MESSAGE-ID ZSDM.
INCLUDE z_example_report_top_of_page. " T01: ํ
์ด๋ธ๊ณผ ๋ฐ์ดํฐ ์ ์ธ
INCLUDE z_example_report_forms. " F01: ํผ ๋ฃจํด
INCLUDE z_example_report_initialization. " I01: ์ด๊ธฐํ ๋ฐ ์
๋ ฅ ์ด๋ฒคํธ ์ฒ๋ฆฌ
INCLUDE z_example_report_output. " O01: ์ถ๋ ฅ ์ด๋ฒคํธ ์ฒ๋ฆฌ
728x90
๋ฐ์ํ
'๐งโ๐ผ SAP > ABAP' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[SAP ABAP] INTO TALBE ์ด๋? (์์ ํฌํจ) (0) | 2024.07.10 |
---|---|
[SAP ABAP] JOIN๊ณผ FOR ALL ENTRIES ์ฐจ์ด (1) | 2024.07.10 |
[SAP ABAP] START/END-OF-SELECTION ์ด๋? (์์ ํฌํจ) (0) | 2024.07.09 |
[SAP ABAP] FOR ALL ENTRIES IN ์ด๋? (์ฌ์ฉ ์์ ํฌํจ) (0) | 2024.06.27 |
[SAP ABAP] CONTINUE, STOP, CHECK ๋? (์ฌ์ฉ ์์ ํฌํจ) (0) | 2024.05.30 |