Академический Документы
Профессиональный Документы
Культура Документы
Module Objectives
Describe the basic functionality of the Data Dictionary, its
objects and related transactions
Define domain and data element and how they are related
Define a table and table concepts including:
ABAP
Program X
ABAP Dictionary
ABAP Dictionary
Unix
SAP Database
(Oracle)
Windows
NT
SAP Database
(MS SQL Server)
ABAP Dict
Objects
Where-used
lists
Relationships
Modification
analysis
ABAP Dict
Objects
Time Stamp
Validation
Entries in
DB Catalog
ACTIVATION
ANALYSIS
Records
Storage
ABAP Dictionary
Repository Info System
Documentation
INTEGRATION
Table
Domain
uses
Data Element
uses
Field
Copyright 2005 Accenture
Levels of Abstraction
Domain
Data Element
Data type
Number of characters
Output length
Value table
Table
Field
Field name
Primary key indicator
Attributes inherited from data element
City
Domain
S_CITY
S_FROM_CIT
Departure
City
S_TO_CITY
Data
element
Destination
City
Domain
10
Values:
C
F
Y
(business class)
(first class)
(economy class)
Table: SCARR
Carrier ID
AA
DL
LH
SA
UA
Name
American
Delta
Lufthansa
Singapore
United
11
Data Element
Attributes
inherited from
the domain
12
Interdependency of ABAP
Dictionary Objects
Tab.
From City
Tab.
S_FROM_CIT
City
S_CITY
S_TO_CITY
To City
Tab.
Tables
Data elements
"semantic
field description"
Domains
"technical
field description"
13
Table
TABLE
Airline Carriers
Table SCARR
Rows (tuples)
Carrier ID
Carrier Name
AA
DL
LH
UA
...
American Airlines
Delta
Lufthansa
United Airlines
...
Primary key
values
Copyright(Field)
2005
Accenture
14
Check
Table
747-200
A310-200
757-300
CARGOMAX
200
211
301
20000
24000
17000
Foreign Key
Primary Key
Foreign
Key
Table
1234
5678
03/22/1999 500
01/06/1999 600
747-200
A310-200
125
90
15
- DOMAIN S_PLANE
Value table
SAPLANE
- Table SFLIGHT
- Field PLANETYPE
Check table
SAPLANE
System default
16
Cardinality
Cardinality Types
1:1
1:C
1:N
1:CN
17
SAP Data
Master
Data
Transaction
Data
G/L Accounts
Vendors
Materials
Stock Locations
System
Data
Metadata
Programs
Documentation
System Settings
Configuration
Data
Currency Codes
Order Types
Payment Terms
Field Status Codes
Sales Orders
Purchase Orders
Journal Entries
Goods Receipts
18
Transparent
ABAP
Dictionary
Cluster
Pool
ABAP
Program
Internal
19
Table Definition
TRANSP table
Structure table
Create
transp. table
Create
int. table
Activate
Activate
Note: DB table
will be created
automatically!
20
21
Technical Settings
Data class
Master data
Transaction data
Organization & Customizing (System) data
Table category
Buffering
single
generic (must specify number of key fields)
full
not buffered
22
Indexes
Index
ABAP Dictionary
T1 S1 S2 ...
Identific.
Unique
Desc
F1 F2 ...
T1_K
DB
T1
T1_K
S1 S2 ... F1 F2 ...
F2 S1 S2
23
Data Class
TS1 ... TSn
APPL0
(Master)
APPL1
(Transaction)
TS1
....
TS2
TSn
TS1
....
TS2
TSn
TS1
....
TS2
TSn
DB
24
Size Categories
Dict Table
Selection
T1
T2
T3
T4
T5
0
1
2
3
4
DB
TS1
TS1
TS1
TS1
25
Exercises
26
Buffering
TABL
ABAP Dictionary
TABLP
T1
S1 S2 F1 ...
T2
G1 G2 S3 F1 ...
T3
S1 S2 F1 ...
T1
T3
T2
S1 S2 F1 ...
G1 G2 S3 ...
G1 G2 S3 F1 ...
No
1st access
100% generic
partial
Change number
of key fields
Buffer: partial
Yes
1st access
Yes
No
Yes
Generic
key
complete
Yes
SELECT
SINGLE
record exists
No
Import record
No
DB
T1
S1 S2 F1 ...
T2
G1 G2 S3 F1 ...
T3
G1 G2 S3 ...
27
Logging
DD
Table T1
Change
S1 S2 F1 F2 F3 ...
Logging
Manual
DB
T1
System profile
Log
S1 S2 F2 F3 ...
Field-related
log records
28
INCLUDE Substructure
US
USF1
USF2
Table
Field
Data element
T1
TRANSP
S1
S2
.INCLUDE
F1
...
...
...
US
...
...
T2
TRANSP
F1
.INCLUDE
F2
...
...
US
...
...
USF3 .....
29
APPEND Substructure
Database Field Sequence
FLD1 FLDX
FLD2
Table
FLD1
Field
ZTBL1
FLD1
TRANSP FLD2
FLD2
FLDX
Data Element
...
...
.APPEND ZAZTBL1
OR
Append contains
definition of field
FLDX
.APPEND CI_ZTBL1
Customizing Include
30
Views
FIELD A
FIELD C
FIELD D
FIELD F
VIEW 1
FIELD A FIELD B
TABLE 1
FIELD C
FIELD A FIELD D
FIELD E
FIELD F
TABLE 2
31
Search Help
The search path used the
last time is displayed
User chooses a
different search
path
User chooses F4
on field
The chosen search
path is displayed
Values are
returned
User selects row
32
33
Exercise
Exercise 3 Create an Elementary Search Help, 30 minutes
34
Data Browser
Tools
ABAP Workbench
Overview
Data Browser
(SE16)
35
User Parameters
36
37
Settings
....
....
Personal Settings
- Width of output list
- Maximum number of
entries to be selected
- Take into account
conversion exit
- Column headings can
be either:
. Field name, or
. Field text
(from data element)
....
Fields to be
used for data
selection ...
- List table fields
- Flag the fields to
be used for data
selection
- Maximum 40
Affects the
selection screen
Fields to be
selected ...
Affects the
output list
38
Exercises
Exercise 4 - ABAP Dictionary Search, 30 minutes
Exercise 5 - View a Table with the Data Browser, 20 minutes
39
Any questions?
40