2010/11/25

Internal table in ABAP

*An internal table is a run time instance.  It get created when program starts execution.
*It get destroyed when program terminates. it has two different parts.  HeaderLine(optional) & Body(Compulsory).
*Any value that comes to or goes from interanal table , that travels through headerline.\

*A related program is .
*declaration.


data: begin of inernaltable occurs 0,
         x type c,
         y type i,
      end of itab.


*initializing headerline
   internaltable-x = 'd'.
   internaltable-y = 34.
  
*storing value into internal table
appene internaltable . 
appene internaltable .
appene internaltable .


*reading internal table
loop at itab .
   write: / internaltable-x, internaltable-y.  "writes to output list
endloop.


Quoted from: http://www.sap-img.com/ab009.htm

沒有留言:

發佈留言