메뉴 건너뛰기

SAP 한국 커뮤니티

REPORT Z05_012

sapjoy 2008.04.15 07:46 조회 수 : 2455

REPORT  Z05_012.   


TYPES: BEGIN OF line,


                           col1(3) TYPE c,


                           col2    TYPE i,


             END OF line.


 


DATA:


itab TYPE STANDARD TABLE OF line


WITH HEADER LINE,


jtab TYPE STANDARD TABLE OF line.


 


DATA l_idx TYPE i.


PERFORM fill TABLES itab.


 


MOVE itab[] TO jtab.


 


PERFORM out TABLES jtab.


 


FORM fill TABLES f_itab LIKE itab[].


             DO 5 TIMES.


             l_idx = sy-index MOD 2.


             IF l_idx = 0.


                           f_itab-col1 = 'KIM'.


                           f_itab-col2 = sy-index.


                           APPEND f_itab.


             ELSE.


                           f_itab-col1 = 'LEE'.


                           f_itab-col2 = sy-index.


                           APPEND f_itab. ENDIF.


             ENDDO.


ENDFORM.


 


FORM out TABLES f_itab LIKE jtab.


             LOOP AT f_itab.


                           WRITE: / f_itab-col1, f_itab-col2.


             ENDLOOP.


ENDFORM.

번호 제목 글쓴이 날짜 조회 수
171 REPORT Z02_014 sapjoy 2008.04.15 2112
170 REPORT Z05_014 sapjoy 2008.04.15 3011
169 REPORT z05_028 sapjoy 2007.05.30 2276
168 REPORT Z05_026 [2] sapjoy 2007.05.28 2428
» REPORT Z05_012 [1] sapjoy 2008.04.15 2455
166 REPORT Z05_010 [1] sapjoy 2007.05.28 2122
165 REPORT Z05_009 [2] sapjoy 2007.05.28 2150
164 REPORT Z05_008 [2] sapjoy 2007.05.28 2612
163 REPORT Z05_007 [2] sapjoy 2007.05.27 2192
162 REPORT z05_005 sapjoy 2007.05.22 2160
161 REPORT Z05_004 sapjoy 2008.04.15 2227
160 REPORT Z04_033 [1] sapjoy 2008.04.15 2456
159 REPORT Z04_019 [2] sapjoy 2007.05.22 2476
158 REPORT Z04_018 sapjoy 2007.05.22 2110
157 REPORT Z04_017 sapjoy 2007.05.22 2233
156 REPORT Z04_015 sapjoy 2007.05.17 2111
155 REPORT Z04_012 [1] sapjoy 2007.05.17 2064
154 REPORT Z04_011 [1] sapjoy 2007.05.17 2249
153 REPORT Z04_010 sapjoy 2008.04.15 2153
152 REPORT z04_009 [1] sapjoy 2007.09.13 2202