Académique Documents
Professionnel Documents
Culture Documents
1. ABAP Dictionary is a central repository where we define and maintain the objects
which are related to database [ABAP Dictionary is a central repository which is
a collection of the objects related to Database].
2. Define means creation of objects
3. The Objects are Tables, Views, Structures, Domains, and Data Elements.
4. Maintenance means changing and deleting the objects.
Database Table
(We all know that table is a collection of fields, ex: STUDENT is a table
with fields STUDENT_ID, STUDENT_NAME ext, and Data element
specifies the field labels and headings for these fields).
Reusability: The same data element and domain can be reused by multiple table fields,
Instead of creating again and again.
These are also used in creating foreign key relationship, search help, ale-idocs.
Key field: A field which is used to identify the record uniquely is called a key field. In a
table there should be at least one key field. We can create ____ number of key fields.
In Real-time, we use Domains & Data Elements for reusability that means, once we can
create the Domain and Data Element for CNO [OR] CNAME we can use same in N
Number of Tables.
NOTE:
Note:
Sometimes we may get unpredictable errors in a table, due to adding or deleting the fields
in a table. To solve the error follow the below steps.
If we use MANDT (Client Number) in the table, the data will be stored in a Single Client
i.e., logged in Client instead of the all the clients. There by providing security to the data.
CLIENT NUMBER
1. It is a unique number which is used to provide security to the data at the database
level.
2. In the real time, based on the client no only, usernames will be created and the
access will be given.
3. In the real time, normally we use the client number (100,120), (200,220),
(300,320).
4. The field name, data element, and domain for client number is MANDT.
Inner Join
Outer Join
1. Database view
2. Projection view
3. Help view
4. Maintenance view
Database view:
1. A view created on two or more tables using inner join concept is called database
view
2. In this view we can only read the data
3. We can provide selections to read the data
4. We cannot maintain the data
Projection view
1. A view created on single table is called projection view. Projection views are
mainly used to minimize the database interface (number of fields) and improve the
system performance.
2. In simple words, we can hide the unnecessary fields from a single table
3. We can maintain the data in the projection views.
4. We cannot provide any selections in the projection views.
Help view:
1. A view created on two or more tables using outer join concept is called help view.
2. Help view are specially designed for search helps.
3. We cannot execute help views directly; instead we have to include help views
inside the search helps.
4. We cannot maintain the data in help views.
Maintenance view:
1. A view created on two or more tables using inner join concept is called
maintenance views
2. We can maintain the data in maintenance views
3. Maintenance view are used by SAP for internal purpose
4. In the real time we dont create any maintenance views because the data should be
saved or modified in multiple tables which lead inconsistency
5. If we want save or modify the data, we have to use standard SAP transactions or
BAPIs
Data type
It helps in creating the user defined Data Elements, Structure and Table Types.
Structure
o Include structures
o Append structures
.include structure
.include structure is used include structure in our tables i.e. Z/Y tables.
.include structures are reusable.
.Append structure
TABLES PARAMETER:
In the methods, we dont have any option for specifying internal tables directly.
Whereas in function modules, we have an option by name TABLE where we can
specify the internal tables directly.
Tables are absolute in OOPS-ABAP.
Thats why this option is not available.
If we want to use tables parameters, then we need to create a table type in data
dictionary.
TYPES
It is a collection of user defined fields or own fields instead of All the fields from SAP Table.
[OR]
Search help:
It defines the search help (F4) for the fields of database table and helps in providing the
values for a user search queries.
Lock objects:
It is used to synchronize the same data by one user or multiple users. SAP provides
Three types of lock objects Read lock, write lock, enhanced lock.
1. Login to another Client 810 with same user name & password.
2. Open the Same table and display the data.
3. The above Data is displayed, that means there is No Security to the Data.
4. We have created the data in 800 Client, but it is visible in 800 & 810 also.
Since there is 200 Security.