REPORT Z07_007 .
TYPES: BEGIN OF line,
col1 TYPE i,
col2 TYPE i,
END OF line.
DATA itab TYPE SORTED TABLE OF line WITH UNIQUE KEY col1
WITH HEADER LINE initial size 3.
DO 4 TIMES.
itab-col1 = sy-index.
itab-col2 = sy-index ** 2.
INSERT TABLE itab.
ENDDO.
itab-col1 = 2.
READ TABLE itab FROM itab.
itab-col2 = 100.
MODIFY TABLE itab.
itab-col1 = 4.
DELETE TABLE itab.
LOOP AT itab.
WRITE: / itab-col1, itab-col2.
ENDLOOP.
TYPES: BEGIN OF line,
col1 TYPE i,
col2 TYPE i,
END OF line.
DATA itab TYPE SORTED TABLE OF line WITH UNIQUE KEY col1
WITH HEADER LINE initial size 3.
DO 4 TIMES.
itab-col1 = sy-index.
itab-col2 = sy-index ** 2.
INSERT TABLE itab.
ENDDO.
itab-col1 = 2.
READ TABLE itab FROM itab.
itab-col2 = 100.
MODIFY TABLE itab.
itab-col1 = 4.
DELETE TABLE itab.
LOOP AT itab.
WRITE: / itab-col1, itab-col2.
ENDLOOP.
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
10 | REPORT Z07_011 [1] | sapjoy | 2006.12.07 | 2183 |
9 | REPORT Z07_010. | sapjoy | 2006.12.07 | 2527 |
» | REPORT Z07_007 | sapjoy | 2006.12.07 | 2698 |
7 | Dynamic Table Maintenance [1] | sapjoy | 2006.12.04 | 4094 |
6 | Z02_003 [2] | sapjoy | 2006.12.02 | 3042 |
5 | Z01_021 [1] | sapjoy | 2006.12.02 | 2771 |
4 | Z01_020 [2] | sapjoy | 2006.12.02 | 3008 |
3 | Z01_019 [2] | sapjoy | 2006.12.02 | 2688 |
2 | Z01_018 [2] | sapjoy | 2006.12.02 | 3042 |
1 | Z01_012 [9] | sapjoy | 2006.12.02 | 4548 |