SAP Abap DDIC Questions
SAP Abap DDIC Questions
SAP Abap DDIC Questions
Abap
DDIC ( Data Dictionary)
Questions
Sonu Jangir Abap Developer
How Many types of size categories and data classes are there?
Tables
Tables are defined in the ABAP Dictionary independently of the database.
Views
Views are logical views of more than one table.
Types
The structure of a type can be defined globally in ABAP programs.
Lock objects
These objects are used to synchronize access to the same data by more than one
user
Domains
Different fields having the same technical type can be combined in domains.
What are the Data Elements in Data Dictionary?
Ans: We use data elements to define the type of a table field, structure component
or the row type of a table type.
How many types of size categories and data classes are there?
Ans: There are five size categories (0-4) and 11 data classes only three of which are
appropriate for application tables:
APPL0- Master data (data frequently accessed but rarely updated).
APPL1- Transaction data (data that is changed frequently).
APPL2- Organizational data (customizing data that is entered when system is configured
and then rarely changed).
The other two types are:
1. USR
2. USR1 – Intended for customer’s own developments.
3.
What are control tables?
Ans: The values specified for the size category and data class are mapped to database-
specific values via control tables.
Q21. What is the max. no. Of structures that can be included in a table or structure.
Ans: Nine.
What are the two ways for restricting the value range for a domain?
Ans: By specifying fixed values.
By stipulating a value table.
Structures can contain data only during the run time of a program (T/F)
Ans: True.
The data of a view is not physically stored, but derived from one or more tables (t/f)
Ans: True.
What are the differences between a Database index and a match code?
Ans: Match code can contain fields from several tables whereas an index can contain fields
from only one table.
Match code objects can be built on transparent tables and pooled and cluster tables.
Can you delete data element, which is being used by table fields.
Ans: No.
What is a view?
Ans: A view is a logical view on one or more tables. A view on one or more tables i.e., the
data from a view is not actually physically
stored instead being derived from one or more tables.
Transaction Codes
SE54: Generate Table Maintenance Dialog
SE55: Table view maintenance DDIC call
SE56: Table view display DDIC call
SE57: Deletion of Table Maintenance
SM30: Maintenance Table Views:
Function group is the name to which the generated maintenance modules will belong to.
Generally Function Group name can be same as table name.
Table types:
A table type describes the structure and functional attributes of an internal table. A special
case is the ranges table types.
Generic buffering:
What is Logging?
Ans: Using the logging flag you can define whether changes to the data records of a table
are logged. If you switch on the logging, each change to an existing data record (with
UPDATE, DELETE) by the user or application program is recorded in the database in a log
table (DBTABPRT).
Tables
Domains
Data elements
Structures
As a reference table, a system table containing all the valid currencies is assigned or
any other table which contains a field with the currency key format. This field is
called as reference field.
The assignment of the field containing currency amounts to the reference field is
made at runtime. The value in the reference field determines the currency of the
amount.
What is the significance of Technical settings (specified while creating a
table in the data dictionary) ?
By specifying technical settings we can control how database tables are created in the
database.
The technical settings allows us to
optimize storage space requiremnets
table access behaviour
buffering required
changes to entries logged
What are the two ways for restricting the value range for a domain ?
Can we define our own Match Code ID’s for SAP Matchcodes ?
Yes, the numbers 0 to 9 are reserved for us to create our own Match Code IDs for a
SAP defined Matchcode object.
What is a View ?
A view is a logical view on one or more tables. A view on one or more tables i.e, the
Projection View
Projection views are used to suppress or mask certain fields in a table (projection),
thus minimizing the number of interfaces. This means that only the data that is
actually required is exchanged when the database is accessed.
A projection view can draw upon only one table. Selection conditions cannot be
specified for projection views.
1. Maintenance View
2. Database View
3. Projection View
4. Help View
5.
What Is A Data Class?
The Data class determines in which table space the table is stored when it is created
in the database.
What Are The Differences Between Transparent Tables, Pooled Tables &
Cluster Tables?
Differences between transparent, pooled and cluster tables are:
In case of transparent tables, the underlying database table will have the same name,
same number of fields and the fields will also have the same names as defined in
ABAP Dictionary whereas for pooled tables and cluster tables the underlying
database table will have different name, different number of fields and fields will
have different names from what has been defined in ABAP Dictionary.
Transparent tables can have one or more primary key Whereas Primary key of each
pooled table of a table pool need not be same whereas Primary key of each cluster
table of a table cluster should have at least one key in common.
Secondary indexes can be created for transparent tables, but for pooled and cluster
tables we cannot create any secondary index.
Transparent tables can be accessed via both Native and Open SQL whereas pooled
and cluster table can be accessed by Open SQL only.
Transparent tables are used to hold application data which includes both master data
as well as transaction data.
Pooled tables reduce the amount of database resources needed when many small
tables have to be opened at the same time.
Cluster tables are used when the tables have primary key in common and data in
these tables are all accessed simultaneously.
1. Transparent Table
2. Pooled Table
3. Cluster Table
4.
Can You Delete A Domain Which Is Being Used By Data Elements?
No
What Is Locking ?
When two users simultaneously attempt to access the same data record, this is
synchronised by a lock mechanism.
1. Database view can built over many tables whereas projection view can be built over a
single table only.
2. Database view can be updated if the view is built over a single table whereas in
projection view data can be updated.
3. In case of database view, data updates can use open SQL or native SQL whereas in
case of projection view, data updates must use open SQL.
4. Database view can be buffered whereas Projection view cannot be buffered.
5.
What Are The Relational Operations That Can Be Performed On View In
Sap?
There are three operations that can be performed on views in SAP: Join, Projection
and Selection.
The Projection Operation is used to narrow a view’s focus to certain fields in a table.
The Selection Operation is used to narrow a view’s focus to certain records in a table.
The Join Operation is used to combine information from multiple tables into a single
view.
What is the maximum number of match code Id’s that can be defined for
one Match code object ?
A match code Id is a one character ID that can be a letter or a number.
Can we define our own Match Code ID’s for SAP Matchcodes ?
Yes, the numbers 0 to 9 are reserved for us to create our own Match Code IDs for a
SAP defined Matchcode object.
What are the differences between a Database index and a match code ?
·Match Code can contain fields from severeal tables whereas an index can contain
fields from only one table.
·Match code objects can be built on transparent tables and pooled and cluster tables.
Can you delete data element which is being used by table fields .
No.
What is a View ?
A view is a logical view on one or more tables. A view on one or more tables i.e, the
data from a view is not
actually physically stored instead being derived from one or more tables.
What is Locking ?
When two users simultaneously attempt to access the same data record, this is
synchronised by a lock mechanism.