Professional Documents
Culture Documents
algorithm. The key of a hashed table must be unique, and you must specify UNIQUE in the table
definition.
This table type is particularly suitable if you want mainly to use key access for table entries. You
cannot access hashed tables using the index. When you use key access, the response time remains
constant, regardless of the number of table entries. As with database tables, the key of a hashed table
is always unique. Hashed tables are therefore a useful way of constructing and
using internal tables that are similar to database tables.
Index Tables
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.
Internal tables are not DB tables. Standard and Sorted tables in combined are basically called as Index
tables and there nothing else. Here is the hierarchy
ANY TABLE
|
-----------------------------------|
|
Index Tables
Hashed Table
|
-----------------------------------|
|
Standard Table
Sorted Table
The ABAP Dictionary centrally describe and manages all the data definitions used in the system. The ABAP
Dictionary is completely in the ABAP Workbench. All the other components of the Workbench can actively
access the definitions stored the ABAP Dictionary. These objects can be automatically created in the
database with this definition.
The most important object types in the ABAP Dictionary are tables. Views, types (data elements,
structures, and tables types), domains, search helps and lock objects.
Purpose
Data definitions (metadata) are created and managed in the ABAP Dictionary. The ABAP Dictionary permits
a central description of all the data used in the system without redundancies. New or modified information
is automatically provided for all the system components. This ensures data integrity, data consistency and
data security.
Tables are defined in the ABAP Dictionary independently of the database. A table having the same
structure is then created from this table definition in the underlying database.
A table definition in the ABAP Dictionary contains the following components :
Table fields define the field names and data types of the fields contained in the table.
Technical settings control how the table should be created in the database.
Table type
The table type determines how ABAP will access individual table entries. Internal
tables can be divided into three types:
Standard tables have an internal linear index. From a particular size upwards, the
indexes of internal tables are administered as trees. In this case, the index
administration overhead increases in logarithmic and not linear relation to the
number of lines. The system can access records either by using the table index or
the key. The response time for key access is proportional to the number of entries
in the table. The key of a standard table is always non-unique. You cannot specify
a unique key. This means that standard tables can always be filled very quickly,
since the system does not have to check whether there are already existing
entries.
Sorted tables are always saved sorted by the key. They also have an internal
index. The system can access records either by using the table index or the key.
The response time for key access is logarithmically proportional to the number of
table entries, since the system uses a binary search. The key of a sorted table can
be either unique or non-unique. When you define the table, you must specify
whether the key is to be unique or not. Standard tables and sorted tables are
known generically as index tables.
Hashed tables have no linear index. You can only access a hashed table using its
key. The response time is independent of the number of table entries, and is
constant, since the system access the table entries using a hash algorithm. The
key of a hashed table must be unique. When you define the table, you must
specify the key as UNIQUE.
Delivery Class
Use
You use the delivery class to control the transport of table data for an installation, upgrade, or client copy and
transports between customer systems. The delivery class is also used in the extended table maintenance.
Features
There are the following development classes:
A- Application table (master and transaction data).
C- Customer table, data is only maintained by the customer.
L- Table for storing temporary data.
1 G- Customer table, SAP can insert new data records but cannot overwrite or delete existing ones. The
customer namespace must be defined in table TRESC. To define the customer namespace use report
RDDKOR54. You can start it directly from the table maintenance by choosing Maintain Customer
Namespace on the Delivery and Maintenance tab.
E- System table with its own namespace for customer entries. The customer namespace must be defined in
table TRESC. To define the customer namespace use report RDDKOR54. You can start it directly from
the table maintenance by choosing Maintain Customer Namespace on the Delivery and Maintenance
tab.
S- System table, data changes have the status of program changes.
W- System table (for example table of the development environment) whose data is transported with its own
transport objects (such as R3TR PROG, R3TR TABL and so on).
Class A- Data records are only copied to the target client if explicitly requested (parameter option). It is not
sensible to transport such data, but this is supported nevertheless to allow the entire client environment
to be copied.
Use
You must define whether and how a table is buffered in the technical settings for the table. There are three
possibilities here:
Buffering not allowed:
Table buffering is not allowed. You use this option when, for example, application programs always need
the most recent data from the table or the table is changed too frequently.
Buffering allowed but switched off:
Buffering is allowed from the business and technical points of view. Applications which access the table
work correctly with and without table buffering. Whether or not table buffering results in a gain in
performance depends on the table size and access profile of the table (frequency of the different types
of table access). Initially the table buffering is not activated because it is not possible to know what these
values are in the customer system. If table buffering would be advantageous for the table size and
access profile of the table, you can activate it in the customer system at any time.
Buffering switched on:
The table is buffered. In this case you must specify a buffering type.
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
AA
AB
AC
AD
AE
AF
AG
AH
ST
AI