메뉴 건너뛰기

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.
번호 제목 글쓴이 날짜 조회 수
29 REPORT Z13_003 sapjoy 2007.01.05 2437
28 FORM set_field_catalogs_grid USING lt_fieldcat TYPE lvc_t_fcat. sapjoy 2007.01.03 2875
27 REPORT Z12_004 sapjoy 2007.01.03 2256
26 REPORT z12_002 sapjoy 2006.12.28 2629
25 MODULE f4_drum_s101 INPUT. 2 sapjoy 2006.12.26 2375
24 module f4_drum_S101 input. sapjoy 2006.12.26 2541
23 REPORT Z11_010 sapjoy 2006.12.22 2358
22 REPORT Z11_008 sapjoy 2006.12.22 2496
21 REPORT Z11_005 sapjoy 2006.12.22 2273
20 REPORT z11_004 . sapjoy 2006.12.22 2465
19 REPORT Z11_001 sapjoy 2006.12.20 2976
18 PUT_SPFLI PUT_SFLIGHT PUT_SBOOK sapjoy 2006.12.19 2614
17 REPORT Z09_010 sapjoy 2006.12.19 2523
16 DBZF1SSEL sapjoy 2006.12.19 2842
15 REPORT Z09_006 [1] sapjoy 2006.12.18 2839
14 REPORT Z09_005 sapjoy 2006.12.18 2514
13 REPORT z09_002 sapjoy 2006.12.15 2601
» REPORT Z07_017 sapjoy 2006.12.08 2609
11 REPORT Z07_013 sapjoy 2006.12.08 2544
10 REPORT Z07_011 [1] sapjoy 2006.12.07 2183