메뉴 건너뛰기

SAP 한국 커뮤니티

REPORT ZDYNAMIC_ITAB_08.

sapjoy 2009.02.16 20:56 조회 수 : 2760

REPORT  ZDYNAMIC_ITAB_08.
TABLES
 : SFLIGHT.
SELECT-OPTIONS : S_CARRID FOR
 SFLIGHT-CARRID,
                 S_FLDATE 
FOR
 SFLIGHT-FLDATE.

DATA : GT_SFLIGHT LIKE SFLIGHT OCCURS 0 WITH HEADER LINE
,
       L_TEXT(
72
),
       L_CNT(
2TYPE C
.
DATA : BEGIN OF L_SRC_ST_IT OCCURS 0
,
         
TEXT(72
),
       
END OF
 L_SRC_ST_IT.

SELECT * INTO TABLE
 GT_SFLIGHT
FROM
 SFLIGHT
WHERE CARRID IN
 S_CARRID
  
AND FLDATE IN
 S_FLDATE.

CLEAR
 : L_CNT.
SORT GT_SFLIGHT BY
 FLDATE.

CLEAR
 : L_SRC_ST_IT.

L_SRC_ST_IT-
TEXT = '*&  Include   ZDYNAMIC_ITAB_08TOP   *'
.
APPEND
 L_SRC_ST_IT.
CLEAR
 : L_SRC_ST_IT.

L_SRC_ST_IT-
TEXT = 'DATA : BEGIN OF GT_FLDATE OCCURS 0,'
.
APPEND
 L_SRC_ST_IT.
CLEAR
 : L_SRC_ST_IT.

L_SRC_ST_IT-
TEXT = '         CARRID   LIKE SFLIGHT-CARRID,'
.
APPEND
 L_SRC_ST_IT.
CLEAR
 : L_SRC_ST_IT.

LOOP AT
 GT_SFLIGHT.
  
ON CHANGE OF
 GT_SFLIGHT-FLDATE.
    L_CNT = L_CNT + 
1
.
    
CONCATENATE ' FLDATE' L_CNT ' LIKE SFLIGHT-FLDATE,' INTO
 L_TEXT.
    L_SRC_ST_IT-
TEXT
 = L_TEXT.
    
APPEND
 L_SRC_ST_IT.
    
CLEAR
 : L_SRC_ST_IT.
  
ENDON
.
ENDLOOP
.

L_SRC_ST_IT-
TEXT = '       END OF GT_FLDATE.'
.
APPEND L_SRC_ST_IT.



INSERT REPORT 'ZDYNAMIC_ITAB_09_TOP' FROM L_SRC_ST_IT.

EXPORT GT_SFLIGHT TO MEMORY ID 'TEST_ID'
.
CALL TRANSACTION 'ZDYNAMIC_ITAB_09' AND SKIP FIRST SCREEN.

번호 제목 글쓴이 날짜 조회 수
351 Z16_001TOP sapjoy 2009.09.21 2593
350 REPORT ZSMARTFORMS_08. [2] sapjoy 2009.02.27 2604
349 REPORT zsaptip_006. sapjoy 2009.02.21 2075
348 REPORT zsaptip_005. [2] sapjoy 2009.02.20 1836
347 REPORT zsaptip_004. sapjoy 2009.02.20 1848
346 REPORT ZSAPTIP_002. sapjoy 2009.02.20 3208
345 sap_debug.txt file sapjoy 2009.02.20 2523
344 TOTAL sapjoy 2009.02.19 2686
343 REPORT ZDYNAMIC_ITAB_12. sapjoy 2009.02.16 2643
342 REPORT ZDYNAMIC_ITAB_11. [1] sapjoy 2009.02.16 2012
341 REPORT ZDYNAMIC_ITAB_10. [1] sapjoy 2009.02.16 1864
340 REPORT ZDYNAMIC_ITAB_09. sapjoy 2009.02.16 2138
» REPORT ZDYNAMIC_ITAB_08. sapjoy 2009.02.16 2760
338 REPORT ZDYNAMIC_ITAB_07. sapjoy 2009.02.16 2583
337 REPORT ZDYNAMIC_ITAB_06. sapjoy 2009.02.16 1972
336 REPORT ZDYNAMIC_ITAB_05. sapjoy 2009.02.16 2156
335 REPORT ZDYNAMIC_ITAB_04. sapjoy 2009.02.16 2031
334 REPORT ZDYNAMIC_ITAB_03 sapjoy 2009.02.16 2502
333 REPORT ZDYNAMIC_ITAB_02. sapjoy 2009.02.16 1870
332 REPORT ZDYNAMIC_ITAB_01. sapjoy 2009.02.13 1873