Ver Mensaje Individual
  #5  
Viejo 07/06/13, 14:38:37
Mauricio Hidalgo Mauricio Hidalgo is offline
Senior Member
 
Fecha de Ingreso: may 2006
Localización: Santiago, Chile
Mensajes: 481
Siempre es mejor la explicación oficial.

You can define internal tables either with (addition WITH HEADER LINE) or
without header line. An internal table with header line consists of a work area
(header line) and the actual table body. You address both objects using the same
name.
The way in which the system interprets the name depends on the context. For
example, the name stands for the header line in MOVE and CLEAR, but for the
body in SEARCH and REFRESH. To avoid confusion, we recommend using
internal tables without header lines. This is particularly important when you
use nested tables.
However, internal tables with header line do offer a shorter syntax in several
statements (APPEND, INSERT, MODIFY, COLLECT, DELETE, READ, and LOOP
AT).
Within object-oriented contexts, however you can only use internal table without
a header line.
You can always address the body of an internal table itab explicitly by using
the following syntax: itab[]. This syntax is always valid, whether the internal
table has a header line or not.
288 ©
Responder Con Cita