03 ABAP The Data Dictionary
03 ABAP The Data Dictionary
Contents
• Objectives
• Exploring the Types of Tables in ECC
• Exploring Table Components
• Creating a Transparent Table and Its Components
• Special Table Fields
• Modifying Tables
• Working with Data
• Structures in the Data Dictionary
• Revised and Active Versions
• Summary
• Exercise / Q&A
Contents
Objectives
Objectives
• Describe the transparent tables
• Use the data browsers to view and modify data within tables
• transparent
tables
• pooled tables
• cluster tables
Transparent Tables
• transparent table vs. database table:
– one-to-one relationship
– same name
– same number of fields
– same field names
• used to hold application data:
– master data: vendor master data, customer
master data…
– transaction data: purchasing order, sales order…
Contents
Table 16 y, z
Data element 30 y, z
Domain 30 y, z
mandt x mandt
• Buffering:
– increases system performance by caching data locally on the
application server
– fewer database accesses
– used for tables that are seldom updated and often read.
Modifying Tables
Modifying Tables
• copy
• delete
• delete fields
• change fields
Copying a Table
• Appending:
• delete rows
Using tcode SE11
Using tcode SE16 - Data Browser
Contents
– Active version
• when activate Revised version becomes active and replaces the Active
version
Revised and Active Versions
Compare Versions
Additional Versions
• temporary versions:
– menu path Utilities->Versions->Generate version
– is kept until the table is transported into production
– to view: menu path Utilities->Versions->Version Management
Retrieve Previous Version
Summary
• The Data Dictionary is a tool used by ABAP/4 programs to create and
maintain tables. There are three types of tables: transparent, pooled,
and cluster. Transparent tables are the most common and are used to
contain application data.
• To create a table, you first need domains and data elements. Domains
provide the technical characteristics of a field; data elements provide
the field labels and F1 help. Both are reusable.
• Within a table, each currency field must be linked to a currency key
field, and each quantity field must be linked to a field containing the
units of measurement.
• Data browsers enable you to display and modify the data within tables.
SE16 is the most general data browser.
• Tables and structures are very similar. The main difference is that a
table has an underlying database table and a structure doesn't.
• Dictionary objects must be active before they can be used. If you make
a change to a dictionary object, you must reactivate the object before
the changes take effect.