REPORT Z03_012.
* 구조체 TYPE 선언
TYPES: BEGIN OF people,
fNAME TYPE c LENGTH 10,
lNAME TYPE c LENGTH 10,
END OF people.
* nested 구조체 type 선언
TYPES: BEGIN OF friend.
INCLUDE TYPE people AS person.
TYPES : address TYPE c length 20,
END OF friend.
* 구조체 Object 선언
DATA mybest TYPE friend.
mybest-person-fname = 'HONG GIL DONG'.
mybest-person-lname = 'IM GUK JUNG'.
mybest-address = '
WRITE :/ mybest-person-fname.
WRITE :/ mybest-person-lname.
WRITE :/ mybest-address.
댓글 6
-
바람나무
2008.09.11 18:44
fNAME TYPE c LENGTH 10, -> fNAME(10) TYPE c, -
김삿갓
2008.10.11 07:14
address TYPE c length 20, -> TYPES : address(20) TYPE c, -
jason
2008.12.02 00:23
REPORT Z03_012.
* 구조체 TYPE 선언
TYPES: BEGIN OF people,
fNAME(10) TYPE c,
lNAME(10) TYPE c,
END OF people.
* nested 구조체 type 선언
TYPES: BEGIN OF friend.
INCLUDE TYPE people AS person.
TYPES: address(20) TYPE c.
TYPES : END OF friend.
* 구조체 Object 선언
DATA mybest TYPE friend.
mybest-person-fname = 'HONG GIL DONG'.
mybest-person-lname = 'IM GUK JUNG'.
mybest-address = 'SEOULE CITY'.
WRITE :/ mybest-person-fname.
WRITE :/ mybest-person-lname.
WRITE :/ mybest-address. -
하르메스-솔로몬
2008.12.03 18:43
그다지 어렵지 않았지만 nested 구조체 type 선언때는 ','를 주의해야 할거 같네요
-
뺑기
2011.09.27 02:51
조금씩 이해해 가고 있습니다.^^*
-
Absinthe
2014.01.21 23:31
1. 책의 예제TYPES: BEGIN OF friend.INCLUDE TYPE people AS person.TYPES : address TYPE c length 20,END OF friend.===================================2. 따로 실행해본것TYPES : BEGIN OF friend,person TYPE people,address TYPE C LENGTH 20,END OF friend.혹시 1번과 2번의 차이가 따로있나요?실행해보니 결과는 같게 나와서 질문드려요.
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
» | REPORT Z03_012 [6] | sapjoy | 2007.05.14 | 2452 |
130 | REPORT Z03_011 | sapjoy | 2007.05.14 | 2152 |
129 | REPORT Z03_009 [1] | sapjoy | 2008.04.15 | 2418 |
128 | REPORT Z03_007 [6] | sapjoy | 2007.05.14 | 2426 |
127 | REPORT Z03_006 [5] | sapjoy | 2006.12.03 | 2812 |
126 | REPORT Z03_005 [1] | sapjoy | 2006.12.03 | 2740 |
125 | REPORT Z03_001 | sapjoy | 2007.05.11 | 2308 |
124 | MODULE creat_listbox [4] | sapjoy | 2007.12.12 | 2411 |
123 | MODULE create_dropdown_box | sapjoy | 2007.12.12 | 2397 |
122 | REPORT Z10_004 [1] | sapjoy | 2007.11.21 | 2251 |
121 | REPORT Z09_12 [1] | sapjoy | 2007.11.14 | 2263 |
120 | method DISPLAY_LIST . [2] | sapjoy | 2007.10.29 | 2341 |
119 | method GETSFLIGHT [2] | sapjoy | 2007.10.23 | 2224 |
118 | REPORT Z15_041 | sapjoy | 2007.08.01 | 2454 |
117 | REPORT Z14_005 | sapjoy | 2007.01.22 | 2269 |
116 | REPORT Z14_002 | sapjoy | 2007.07.30 | 2185 |
115 | module f4_CARRID input | sapjoy | 2007.07.22 | 2370 |
114 | REPORT z08_001 | sapjoy | 2007.06.15 | 2210 |
113 | REPORT Z05_006 | sapjoy | 2007.06.12 | 2196 |
112 | Include Z_SHARED_AREA | sapjoy | 2007.05.28 | 2529 |