메뉴 건너뛰기

SAP 한국 커뮤니티

REPORT z15_016

sapjoy 2007.01.29 21:26 조회 수 : 2396


REPORT  z15_016                                                     .

DATA: g_total TYPE i,
      g_cnt TYPE i,
      g_index type i.
DATA : gt_sflight TYPE TABLE OF sflight WITH HEADER LINE.

START-OF-SELECTION.
SELECT *
INTO CORRESPONDING FIELDS OF TABLE gt_sflight
FROM sflight.
DESCRIBE TABLE gt_sflight LINES g_total.
LOOP AT gt_sflight.
  g_cnt = g_cnt + 1.
  PERFORM progress_indicator
          USING g_cnt g_total ' Progressing... '.
ENDLOOP.

WRITE 'SUCCESS'.

*&--------------------------------------------------------------------*
*&      Form  progress_indicator
*&--------------------------------------------------------------------*
FORM progress_indicator USING    value(p_cur)
                                 value(p_total)
                                 value(p_text).
  DATA : text(50) TYPE c,
         idx1(3)  TYPE n.

  IF p_cur > p_total.
    idx1 = 100.
  ELSE.
    idx1 = ( p_cur / p_total ) * 100.
  ENDIF.

  CHECK g_index <> idx1 OR g_index IS INITIAL.
  g_index = idx1.
  CONCATENATE idx1 ' % : ' p_text INTO text.

  CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
    EXPORTING
      percentage = idx1
      text       = text
    EXCEPTIONS
      OTHERS     = 0.

ENDFORM.                    " progress_indicator
번호 제목 글쓴이 날짜 조회 수
51 REPORT Z15_038 sapjoy 2007.02.06 2176
50 REPORT Z15_036 sapjoy 2007.02.06 2214
49 REPORT Z15_035 sapjoy 2007.02.06 2162
48 REPORT Z15_034 sapjoy 2007.02.06 2079
47 REPORT z15_031 sapjoy 2007.02.05 2437
46 REPORT Z15_005 sapjoy 2007.01.31 2504
45 REPORT z15_024 sapjoy 2007.01.31 2239
44 REPORT z15_021 sapjoy 2007.01.30 2452
43 REPORT z15_017 sapjoy 2007.01.30 2316
» REPORT z15_016 sapjoy 2007.01.29 2396
41 REPORT z_15_012 sapjoy 2007.01.26 2176
40 REPORT Z_15_011 sapjoy 2007.01.26 2170
39 REPORT Z15_003 sapjoy 2007.01.25 2199
38 REPORT Z15_006 [2] sapjoy 2007.01.23 2411
37 REPORT Z15_004 sapjoy 2007.01.23 2387
36 REPORT Z14_012 sapjoy 2007.01.22 2206
35 REPORT Z14_011 sapjoy 2007.01.22 2582
34 REPORT z14_010 sapjoy 2007.01.22 2261
33 REPORT z14_007 sapjoy 2007.01.22 2150
32 REPORT z14_006 sapjoy 2007.01.22 2220