0% found this document useful (0 votes)
2 views

Chapter 04_ABAP Dictionary Tables in Relational Databases

The document provides an overview of ABAP Dictionary tables in relational databases, detailing the types of tables (Transparent, Pool, and Cluster) and their technical settings for optimization. It discusses performance benefits through indexing and the importance of data classes, size categories, and buffering. Additionally, it highlights the use of the Database Utility as an interface between database management software and the ABAP Dictionary.

Uploaded by

Aniruddha_Ghosh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Chapter 04_ABAP Dictionary Tables in Relational Databases

The document provides an overview of ABAP Dictionary tables in relational databases, detailing the types of tables (Transparent, Pool, and Cluster) and their technical settings for optimization. It discusses performance benefits through indexing and the importance of data classes, size categories, and buffering. Additionally, it highlights the use of the Database Utility as an interface between database management software and the ABAP Dictionary.

Uploaded by

Aniruddha_Ghosh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 24

IBM Global Services

ABAP Dictionary Tables in Relational Databases

ABAP Dictionary Tables in Relational Dec-2008 © 2005 IBM Corporation


Databases |
IBM Global Services

Objectives

 The participants will be able to:


 Describe the different types of tables in the SAP ABAP Dictionary.
 Explain the technical settings for optimizing the storage and maintenance requirements.
 Describe performance benefits through indexing.

2 ABAP Dictionary Tables in Relational Databases | Dec-2008 © 2005 IBM Corporation


IBM Global Services

SAP Table Types

Transparent Table
(TRANSP)

Pool Table Cluster Table

3 ABAP Dictionary Tables in Relational Databases | Dec-2008 © 2005 IBM Corporation


IBM Global Services

Transparent Tables

 SAP stores both master data and transaction data in transparent tables.

Master Data Transactional Data

4 ABAP Dictionary Tables in Relational Databases | Dec-2008 © 2005 IBM Corporation


IBM Global Services

Table Types TRANSP in the Database

 Transparent (TRANSP) tables have a 1:1 correlation between the ABAP


Dictionary and the physical database.

PROFILE

DB

5 ABAP Dictionary Tables in Relational Databases | Dec-2008 © 2005 IBM Corporation


IBM Global Services

Pool and Cluster Tables: Overview


 Pooled tables can be used to store control data (e.g. screen sequences,
program parameters or temporary data).
 Cluster tables may contain continuous text (e.g. documentation).

Pool Table Cluster Table

6 ABAP Dictionary Tables in Relational Databases | Dec-2008 © 2005 IBM Corporation


IBM Global Services

Technical Settings

Master, Transaction
Data class Organization &
Customizing, User

Size category Number of data records in


DB storage

Single records buff, generic


Buffering
area buffered, fully buffered

Log data changes On or off

7 ABAP Dictionary Tables in Relational Databases | Dec-2008 © 2005 IBM Corporation


IBM Global Services

Data Class

Organization and
Transaction data Customizing data

Master data User data

DB
8 ABAP Dictionary Tables in Relational Databases | Dec-2008 © 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.

9 ABAP Dictionary Tables in Relational Databases | Dec-2008 © 2005 IBM Corporation


IBM Global Services

Buffering Type

Single Record Generic


KF1 KF2 KF3 F4 F5 F6 KF1 KF2 KF3 F4 F5 F6

Full
KF1 KF2 KF3 F4 F5 F6 None

10 ABAP Dictionary Tables in Relational Databases | Dec-2008 © 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.

11 ABAP Dictionary Tables in Relational Databases | Dec-2008 © 2005 IBM Corporation


IBM Global Services

Maintaining Technical Settings

Data Class

Size Category

Buffering Type

Logging

12 ABAP Dictionary Tables in Relational Databases | Dec-2008 © 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.

13 ABAP Dictionary Tables in Relational Databases | Dec-2008 © 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.

14 ABAP Dictionary Tables in Relational Databases | Dec-2008 © 2005 IBM Corporation


IBM Global Services

Database Utility

 The Database (DB) Utility is a tool used in SAP to serve as a interface


between the database management software (i.e., ORACLE, INFORMIX,
DB2, INGRES, etc.) and the ABAP Dictionary

AB
Dic AP
tion
a ry

DB

15 ABAP Dictionary Tables in Relational Databases | Dec-2008 © 2005 IBM Corporation


IBM Global Services

Index

 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.

16 ABAP Dictionary Tables in Relational Databases | Dec-2008 © 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

17 ABAP Dictionary Tables in Relational Databases | Dec-2008 © 2005 IBM Corporation


IBM Global Services

The Telephone Book Analogy

 Think of an index like a telephone book

18 ABAP Dictionary Tables in Relational Databases | Dec-2008 © 2005 IBM Corporation


IBM Global Services

The Telephone Book Analogy (Contd.)

19 ABAP Dictionary Tables in Relational Databases | Dec-2008 © 2005 IBM Corporation


IBM Global Services

The Index Range Scan

 Sometimes an index doesn’t point to a single record, so it has to go for the


Index Range Scan

20 ABAP Dictionary Tables in Relational Databases | Dec-2008 © 2005 IBM Corporation


IBM Global Services

The Unique Index Scan

 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.

21 ABAP Dictionary Tables in Relational Databases | Dec-2008 © 2005 IBM Corporation


IBM Global Services

Evaluating the Various Types of Scans

 A unique index scan is generally faster than an index range scan, because it has
less data to sort through and retrieve.

Unique Index Scan

Index Range Scan

Full Table Scan

22 ABAP Dictionary Tables in Relational Databases | Dec-2008 © 2005 IBM Corporation


IBM Global Services

Summary

 There are 3 different table types in the SAP ABAP Dictionary: Transparent
tables, Pool tables & Cluster tables
 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.

23 ABAP Dictionary Tables in Relational Databases | Dec-2008 © 2005 IBM Corporation


IBM Global Services

Questions

 What are the different table types ?


 What is data class ?
 What is size category ?
 What is buffering ?

24 ABAP Dictionary Tables in Relational Databases | Dec-2008 © 2005 IBM Corporation

You might also like