‎2007 Mar 08 6:49 AM
‎2007 Mar 08 6:51 AM
hi
could u plz give the question more clearly of what is ur requirement
‎2007 Mar 08 6:54 AM
Hi Mithun,
I could not get your Question. Present the thread in an understandable way.
Regards.
‎2007 Mar 08 6:58 AM
there are three data types used in internal table right , LINE , KEY and TABLE
just wanted to see the examples for programs using LINE and KEY .
‎2007 Mar 08 6:55 AM
Mithun,
Internal Tables as Data Types
Internal tables and structures are the two structured data types in ABAP. The data type of an internal table is fully specified by its line type, key, and table type.
Line type
The line type of an internal table can be any data type. The data type of an internal table is normally a structure. Each component of the structure is a column in the internal table. However, the line type may also be elementary or another internal table.
Key
The key identifies table rows. There are two kinds of key for internal tables - the standard key and a user-defined key. You can specify whether the key should be UNIQUE or NON-UNIQUE. Internal tables with a unique key cannot contain duplicate entries. The uniqueness depends on the table access method.
If a table has a structured line type, its default key consists of all of its non-numerical columns that are not references or themselves internal tables. If a table has an elementary line type, the default key is the entire line. The default key of an internal table whose line type is an internal table, the default key is empty.
The user-defined key can contain any columns of the internal table that are not references or themselves internal tables. Internal tables with a user-defined key are called key tables. When you define the key, the sequence of the key fields is significant. You should remember this, for example, if you intend to sort the table according to the key.
Pls. reward if useful