DESCRIBE TABLE statement in ABAP programs are used to retrieve the attributes of an internal table.
Syntax
DESCRIBE TABLE itab [KIND knd] [LINES lin] [OCCURS n].
KIND addition: Is used for retrieve the type of internal table.It will return as following
- T (For standard tables)
- S (For sorted tables)
- H (for Hashed tables)
LINES addition: Is used for retrieve the current number of rows in an internal table.
OCCURS addition: Is used for retrieve the specified initial memory requirement for the table.
By running DESCRIBE TABLE statement the following system fields filled with the values.
- sy-tfill (This system field contains the current number of rows)
- sy-tleng (This system field contains length of row in bytes)
Also Read : View Other ABAP Keywords & Syntax -> ABAP Transaction codes