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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
11 | REPORT Z07_013 | sapjoy | 2006.12.08 | 2555 |
10 | REPORT Z07_011 [1] | sapjoy | 2006.12.07 | 2193 |
9 | REPORT Z07_010. | sapjoy | 2006.12.07 | 2536 |
» | REPORT Z07_007 | sapjoy | 2006.12.07 | 2712 |
7 | Dynamic Table Maintenance [1] | sapjoy | 2006.12.05 | 4120 |
6 | Z02_003 [2] | sapjoy | 2006.12.03 | 3067 |
5 | Z01_021 [1] | sapjoy | 2006.12.03 | 2785 |
4 | Z01_020 [2] | sapjoy | 2006.12.03 | 3027 |
3 | Z01_019 [2] | sapjoy | 2006.12.03 | 2709 |
2 | Z01_018 [2] | sapjoy | 2006.12.03 | 3064 |
1 | Z01_012 [9] | sapjoy | 2006.12.03 | 4621 |