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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
130 | Include ZXCSAU05 | sapjoy | 2008.12.15 | 2587 |
129 | REPORT ZBAPI_002. | sapjoy | 2009.02.09 | 2590 |
128 | Z16_001TOP | sapjoy | 2009.09.21 | 2593 |
127 | INCLUDE Z16_001O01 [1] | sapjoy | 2007.04.26 | 2595 |
126 | REPORT Z04_005 . | sapjoy | 2006.12.02 | 2595 |
125 | REPORT z18_025 | sapjoy | 2007.03.16 | 2598 |
124 | Include Z16_001TOP | sapjoy | 2007.04.26 | 2601 |
123 | REPORT z09_002 | sapjoy | 2006.12.15 | 2602 |
122 | REPORT Z18_000 [1] | sapjoy | 2008.04.16 | 2602 |
121 | REPORT ZSMARTFORMS_08. [2] | sapjoy | 2009.02.27 | 2602 |
120 | REPORT Z03_018 [3] | sapjoy | 2006.12.02 | 2605 |
119 | report zsalv_040 . | sapjoy | 2010.08.20 | 2608 |
» | REPORT Z07_017 | sapjoy | 2006.12.08 | 2609 |
117 | REPORT Z05_008 [2] | sapjoy | 2007.05.27 | 2611 |
116 | report zunicode_022. | sapjoy | 2008.11.21 | 2612 |
115 | PUT_SPFLI PUT_SFLIGHT PUT_SBOOK | sapjoy | 2006.12.19 | 2614 |
114 | REPORT z15_014 | sapjoy | 2007.01.26 | 2625 |
113 | FIELD_EXIT_GSBER_I | sapjoy | 2008.12.16 | 2625 |
112 | REPORT z12_002 | sapjoy | 2006.12.28 | 2629 |
111 | REPORT z18_036 | sapjoy | 2007.03.13 | 2631 |