Popular Posts
ListSelectionListener & ItemListener import java.awt.Dimension; import java.awt.FlowLayout; import java.awt.Toolkit; import java.awt.event.ItemEvent; import java.awt.event.ItemL... netbean shortcut Ctrl + F:尋找 F3:尋找下一個字串 Ctrl + G:跳到第 N 行 Ctrl + H:取代 Tab:增加縮排 Shift + Tab:減少縮排 Ctrl + E:刪除一行 Ctrl + Shift + I:修正 import 項目 Alt + Ent... Capture response output stream using HttpModule using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Web; namespace TestWebA...
Stats
Internal Table: header line
types: begin of POW,
         NUM type I,
         NUM2 type I,
       end of POW.
data: ITAB type POW occurs 0,
      ROW type POW.

do 5 times.
  ROW-NUM = SY-INDEX.
  ROW-NUM2 = SY-INDEX ** 2.
  append ROW to ITAB.
enddo.

* ======================================================================
* "ITAB" is a table without a header line and therefore has no component
* ======================================================================
*do 5 times.
*  ITAB-NUM = SY-INDEX + 5.
*  ITAB-NUM2 = ITAB-NUM ** 2.
*  append ITAB.
*enddo.

loop at ITAB into ROW.
  write: / 'num:', ROW-NUM left-justified, ', num2:', ROW-NUM2.
endloop.
types: begin of POW,
         NUM type I,
         NUM2 type I,
       end of POW.
data: ITAB type POW occurs 0 with header line,
      ROW type POW.

do 5 times.
  ROW-NUM = SY-INDEX.
  ROW-NUM2 = SY-INDEX ** 2.
  append ROW to ITAB.
enddo.

do 5 times.
  ITAB-NUM = SY-INDEX + 5.
  ITAB-NUM2 = ITAB-NUM ** 2.
  append ITAB.
enddo.

loop at ITAB into ROW.
  write: / 'num:', ROW-NUM left-justified, ', num2:', ROW-NUM2.
endloop.