itab . The return value is a single character character-like ID. In an
inline declaration, a variable of the tye c with length 1 is
declared.
The possible IDs are "T" for standard
tables , "S" for sorted tables, and "H" for
hashed tables . These values are also
defined as constants sydes_kind-standard , sydes_kind-sorted
, and sydes_kind-hashed in the
type group SYDES .
ABAP_ADDITION_2 ... LINES lin
What does it do? Determines the current number of table rows in the
internal table itab . The return value has the type i . In
an inline declaration, a variable of the tye ci is declared.
Latest notes: The current number of rows of an internal table can also be
determined using the predefined
function lines , which
can be used in suitable operand positions
.
ABAP_ADDITION_3 ... OCCURS n
What does it do? Determines the initial memory requirements defined using
the addition INITIAL SIZE or the obsolete
addition OCCURS when the internal table
is created. The return value has the type i . In an inline
declaration, a variable of the tye ci is declared.
Example ABAP Coding Sorts a generically typed internal table in a subroutine
in descending order. Since sorted tables
cannot be sorted in descending order, the table category is checked to
prevent non-handleable exceptions from being raised.
FORM sort_descending CHANGING itab TYPE ANY TABLE.
DESCRIBE TABLE itab KIND DATA(tabkind).
IF tabkind = sydes_kind-standard OR
tabkind = sydes_kind-hashed.
SORT itab DESCENDING.
ELSEIF tabkind = sydes_kind-sorted.
MESSAGE '...' TYPE 'E'.
ELSE.
MESSAGE '...' TYPE 'E'.
ENDIF.
ENDFORM.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved