REPORT Z05_32.
DATA: BEGIN OF gs_line,
col1 TYPE C,
col2 TYPE I,
END OF gs_line.
DATA gt_itab LIKE SORTED TABLE OF gs_line WITH UNIQUE KEY col1.
gs_line-col1 = 'A'. gs_line-col2 = 1.
INSERT gs_line INTO TABLE gt_itab.
CLEAR gs_line.
gs_line-col1 = 'B'. gs_line-col2 = 2.
INSERT gs_line INTO TABLE gt_itab.
CLEAR gs_line.
gs_line-col1 = 'A'.
READ TABLE gt_itab FROM gs_line INTO gs_line COMPARING col2.
WRITE: / 'SY-SUBRC is : ', SY-SUBRC.
WRITE: / 'Result is :', gs_line-col1, gs_line-col2.
DATA: BEGIN OF gs_line,
col1 TYPE C,
col2 TYPE I,
END OF gs_line.
DATA gt_itab LIKE SORTED TABLE OF gs_line WITH UNIQUE KEY col1.
gs_line-col1 = 'A'. gs_line-col2 = 1.
INSERT gs_line INTO TABLE gt_itab.
CLEAR gs_line.
gs_line-col1 = 'B'. gs_line-col2 = 2.
INSERT gs_line INTO TABLE gt_itab.
CLEAR gs_line.
gs_line-col1 = 'A'.
READ TABLE gt_itab FROM gs_line INTO gs_line COMPARING col2.
WRITE: / 'SY-SUBRC is : ', SY-SUBRC.
WRITE: / 'Result is :', gs_line-col1, gs_line-col2.
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
511 | REPORT z05_35. [1] | sapjoy | 2012.07.31 | 890 |
510 | REPORT Z05_34. | sapjoy | 2012.07.31 | 835 |
509 | REPORT Z05_33. | sapjoy | 2012.07.31 | 863 |
» | REPORT Z05_32. | sapjoy | 2012.07.31 | 829 |
507 | REPORT z05_31. | sapjoy | 2012.07.31 | 887 |
506 | REPORT z05_30. | sapjoy | 2012.07.31 | 856 |
505 | REPORT z05_29. | sapjoy | 2012.07.31 | 978 |
504 | REPORT z05_28. [1] | sapjoy | 2012.07.31 | 831 |
503 | REPORT z05_27. | sapjoy | 2012.07.31 | 885 |
502 | REPORT z05_26. | sapjoy | 2012.07.31 | 931 |
501 | REPORT z05_25. [1] | sapjoy | 2012.07.31 | 883 |
500 | REPORT z05_24. | sapjoy | 2012.07.31 | 889 |
499 | REPORT z05_23. | sapjoy | 2012.07.31 | 896 |
498 | REPORT z05_22. | sapjoy | 2012.07.31 | 878 |
497 | REPORT z05_21. | sapjoy | 2012.07.31 | 874 |
496 | REPORT z05_20. | sapjoy | 2012.07.31 | 1031 |
495 | REPORT z05_19. | sapjoy | 2012.07.31 | 1006 |
494 | REPORT z05_18. | sapjoy | 2012.07.31 | 907 |
493 | REPORT z05_17. | sapjoy | 2012.07.31 | 908 |
492 | REPORT z09_02. | sapjoy | 2012.07.31 | 1003 |