REPORT Z07_031 .
DATA: BEGIN OF line,
col1 TYPE i,
col2 TYPE char50,
END OF line.
DATA itab LIKE SORTED TABLE OF line WITH UNIQUE KEY col1.
DO 5 TIMES.
line-col1 = sy-index.
line-col2 = '필드 TRANSPORTING 성공'.
INSERT line INTO TABLE itab.
ENDDO.
CLEAR : LINE.
READ TABLE itab WITH TABLE KEY col1 = 2
INTO line TRANSPORTING col2.
WRITE: / line-col1, line-col2.
결과는
0 필드 TRANSPORTING 성공