Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

data types in internal tables.

Former Member
0 Likes
537

Examples for LINE & KEY.

4 REPLIES 4
Read only

Former Member
0 Likes
502

hi

could u plz give the question more clearly of what is ur requirement

Read only

Former Member
0 Likes
502

Hi Mithun,

I could not get your Question. Present the thread in an understandable way.

Regards.

Read only

0 Likes
502

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 .

Read only

Former Member
0 Likes
502

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