Chapter 04 - ABAP Dictionary Tables in Relational Databases
Chapter 04 - ABAP Dictionary Tables in Relational Databases
Objectives
2 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation
IBM Global Services
View
3 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation
IBM Global Services
Transparent Tables
SAP stores both master data and transaction data exclusively in transparent
tables.
4 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation
IBM Global Services
PROFILE
DB
5 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation
IBM Global Services
INTTAB tables are field strings (structures) which do not hold data.
They are not mapped to the database and have no underlying database tables.
PROFILE
DB
x
6 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation
IBM Global Services
Pooled tables can be used to store control data (e.g. screen sequences,
program parameters or temporary data).
Cluster tables contain continuous text (e.g. documentation).
7 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation
IBM Global Services
Technical Settings
Master, Transaction
Data class Organization &
Customizing, User
8 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation
IBM Global Services
Data Class
Organization and
Transaction data Customizing data
DB
9 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation
IBM Global Services
Size Categories
A table’s size category identifies the amount of disk space on the database that
is allocated to the table.
10 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation
IBM Global Services
Buffering Type
Full
KF1 KF2 KF3 F4 F5 F6 None
11 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation
IBM Global Services
Logging
On the technical settings screen you can specify “Log data changes” to
automatically generate a log file of details on the structure of a table, a list of the
data changes made during a certain period, and statistics.
12 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation
IBM Global Services
Data Class
Size Category
Buffering Type
Logging
13 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation
IBM Global Services
Demonstration
Observation of the technical settings of the SAP Table MARA and familiarization
with the technical settings of a transparent table.
14 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation
IBM Global Services
Practice
Observation of the technical settings of the SAP Table MARA and familiarization
with the technical settings of a transparent table.
15 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation
IBM Global Services
Database Utility
AB
Dic AP
tion
a ry
DB
16 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation
IBM Global Services
Index
17 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation
IBM Global Services
Database Indexes
Employee Names Index Employees Table
Last Name First Name Pointer ID Last Name First Name Salary
Adams Anthony
Burrows Gerry
Furia Fred
Gregory Tim
Jones Jimmy
Peters Beth
Treske Carolin
Zelkova Zephyr
18 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation
IBM Global Services
19 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation
IBM Global Services
20 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation
IBM Global Services
21 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation
IBM Global Services
If each index record matches exactly one record in the table, and if all the fields
of the index are specified in the query, a unique index scan can be performed.
22 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation
IBM Global Services
A unique index scan is generally faster than an index range scan, because it has
less data to sort through and retrieve.
23 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation
IBM Global Services
Summary
There are 5 different table types in the SAP ABAP Dictionary: Transparent
tables, Structures, Pool tables, Cluster tables & Views.
Technical settings allow you to optimize the storage requirements and table
access behavior of database tables.
Defining a data class has the effect of storing the table in a defined area of
the database when the table is created.
A table’s size category identifies the amount of disk space on the database
that is allocated to the table.
Buffering is only recommended for tables with data that typically does not
change or get updated.
To improve performance, SAP automatically creates a primary index (id 0) for
transparent tables based on the primary key. You can also define your own
secondary indexes for transparent tables.
24 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation
IBM Global Services
Questions
25 ABAP Dictionary Tables in Relational Databases | 2.04 March-2005 © 2005 IBM Corporation