ABAP Data Dictionary
ABAP Data Dictionary
SAP ABAP data dictionary is a central and structured source of data for
development of objects. It is a database independent DDL (Data Definition
Language) and mainly deals with create, edit, drop the database tables. In
data dictionary you can define and maintain objects which are related to
database. The ABAP data dictionary can be easily integrated with the ABAP
workbench, so all the components of workbench can be easily access the
definitions stored in the ABAP dictionary.
Functions of data dictionary :
The important functions of data dictionary objects are as follows.
1. Database tables
2. Domains
3. Data elements
4. Views
5. Search helps
6. Lock Objects
Navigation
Transaction
SE11
code
Display/Maintenance:
o This option is used to allow us that whether we want only display the data or also
want to maintain the data. Here the data maintenance means creating, deleting, or
updating the data. There are three options available for this field:
o Display/maintenance allowed
o Display/maintenance not allowed
o Display/maintenance allowed with restrictions
Field Name: The name which we provide to each field in the table is known as the
field name that consists of a maximum of 16 characters. Similar to the table name, it
must start with a letter, and can have a letter, numbers, and underscore.
Key Flag: It specifies whether that particular field belongs to the Key field or not.
Field Length: It defines the number of characters that can be entered into the field.
Decimal Places: It specifies how many digits are permitted after the decimal point,
and it can only be used for the numeric data.
Short text: It specifies the meaning of the particular field entered within the table.
Data class: It defines the actual area of the table inside the database. The options
available for the data class are given below, which we can select according to our
table:
Domain: The domain is an object that defines the technical information of the field,
such as data type and length. Learn More.
o Transparent Tables
o Pooled Tables
o Cluster Tables
We can also create some special table types apart from these three tables, such as
table pools and clusters. These two table types store the information of other tables
such as program parameters, temporary data, documentation text, etc.
The explanation of the ABAP tables is given below:
1. Transparent Table
ABAP transparent table contains the application data that represents the master
data or transaction data used by an application. A table of vendors or table of
customers is an example of the master data.
In transparent tables, the database table has the same name and the same number
of fields with field names as the data dictionary table.
2. Pooled Tables
The pooled table in ABAP shows the many-to-one relationship with the table
definition in the database, which means for a single table defined in the SAP
database, there are various tables in the ABAP dictionary.
The names of the tables stored in the Dictionary and the database must be different.
The SAP database stores all the Pooled tables in a single table, which is known as a
table pool.
The pooled tables in the data dictionary may or may not have a common primary key
field.
Below image shows the relation between the Pooled tables and table pools:
3. Cluster Tables:
Cluster tables are similar to the Pooled tables, as they also show the many-to-
one relationship with the table definition in the SAP database. All the cluster tables
are stored in a single table in the database, and that table is known as a table
cluster.
The tables in the data dictionary must have at least one primary key field in
common, and the table is usually accessed simultaneously.
The relationship between the cluster table and table clusters can be understood by
using the below diagram:
o Open the ABAP dictionary initial Screen by navigating the menu path or entering the
SE11 transaction code.
o Click on the database table option, enter the name, and click on the Create
o Give the short description
o Specify the delivery class as "A."
o Select the "Display/Maintenance Allowed" in Data Browser/Table view
Maint. Option
o Click on the Save button, and save it as Local object or provide the Package name.
o Click on Fields Tab and enter the field name, and data element name.
o Click on the Technical Settings buttons, and provide the required details
o Click on save.
o At last, activate the table.
o Open the ABAP dictionary initial Screen by navigating the menu path or entering the
SE11 transaction code.
o Enter the table name and click on the change button.
o Click on the "Utilities" →Table Contents→Create
o Provide the details as per your requirement in the given fields and click on save.
o Enter the details as much you want to save by resetting the fields.
o Open the ABAP dictionary initial Screen by navigating the menu path or entering the
SE11 transaction code.
o Enter the table name and click on the change button.
o Click on the "Utilities" →Table Contents→Display
o Click on the execute button given on the screen to view all records stored within the
table.
o We can also see the particular data if there are lots of records in the table, for that
enter some data details and press enter.