REPORT Z07_017 .
DATA: BEGIN OF line,
land(3) TYPE c,
name(10) TYPE c,
age TYPE i,
weight TYPE p DECIMALS 2,
END OF line.
DATA itab LIKE STANDARD TABLE OF line WITH NON-UNIQUE KEY land.
line-land = 'G'. line-name = 'Hans'.
line-age = 20. line-weight = '80.00'.
APPEND line TO itab.
line-land = 'USA'. line-name = 'Nancy'.
line-age = 35. line-weight = '45.00'.
APPEND line TO itab.
line-land = 'USA'. line-name = 'Howard'.
line-age = 40. line-weight = '95.00'.
APPEND line TO itab.
line-land = 'GB'. line-name = 'Jenny'.
line-age = 18. line-weight = '50.00'.
APPEND line TO itab.
line-land = 'F'. line-name = 'Michele'.
line-age = 30. line-weight = '60.00'.
APPEND line TO itab.
line-land = 'G'. line-name = 'Karl'.
line-age = 60. line-weight = '75.00'.
APPEND line TO itab.
PERFORM loop_at_itab.
SORT itab.
PERFORM loop_at_itab.
SORT itab.
PERFORM loop_at_itab.
SORT itab STABLE.
PERFORM loop_at_itab.
SORT itab DESCENDING BY land weight ASCENDING.
PERFORM loop_at_itab.
FORM loop_at_itab.
LOOP AT itab INTO line.
WRITE: / line-land, line-name, line-age, line-weight.
ENDLOOP.
SKIP.
ENDFORM.
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
649 | REPORT Z07_010. | sapjoy | 2006.12.07 | 2527 |
648 | REPORT Z07_011 [1] | sapjoy | 2006.12.07 | 2183 |
647 | REPORT Z07_012 | sapjoy | 2006.12.08 | 2326 |
646 | REPORT Z07_013 | sapjoy | 2006.12.08 | 2544 |
645 | REPORT Z07_014 | sapjoy | 2006.12.08 | 2098 |
644 | REPORT Z07_015 | sapjoy | 2006.12.08 | 2426 |
» | REPORT Z07_017 | sapjoy | 2006.12.08 | 2609 |
642 | REPORT Z07_018 | sapjoy | 2006.12.08 | 2341 |
641 | REPORT Z07_019 | sapjoy | 2006.12.08 | 2284 |
640 | REPORT Z07_020 | sapjoy | 2006.12.08 | 2152 |
639 | REPORT Z07_021 [2] | sapjoy | 2006.12.08 | 2452 |
638 | REPORT Z07_024 | sapjoy | 2006.12.08 | 2472 |
637 | REPORT Z07_022 | sapjoy | 2006.12.08 | 2070 |
636 | REPORT Z07_023 | sapjoy | 2006.12.08 | 2255 |
635 | REPORT Z07_026 [3] | sapjoy | 2006.12.08 | 2632 |
634 | REPORT Z07_027 [3] | sapjoy | 2006.12.08 | 2374 |
633 | REPORT Z07_030 [4] | sapjoy | 2006.12.08 | 2438 |
632 | REPORT Z07_031 [2] | sapjoy | 2006.12.08 | 2309 |
631 | REPORT Z07_033 | sapjoy | 2006.12.08 | 2317 |
630 | REPORT z09_002 | sapjoy | 2006.12.15 | 2601 |