Академический Документы
Профессиональный Документы
Культура Документы
Data Dictionary
We will learn about…
• is a system independent
interface to the database
• is a virtual database ( data
about data)
• provides data for data
manipulation and data
processing
• Also called as DDIC and ABAP
Dictionary
Data Dictionary Objects
SE16
• Data Element
• Domain
• Tables
• Structures
• Views
Elementary Data Types
Type Explanation
C Text (Character)
N Numeric text
D Date (DDMMYYYY)
T Time (HHMMSS)
X Hexadecimal
I Integer
P Packed Number
F Floating point number
Domain
• A Domain describes the technical structure of a field that is its size and
its data types.
• Domains are attached to Data Elements
• Fields which refer to the same domain (with the assigned data
elements), are also changed when the domain is changed. This ensures
that the fields are consistent
• Defines a value range which describes the valid data values for all the
fields which refer to this domain
Table MARA
CLNT
9
MATNR
Data Element
Domain
Creating a Domain
A domain can be part of several data A Data Element can point to only one
elements domain
Used to define data elements, restrict Used to define fields of tables and
values (using value range, value table, screens
etc)
A Holistic view
Domain
Tables
• Types of Tables
Transparent
ABAP
Dictionary Cluster
Pool
ABAP Internal
Program
Tables Contd…
Creating a Transparent Table – Step 1 of 6
Enter
Enterthe
theName
Nameof ofthe
the
table (should begin
table (should begin
with
with“Z”
“Z”or
or“Y”)
“Y”)
Press
Pressthe
theCreate
CreateButton
Button
Creating a Transparent Table – Step 2 of 6
After
Aftermaking
makingall
allentries,
entries,
Press
Press the “Fields”Tab
the “Fields” Tab
After
Aftermaking
makingall
allentries,
entries,
Press the “Technical
Press the “Technical
Settings”
Settings”Button
Button
After
Aftermaking
makingall
allentries,
entries,
Press the Save Button.
Press the Save Button.
Once
OnceTechnical
TechnicalSettings
Settings
are save, Press the
are save, Press the
“Back”
“Back”Button
Button(F3)
(F3)
Creating a Transparent Table – Step 5 of 6
Save,
Save,Check
Checkandand
Activate
Activate the Table.After
the Table. After
that Press the “Indexes”
that Press the “Indexes”
Button
Buttonononthe
the
Application
ApplicationToolbar
Toolbar
Creating a Transparent Table – Step 6 of 6
Steps to create an index
After
Afterentering
enteringthe
theIndex
Index
Fields and other
Fields and other
parameters,
parameters,save
saveand
and
activate
activate the index,Z01
the index, Z01
SAP Transparent Tables
• Foreign Keys
– Uses
• Maintain data integrity
• Provide help texts
• Create aggregate dictionary objects
– Prerequisites
• The foreign key text field and primary key of the check table must
share the same domain
• A value table must exist for that domain
Tables Contd…
• Cardinality
– Cardinality defines the type of Cardinality Types
relationship between two tables
– The cardinality of a foreign key 1:1
indicates how many dependent
records a record in a check
1:C
table may have
1:N
1 : CN
System fields
• G/L Accounts
Master • Vendors
• Materials
Data • Stock Locations
• Metadata
System • Programs
• Documentation
Data • System Settings
• Sales Orders
Transaction • Purchase Orders
• Journal Entries
Data • Goods Receipts
• Currency Codes
Configuration • Order Types
• Payment Terms
Data • Field Status Codes
Structures