Open In App

What is SAP ABAP Data Dictionary (DDIC)?

DDIC is the central storage area that allows users to maintain the repository of objects related to the particular database and contains the central description of all the data used in the SAP system without any redundancy. The data in the DDIC is integrated, consistent, and secured. 

What is the ABAP Data Dictionary?

ABAP Data Dictionary, also known as DDIC, is a central repository in the SAP system where all the metadata related to the database objects are stored. The DDIC is used to manage and maintain the definitions of the database objects such as tables, views, structures, data elements, domains, and search helps.



Basic Types in ABAP Dictionary

The basic types in the ABAP Data Dictionary (DDIC) are the fundamental data types that are used to define the structure and organization of the database objects in the SAP system. These basic types include:



1. Character Strings

Character strings are used to represent text or alphanumeric data in the SAP system. In the DDIC, character strings are defined by a data type called “Character” or “String”. The “Character” type is a fixed-length string, while the “String” type is a variable-length string. The “Character” type is defined with a specific length, such as 10 characters, while the “String” type is defined with a maximum length, such as 255 characters.

2. Integers

Integers are used to represent whole numbers in the SAP system. In the DDIC, integers are defined by a data type called “Integer”. The “Integer” type is a signed or unsigned whole number and is defined with a specific length, such as 4 bytes or 8 bytes.

3. Floating Point Numbers

Floating point numbers are used to represent decimal numbers in the SAP system. In the DDIC, floating point numbers are defined by a data type called “Floating Point Number” or “Real”. The “Floating Point Number” type is a signed or unsigned decimal number and is defined with a specific length, such as 4 bytes or 8 bytes. The “Real” type is a single-precision floating-point number, with a length of 4 bytes.

4. Dates

Dates are used to represent dates in the SAP system. In the DDIC, dates are defined by a data type called “Date”. The “Date” type is a date representation that includes the year, month, and day, and is stored as a 4-byte binary value.

5. Time Stamps

Time stamps are used to represent dates and times in the SAP system. In the DDIC, time stamps are defined by a data type called “Time Stamp”. The “Time Stamp” type is a date and time representation that includes the year, month, day, hour, minute, and second, and is stored as an 8-byte binary value.

6. Currency Amounts

Currency amounts are used to represent monetary values in the SAP system. In the DDIC, currency amounts are defined by a data type called “Currency”. The “Currency” type is a signed or unsigned decimal number that is used to represent monetary values and is defined with a specific length and number of decimal places, such as 13 bytes with 2 decimal places.

These basic types provide the foundation for defining the structure and organization of the database objects in the SAP system. By using these basic types, you can define the individual data elements, such as fields in a database table, and the underlying data representation for these elements.

Dictionary Tasks

The ABAP Data Dictionary (DDIC) performs several key tasks in SAP, including:

These are some of the key tasks performed by the ABAP Data Dictionary. The DDIC is a critical component of the SAP system, providing centralized and consistent management of database objects and data in SAP.

ABAP Dictionary 3 Levels

The ABAP Data Dictionary has three levels:

Each of these levels plays an important role in defining and managing the data in the SAP system, and the three levels work together to provide a flexible and powerful data modeling framework that can be used to support a wide range of business requirements.

Aggregated Objects of ABAP Dictionary

Aggregate objects in SAP ABAP Data Dictionary (DDIC) are objects that are created by grouping other DDIC objects together. The purpose of aggregate objects is to provide a higher level of abstraction and encapsulation of the underlying objects, making it easier to manage and reuse data definitions.
There are several types of aggregate objects in ABAP DDIC, including tables, views, search help and lock objects. Each type of aggregate object serves a specific purpose and has its own unique characteristics. For example, tables are used to store data in the SAP system, views provide a consolidated view of data stored in one or more tables, and domains define the data type and rules for a specific field in a table. Each of the aggregated objects is explained in detail below:

1. Database Tables

In SAP ABAP, database tables are used to store data in the SAP system. The data is stored in rows and columns, similar to a spreadsheet. Tables can be defined in the ABAP Data Dictionary (DDIC) using the SE11 transaction. The DDIC provides a set of tools to define tables and their fields, including field properties, keys, and indexes.

2. Views

A view in SAP ABAP is a virtual table that provides a view of the data stored in one or more database tables. Views can be used to simplify data access, as they provide a single, consolidated view of the underlying data. Views can be defined in the ABAP DDIC using the SE11 transaction.

3. Data Types

A data type in SAP ABAP is a definition of the type of data that can be stored in a field. The DDIC provides a set of predefined data types, such as character, numeric, and date, as well as the ability to define custom data types. Data types are used to define the fields in tables and structures.

4. Type Groups

A type group in SAP ABAP is a collection of data types that are grouped together for easier management and reuse. The data types within a type group can be used in multiple programs, making it easier to maintain consistency in data definitions. Type groups can be defined in the ABAP DDIC using the SE11 transaction.

5. Domain

A domain in SAP ABAP is a data type definition in the DDIC that is used to define a specific field in a table. It provides a set of rules that govern the values that can be entered into the field, such as the data type, length, and number of decimal places. Domains can be defined in the ABAP DDIC using the SE11 transaction.

6. Search Help

Search help in SAP ABAP is a tool that helps the user find a specific value within a data field. It is a type of input help that is used to display a list of valid values for a field. Search helps can be assigned to fields in the DDIC to provide the user with a list of valid values during data entry. Search helps can be defined in the ABAP DDIC using the SE11 transaction.

7. Lock Objects

A lock object in SAP ABAP is a mechanism used to synchronize access to shared data in a multi-user environment. It is used to ensure that multiple users do not simultaneously update the same data record, which can result in data inconsistencies. The DDIC provides tools to define lock objects and assign them to specific tables or fields. Lock objects can be defined in the ABAP DDIC using the SE11 transaction.


Article Tags :