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
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
570 | REPORT Z03_010 [2] | sapjoy | 2007.05.14 | 2655 |
569 | REPORT Z05_013 [3] | sapjoy | 2008.04.14 | 2653 |
568 | REPORT ZRTTS_01 . | sapjoy | 2009.12.24 | 2652 |
567 | REPORT z16_002 | sapjoy | 2008.08.07 | 2649 |
566 | REPORT Z15_001 [2] | sapjoy | 2008.04.15 | 2647 |
565 | REPORT ZDYNAMIC_ITAB_12. | sapjoy | 2009.02.16 | 2643 |
564 | REPORT z18_038 [2] | sapjoy | 2008.04.21 | 2635 |
563 | report zunicode_032. | sapjoy | 2008.11.21 | 2634 |
562 | REPORT Z13_013 | sapjoy | 2007.01.08 | 2634 |
561 | REPORT Z07_026 [3] | sapjoy | 2006.12.08 | 2632 |
560 | REPORT z18_036 | sapjoy | 2007.03.13 | 2631 |
559 | REPORT z12_002 | sapjoy | 2006.12.28 | 2629 |
558 | FIELD_EXIT_GSBER_I | sapjoy | 2008.12.16 | 2625 |
557 | REPORT z15_014 | sapjoy | 2007.01.26 | 2625 |
556 | PUT_SPFLI PUT_SFLIGHT PUT_SBOOK | sapjoy | 2006.12.19 | 2614 |
555 | report zunicode_022. | sapjoy | 2008.11.21 | 2611 |
554 | REPORT Z05_008 [2] | sapjoy | 2007.05.27 | 2611 |
» | REPORT Z07_017 | sapjoy | 2006.12.08 | 2609 |
552 | report zsalv_040 . | sapjoy | 2010.08.20 | 2608 |
551 | REPORT Z03_018 [3] | sapjoy | 2006.12.02 | 2605 |