메뉴 건너뛰기

SAP 한국 커뮤니티

REPORT Z05_013

sapjoy 2008.04.15 07:47 조회 수 : 2653

REPORT  z05_013.
TYPES: BEGIN OF line,
  col1   TYPE char3,
  col2    TYPE i,
 END OF line.


DATA itab TYPE STANDARD TABLE OF line .
DATA l_idx TYPE i.


PERFORM fill CHANGING itab.


PERFORM out  USING    itab.



FORM fill CHANGING f_itab LIKE itab.


  DATA f_line LIKE LINE OF itab.


  DO 5 TIMES.
    l_idx = sy-index MOD 2.


    IF l_idx = 0.
      f_line-col1 = 'KIM'.
      f_line-col2 = sy-index.
      APPEND f_line TO f_itab.
    ELSE.
      f_line-col1 = 'LEE'.
      f_line-col2 = sy-index.
      APPEND f_line TO f_itab.
    ENDIF.
  ENDDO.


ENDFORM.                    "fill



FORM out USING value(f_itab)


LIKE itab.


  DATA f_line LIKE LINE OF f_itab.


  LOOP AT f_itab INTO f_line.


    WRITE: / f_line-col1, f_line-col2.


  ENDLOOP.


ENDFORM.                    "out

번호 제목 글쓴이 날짜 조회 수
251 REPORT Z07_016 sapjoy 2008.04.15 2804
250 REPORT Z15_007 eabap 2007.01.24 2680
249 REPORT Z05_025 sapjoy 2007.05.28 2564
» REPORT Z05_013 [3] sapjoy 2008.04.15 2653
247 REPORT Z02_005 . sapjoy 2006.12.03 2376
246 REPORT Z04_005 . sapjoy 2006.12.03 2595
245 REPORT Z06_001 MESSAGE-ID ZTEST . [1] sapjoy 2006.12.05 3207
244 REPORT Z07_002 . sapjoy 2006.12.07 2757
243 REPORT Z07_008 sapjoy 2006.12.07 2463
242 INCLUDE Z16_001O01 [1] sapjoy 2007.04.27 2595
241 REPORT z18_017 sapjoy 2007.03.12 2672
240 REPORT z18_036 sapjoy 2007.03.14 2631
239 REPORT z18_032 sapjoy 2008.04.22 2712
238 REPORT z18_031 sapjoy 2008.04.22 2527
237 REPORT z18_025 sapjoy 2007.03.17 2598
236 REPORT z18_024 sapjoy 2008.04.22 2310
235 REPORT z18_023 sapjoy 2008.04.22 2256
234 REPORT z18_022 sapjoy 2008.04.22 2258
233 REPORT z18_021 sapjoy 2008.04.22 2252
232 REPORT z18_020 sapjoy 2008.04.22 1835