What are the diferent types of internal table available? How
can we know the size of the internal tables?
Answer Posted / kumarm17
Internal Tables are:
STANDARD table : Key access to a standard table uses a
linear search. This means that the time required for a
search is in linear relation to the number of table entries.
You should use index operations to access standard tables.
SORTED table: Defines the table as one that is always saved
correctly sorted. Key access to a sorted table uses a binary
key. If the key is not unique, the system takes the entry
with the lowest index. The runtime required for key access
is logarithmically related to the number of table entries.
HASHED table: Defines the table as one that is managed with
an internal hash procedure You can only access a hashed
table using the generic key operations or other generic
operations ( SORT, LOOP, and so on). Explicit or implicit
index operations (such as LOOP ... FROM oe INSERT itab
within a LOOP) are not allowed.
INDEX table:
A table that can be accessed using an index. Index table is
only used to specify the type of generic parameters in a
FORM or FUNCTION. That means that you can't create a table
of type INDEX. Standard tables and sorted tables are index
tables.
Syntax : DATA itab TYPE table type of line type [WITH
UNIQUE/NON-UNIQUE KEY ] [Iinitial size n] [WITH HEADER LINE]
How do I get the row count of an internal table?
Ans : DESCRIBE TABLE <itab-Name> LINES <variable>
After the call, variable contains the number of rows of the
internal table
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is the maximum No. Of structures that can be included in a table or structure. : abap data dictionary
how to see the table output?
How to read files and process BDC's automatically ?
What are the types of views? : sap abap data dictionary
Setting up a BDC program where you find information from?
What is the use of the raising exception?
What does the ‘suppress dialog’ do?
What functions does a data dictionary perform? : abap data dictionary
How you attach search help to data element? : sap abap data dictionary
what is 3 tire architecture and how does SAP utilizes this architecture. and how do netweaver came into picture?
Explain what is the step-by-step process to create a table in data dictionary?
What is an interface? In what scenario we use interface? What is the difference between abstract class and interface?
What is the difference between table and template?
What are the buffering options in abap?
Explain the advantages/disadvantages of logical databases?