메뉴 건너뛰기

SAP 한국 커뮤니티

REPORT Z07_017

sapjoy 2006.12.08 12:08 조회 수 : 2609


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.
번호 제목 글쓴이 날짜 조회 수
30 REPORT z14_11. sapjoy 2012.08.01 837
29 REPORT z10_03. sapjoy 2012.07.30 837
28 REPORT z10_01. sapjoy 2012.07.30 830
27 REPORT z08_02. sapjoy 2012.07.30 829
26 REPORT z05_28. [1] sapjoy 2012.07.30 824
25 REPORT Z08_01. sapjoy 2012.07.30 824
24 REPORT Z05_34. sapjoy 2012.07.30 823
23 REPORT z10_08. sapjoy 2012.07.30 820
22 REPORT Z12_03 sapjoy 2012.07.30 819
21 REPORT z14_07. sapjoy 2012.08.01 818
20 REPORT z10_11. sapjoy 2012.07.30 818
19 REPORT z08_03. sapjoy 2012.07.30 817
18 REPORT Z05_32. sapjoy 2012.07.30 816
17 REPORT z10_06. sapjoy 2012.07.30 814
16 REPORT z05_14. sapjoy 2012.07.30 814
15 REPORT z08_05. sapjoy 2012.07.30 810
14 REPORT Z11_08. sapjoy 2012.07.30 805
13 REPORT z14_09. sapjoy 2012.08.01 800
12 REPORT z14_13. sapjoy 2012.08.01 799
11 REPORT z11_05. sapjoy 2012.07.30 797