SlideShare a Scribd company logo
1 of 40
Download to read offline
ABAP Dictionary
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:
–
–
–
–
–

Foreign key and primary key
SAP table types
Creating and maintaining tables - SE11
Indexes
Buffering

• Define structures and views
• Define search help
• Describe the data browser

Copyright © 2005 Accenture

2
What is a Data Dictionary?
•

•

•

A data dictionary is a systemindependent interface to a
database.
A data dictionary is a “virtual
database” containing metadata
(data about data).
A data dictionary provides tools
for data manipulation and data
processing.

Copyright © 2005 Accenture

3
Why a Data Dictionary?
•
•

A data dictionary facilitates the development of platform-independent
applications.
A data dictionary eliminates the need for programmers to be concerned
about specific storage locations, drive and directory names, etc.
ABAP
Program X

ABAP
Program X

ABAP Dictionary

ABAP Dictionary

Unix
Copyright © 2005 Accenture

SAP Database
(Oracle)

Windows
NT

SAP Database
(MS SQL Server)
4
ABAP Dictionary Functionality
ADMINISTRATION

• 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

Copyright © 2005 Accenture

5
ABAP Dictionary Transactions
•
•
•
•
•
•

SE80 - Repository Browser
SE15 - Repository Information System
SE16 - Data Browser
SE17 - General Table Display
SM30 - Maintain Table Views
SM31 - Table Maintenance

Copyright © 2005 Accenture

6
Basic Data Dictionary Objects

Table

Domain
uses

Data Element
uses

Field
Copyright © 2005 Accenture

7
Levels of Abstraction

Domain

Data Element

• Data type
• Number of characters
• Output length
• Value table

• Attributes inherited from domain
• Field labels

Table

Field
Copyright © 2005 Accenture

• Field name
• Primary key indicator
• Attributes inherited from data element

8
Two-Level Domain Concept

City
S_CITY

S_FROM_CIT
Departure
City

Copyright © 2005 Accenture

S_TO_CITY

Domain

Data
element

Destination
City

9
Domain

Copyright © 2005 Accenture

10
Specifying Value Ranges for a
Domain
Fixed Values Example:
Domain:

S_CLASS (Classes for a Flight Booking)

Values:

C
F
Y

(business class)
(first class)
(economy class)

Value Table Example:
Domain:
Value Table:

Copyright © 2005 Accenture

S_CARR_ID (Carrier ID)
SCARR

Table: SCARR
Carrier ID
AA
DL
LH
SA
UA

Name
American
Delta
Lufthansa
Singapore
United
11
Data Element

Attributes
inherited from
the domain

Copyright © 2005 Accenture

12
Interdependency of ABAP
Dictionary Objects
Tab.

From City
Tab.

S_FROM_CIT

City

S_CITY
S_TO_CITY
To City

Tab.

Tables

Copyright © 2005 Accenture

Data elements
"semantic
field description"

Domains
"technical
field description"
13
Table
TABLE
Airline Carriers
Table SCARR
Carrier ID

Rows (tuples)

Copyright © 2005 Accenture

Carrier Name

AA
DL
LH
UA
...

American Airlines
Delta
Lufthansa
United Airlines
...

Primary key

(Field) values

14
Relationships Between Tables:
Foreign Keys
Primary Key
PLANETYPE SEATSMAX

Check
Table

747-200
A310-200
757-300

CARGOMAX

200
211
301

20000
24000
17000

Table 1: Airplane Details Table SAPLANE

Foreign Key

Primary Key

Foreign
Key
Table

CARRID CONNID FLDATE
AA
UA

1234
5678

PRICE PLANETYPE SEATSOCC

03/22/1999 500
01/06/1999 600

747-200
A310-200

125
90

Table 2: Flight Table SFLIGHT
Copyright © 2005 Accenture

15
Check Table - System Default

- DOMAIN S_PLANE
Value table

SAPLANE
- Table SFLIGHT
- Field PLANETYPE

Check table

Copyright © 2005 Accenture

SAPLANE

System default

16
Cardinality
• Cardinality defines the type of
relationship between two tables.
• The cardinality of a foreign key
indicates how many dependent
records a record in a check
table may have.

Cardinality Types
1:1
1:C
1:N
1:CN

Copyright © 2005 Accenture

17
SAP Data

Master
Data

•
•
•
•

G/L Accounts
Vendors
Materials
Stock Locations

System
Data

Copyright © 2005 Accenture

•
•
•
•

Metadata
Programs
Documentation
System Settings

Configuration
Data

Transaction
Data

•
•
•
•

•
•
•
•

Currency Codes
Order Types
Payment Terms
Field Status Codes

Sales Orders
Purchase Orders
Journal Entries
Goods Receipts

18
SAP Table Types

Transparent
ABAP
Dictionary

Cluster
Pool

ABAP
Program

Copyright © 2005 Accenture

Internal

19
Table Definition

TRANSP table

Structure table

Create
transp. table

Create
int. table

Activate

Activate

Note: DB table
will be created
automatically!

Copyright © 2005 Accenture

20
Creating / Changing Tables

Copyright © 2005 Accenture

21
Technical Settings

Data class

 Master data
 Transaction data
 Organization & Customizing (System) data

Table category

 Number of data records in DB storage area

Buffering

 single
 generic (must specify number of key fields)
 full
 not buffered

Log data changes

Copyright © 2005 Accenture

22
Indexes
Index
ABAP Dictionary

T1 S1 S2 ...

Identific.
Unique
Desc

F1 F2 ...

T1_K

DB
T1
S1 S2 ... F1 F2 ...

Copyright © 2005 Accenture

T1_K
F2 S1 S2

23
Data Class
TS1 ... TSn

TB1 ... TBn

TSYS1 ... TSYSn

APPL0
(Master)

APPL1
(Transaction)

APPL2
(Organization &
Customizing)

TS1

....

TS1
TS1

....

....

TS2

TS2
TS2

TSn

TSn
TSn

DB

Copyright © 2005 Accenture

24
Size Categories
Dict Table

Selection

T1
T2
T3
T4
T5

Number of data records
in a storage area

0
1
2
3
4

0
1

Copyright © 2005 Accenture

TS1

3

TS1

= 2400K to 9800K
= 9800K to 39000K

4

TS1

= 610K to 2400K

2

DB

= 0 to 640K

= 39000K plus

TS1

25
Exercises

Exercise 1 - Create Basic ABAP Dictionary Objects, 60 minutes
Exercise 2 - Create Table Indexes, 20 minutes

Copyright © 2005 Accenture

26
Buffering
TABL

ABAP Dictionary

TABLP

Buffer: 100% and generic

T1

S1 S2 F1 ...

T3

T1

T2
T3

T2

S1 S2 F1 ...

G1 G2 S3 F1 ...

Buffer: partial
G1 G2 S3 ...

S1 S2 F1 ...

G1 G2 S3 F1 ...

No

1st access

100% generic
partial

Change number
of key fields

2

1st access
Yes

No
Yes

Generic
key
complete

Yes

Import record

SELECT
SINGLE
record exists
No

No

DB
T1
S1 S2 F1 ...

Copyright © 2005 Accenture

Yes

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

Copyright © 2005 Accenture

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
...

USF3 .....

...
US
...
...

Copyright © 2005 Accenture

29
APPEND Substructure
Database Field Sequence
FLD1 FLDX

FLD2

Table

ABAP Dictionary Sequence
FLD1

Field

ZTBL1
FLD1
TRANSP FLD2

FLD2

FLDX

Data Element
...
...

.APPEND ZAZTBL1
OR

Append contains
definition of field
FLDX

.APPEND CI_ZTBL1
Customizing Include
Copyright © 2005 Accenture

30
Views
FIELD A

FIELD C

FIELD D

FIELD F

VIEW 1

FIELD A FIELD B

TABLE 1
Copyright © 2005 Accenture

FIELD C

FIELD A FIELD D

FIELD E

FIELD F

TABLE 2
31
Search Help
The search path used the
last time is displayed

A

B

User chooses a
different search
path

C

User chooses F4
on field
The chosen search
path is displayed

A

B

C

Values are
returned
User selects row
Copyright © 2005 Accenture

Hit list is displayed
32
Search Help Fields

Copyright © 2005 Accenture

33
Exercise
Exercise 3 – Create an Elementary Search Help, 30 minutes

Copyright © 2005 Accenture

34
Data Browser

Tools
ABAP Workbench

Overview
Data Browser
(SE16)

Copyright © 2005 Accenture

35
User Parameters

Copyright © 2005 Accenture

36
Using the Browser

Copyright © 2005 Accenture

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)

Copyright © 2005 Accenture

....

Data Browser: Table SPFLI
Settings .... .... System Help
List format
Sort
User parameters
Choose Fields
Fields For Selection

- List table fields
- Flag the fields to
be used for data
selection
- Maximum 40
Affects the
selection screen

Fields to be
selected ...

Sort Sequence for
output list ...

- List table fields

Fields to be
used for data
selection ...

- List table fields

- Flag the fields to
be included in the
the output list

- Maximum 9 sort fields
- Flag fields with 1 to 9

Affects the
output list
38
Exercises
Exercise 4 - ABAP Dictionary Search, 30 minutes
Exercise 5 - View a Table with the Data Browser, 20 minutes

Copyright © 2005 Accenture

39
Questions & Answers

Any questions?

Copyright © 2005 Accenture

40

More Related Content

What's hot

e computer notes - Creating and managing tables
e computer notes -  Creating and managing tablese computer notes -  Creating and managing tables
e computer notes - Creating and managing tables
ecomputernotes
 
Using ddl statements to create and manage tables
Using ddl statements to create and manage tablesUsing ddl statements to create and manage tables
Using ddl statements to create and manage tables
Syed Zaid Irshad
 
Proc SQL in SAS Enterprise Guide 4.3
Proc SQL in SAS Enterprise Guide 4.3Proc SQL in SAS Enterprise Guide 4.3
Proc SQL in SAS Enterprise Guide 4.3
Mark Tabladillo
 

What's hot (18)

Muguki session on MapInfo Professional 11 and SQL Server 2008
Muguki session on MapInfo Professional 11 and SQL Server 2008Muguki session on MapInfo Professional 11 and SQL Server 2008
Muguki session on MapInfo Professional 11 and SQL Server 2008
 
Les03
Les03Les03
Les03
 
Ch10
Ch10Ch10
Ch10
 
Using Spectrum on Demand from MapInfo Pro
Using Spectrum on Demand from MapInfo ProUsing Spectrum on Demand from MapInfo Pro
Using Spectrum on Demand from MapInfo Pro
 
Reading Fixed And Varying Data
Reading Fixed And Varying DataReading Fixed And Varying Data
Reading Fixed And Varying Data
 
Sas Plots Graphs
Sas Plots GraphsSas Plots Graphs
Sas Plots Graphs
 
MARC your words!
MARC your words!MARC your words!
MARC your words!
 
MapInfo Professional 12.0 and SQL Server 2008
MapInfo Professional 12.0 and SQL Server 2008MapInfo Professional 12.0 and SQL Server 2008
MapInfo Professional 12.0 and SQL Server 2008
 
SAS Proc SQL
SAS Proc SQLSAS Proc SQL
SAS Proc SQL
 
The power of spatial SQL in MapInfo Professional
The power of spatial SQL in MapInfo ProfessionalThe power of spatial SQL in MapInfo Professional
The power of spatial SQL in MapInfo Professional
 
e computer notes - Creating and managing tables
e computer notes -  Creating and managing tablese computer notes -  Creating and managing tables
e computer notes - Creating and managing tables
 
scientific writing 01 - latex
scientific writing   01 - latexscientific writing   01 - latex
scientific writing 01 - latex
 
Using ddl statements to create and manage tables
Using ddl statements to create and manage tablesUsing ddl statements to create and manage tables
Using ddl statements to create and manage tables
 
SAS Functions
SAS FunctionsSAS Functions
SAS Functions
 
Latex
LatexLatex
Latex
 
SAS Access / SAS Connect
SAS Access / SAS ConnectSAS Access / SAS Connect
SAS Access / SAS Connect
 
Proc SQL in SAS Enterprise Guide 4.3
Proc SQL in SAS Enterprise Guide 4.3Proc SQL in SAS Enterprise Guide 4.3
Proc SQL in SAS Enterprise Guide 4.3
 
Exploring Advanced SQL Techniques Using Analytic Functions
Exploring Advanced SQL Techniques Using Analytic FunctionsExploring Advanced SQL Techniques Using Analytic Functions
Exploring Advanced SQL Techniques Using Analytic Functions
 

Viewers also liked (7)

Bi course content
Bi course contentBi course content
Bi course content
 
1 messages 7_am
1 messages 7_am1 messages 7_am
1 messages 7_am
 
Employee apprisal form
Employee apprisal formEmployee apprisal form
Employee apprisal form
 
Introduction to Project Management
Introduction to Project ManagementIntroduction to Project Management
Introduction to Project Management
 
Lesson Plan
Lesson PlanLesson Plan
Lesson Plan
 
Project Management Concepts (from PMBOK 5th Ed)
Project Management Concepts (from PMBOK 5th Ed)Project Management Concepts (from PMBOK 5th Ed)
Project Management Concepts (from PMBOK 5th Ed)
 
Infrastructure Project Manager
Infrastructure Project ManagerInfrastructure Project Manager
Infrastructure Project Manager
 

Similar to 169318090 0104abapdictionary-100831073625-phpapp02

0104 abap dictionary
0104 abap dictionary0104 abap dictionary
0104 abap dictionary
vkyecc1
 
Less07 schema
Less07 schemaLess07 schema
Less07 schema
Imran Ali
 
Track 2 session 4 db2 for z os optimizer- what’s new in db2 11 and exploiti...
Track 2 session 4   db2 for z os optimizer- what’s new in db2 11 and exploiti...Track 2 session 4   db2 for z os optimizer- what’s new in db2 11 and exploiti...
Track 2 session 4 db2 for z os optimizer- what’s new in db2 11 and exploiti...
IBMSystemzEvents
 

Similar to 169318090 0104abapdictionary-100831073625-phpapp02 (20)

0104 abap dictionary
0104 abap dictionary0104 abap dictionary
0104 abap dictionary
 
SAP ABAP data dictionary
SAP ABAP data dictionarySAP ABAP data dictionary
SAP ABAP data dictionary
 
Unit 3 - Transparent tables in the ABAP Dictionary
Unit 3 - Transparent tables in the ABAP DictionaryUnit 3 - Transparent tables in the ABAP Dictionary
Unit 3 - Transparent tables in the ABAP Dictionary
 
Database Performance
Database PerformanceDatabase Performance
Database Performance
 
Spark Sql and DataFrame
Spark Sql and DataFrameSpark Sql and DataFrame
Spark Sql and DataFrame
 
Understanding DB2 Optimizer
Understanding DB2 OptimizerUnderstanding DB2 Optimizer
Understanding DB2 Optimizer
 
Module 02 teradata basics
Module 02 teradata basicsModule 02 teradata basics
Module 02 teradata basics
 
Etl2
Etl2Etl2
Etl2
 
SQL
SQL SQL
SQL
 
SQL
SQLSQL
SQL
 
Oracle sql tutorial
Oracle sql tutorialOracle sql tutorial
Oracle sql tutorial
 
UNIT-3.pptx
UNIT-3.pptxUNIT-3.pptx
UNIT-3.pptx
 
122 sql for-beginners
122 sql for-beginners122 sql for-beginners
122 sql for-beginners
 
Intro.pptx
Intro.pptxIntro.pptx
Intro.pptx
 
Less07 schema
Less07 schemaLess07 schema
Less07 schema
 
Oracle APEX Interactive Grid Essentials
Oracle APEX Interactive Grid EssentialsOracle APEX Interactive Grid Essentials
Oracle APEX Interactive Grid Essentials
 
Informatica slides
Informatica slidesInformatica slides
Informatica slides
 
Track 2 session 4 db2 for z os optimizer- what’s new in db2 11 and exploiti...
Track 2 session 4   db2 for z os optimizer- what’s new in db2 11 and exploiti...Track 2 session 4   db2 for z os optimizer- what’s new in db2 11 and exploiti...
Track 2 session 4 db2 for z os optimizer- what’s new in db2 11 and exploiti...
 
Tuning and Optimizing U-SQL Queries (SQLPASS 2016)
Tuning and Optimizing U-SQL Queries (SQLPASS 2016)Tuning and Optimizing U-SQL Queries (SQLPASS 2016)
Tuning and Optimizing U-SQL Queries (SQLPASS 2016)
 
Unit 5-cad standards
Unit 5-cad standardsUnit 5-cad standards
Unit 5-cad standards
 

Recently uploaded

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 

Recently uploaded (20)

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 

169318090 0104abapdictionary-100831073625-phpapp02

  • 2. 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: – – – – – Foreign key and primary key SAP table types Creating and maintaining tables - SE11 Indexes Buffering • Define structures and views • Define search help • Describe the data browser Copyright © 2005 Accenture 2
  • 3. What is a Data Dictionary? • • • A data dictionary is a systemindependent interface to a database. A data dictionary is a “virtual database” containing metadata (data about data). A data dictionary provides tools for data manipulation and data processing. Copyright © 2005 Accenture 3
  • 4. Why a Data Dictionary? • • A data dictionary facilitates the development of platform-independent applications. A data dictionary eliminates the need for programmers to be concerned about specific storage locations, drive and directory names, etc. ABAP Program X ABAP Program X ABAP Dictionary ABAP Dictionary Unix Copyright © 2005 Accenture SAP Database (Oracle) Windows NT SAP Database (MS SQL Server) 4
  • 5. ABAP Dictionary Functionality ADMINISTRATION • 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 Copyright © 2005 Accenture 5
  • 6. ABAP Dictionary Transactions • • • • • • SE80 - Repository Browser SE15 - Repository Information System SE16 - Data Browser SE17 - General Table Display SM30 - Maintain Table Views SM31 - Table Maintenance Copyright © 2005 Accenture 6
  • 7. Basic Data Dictionary Objects Table Domain uses Data Element uses Field Copyright © 2005 Accenture 7
  • 8. Levels of Abstraction Domain Data Element • Data type • Number of characters • Output length • Value table • Attributes inherited from domain • Field labels Table Field Copyright © 2005 Accenture • Field name • Primary key indicator • Attributes inherited from data element 8
  • 9. Two-Level Domain Concept City S_CITY S_FROM_CIT Departure City Copyright © 2005 Accenture S_TO_CITY Domain Data element Destination City 9
  • 10. Domain Copyright © 2005 Accenture 10
  • 11. Specifying Value Ranges for a Domain Fixed Values Example: Domain: S_CLASS (Classes for a Flight Booking) Values: C F Y (business class) (first class) (economy class) Value Table Example: Domain: Value Table: Copyright © 2005 Accenture S_CARR_ID (Carrier ID) SCARR Table: SCARR Carrier ID AA DL LH SA UA Name American Delta Lufthansa Singapore United 11
  • 12. Data Element Attributes inherited from the domain Copyright © 2005 Accenture 12
  • 13. Interdependency of ABAP Dictionary Objects Tab. From City Tab. S_FROM_CIT City S_CITY S_TO_CITY To City Tab. Tables Copyright © 2005 Accenture Data elements "semantic field description" Domains "technical field description" 13
  • 14. Table TABLE Airline Carriers Table SCARR Carrier ID Rows (tuples) Copyright © 2005 Accenture Carrier Name AA DL LH UA ... American Airlines Delta Lufthansa United Airlines ... Primary key (Field) values 14
  • 15. Relationships Between Tables: Foreign Keys Primary Key PLANETYPE SEATSMAX Check Table 747-200 A310-200 757-300 CARGOMAX 200 211 301 20000 24000 17000 Table 1: Airplane Details Table SAPLANE Foreign Key Primary Key Foreign Key Table CARRID CONNID FLDATE AA UA 1234 5678 PRICE PLANETYPE SEATSOCC 03/22/1999 500 01/06/1999 600 747-200 A310-200 125 90 Table 2: Flight Table SFLIGHT Copyright © 2005 Accenture 15
  • 16. Check Table - System Default - DOMAIN S_PLANE Value table SAPLANE - Table SFLIGHT - Field PLANETYPE Check table Copyright © 2005 Accenture SAPLANE System default 16
  • 17. Cardinality • Cardinality defines the type of relationship between two tables. • The cardinality of a foreign key indicates how many dependent records a record in a check table may have. Cardinality Types 1:1 1:C 1:N 1:CN Copyright © 2005 Accenture 17
  • 18. SAP Data Master Data • • • • G/L Accounts Vendors Materials Stock Locations System Data Copyright © 2005 Accenture • • • • Metadata Programs Documentation System Settings Configuration Data Transaction Data • • • • • • • • Currency Codes Order Types Payment Terms Field Status Codes Sales Orders Purchase Orders Journal Entries Goods Receipts 18
  • 20. Table Definition TRANSP table Structure table Create transp. table Create int. table Activate Activate Note: DB table will be created automatically! Copyright © 2005 Accenture 20
  • 21. Creating / Changing Tables Copyright © 2005 Accenture 21
  • 22. Technical Settings Data class  Master data  Transaction data  Organization & Customizing (System) data Table category  Number of data records in DB storage area Buffering  single  generic (must specify number of key fields)  full  not buffered Log data changes Copyright © 2005 Accenture 22
  • 23. Indexes Index ABAP Dictionary T1 S1 S2 ... Identific. Unique Desc F1 F2 ... T1_K DB T1 S1 S2 ... F1 F2 ... Copyright © 2005 Accenture T1_K F2 S1 S2 23
  • 24. Data Class TS1 ... TSn TB1 ... TBn TSYS1 ... TSYSn APPL0 (Master) APPL1 (Transaction) APPL2 (Organization & Customizing) TS1 .... TS1 TS1 .... .... TS2 TS2 TS2 TSn TSn TSn DB Copyright © 2005 Accenture 24
  • 25. Size Categories Dict Table Selection T1 T2 T3 T4 T5 Number of data records in a storage area 0 1 2 3 4 0 1 Copyright © 2005 Accenture TS1 3 TS1 = 2400K to 9800K = 9800K to 39000K 4 TS1 = 610K to 2400K 2 DB = 0 to 640K = 39000K plus TS1 25
  • 26. Exercises Exercise 1 - Create Basic ABAP Dictionary Objects, 60 minutes Exercise 2 - Create Table Indexes, 20 minutes Copyright © 2005 Accenture 26
  • 27. Buffering TABL ABAP Dictionary TABLP Buffer: 100% and generic T1 S1 S2 F1 ... T3 T1 T2 T3 T2 S1 S2 F1 ... G1 G2 S3 F1 ... Buffer: partial G1 G2 S3 ... S1 S2 F1 ... G1 G2 S3 F1 ... No 1st access 100% generic partial Change number of key fields 2 1st access Yes No Yes Generic key complete Yes Import record SELECT SINGLE record exists No No DB T1 S1 S2 F1 ... Copyright © 2005 Accenture Yes T2 G1 G2 S3 F1 ... T3 G1 G2 S3 ... 27
  • 28. Logging DD Table T1 Change S1 S2 F1 F2 F3 ... Logging Manual DB T1 System profile Copyright © 2005 Accenture Log S1 S2 F2 F3 ... Field-related log records 28
  • 30. APPEND Substructure Database Field Sequence FLD1 FLDX FLD2 Table ABAP Dictionary Sequence FLD1 Field ZTBL1 FLD1 TRANSP FLD2 FLD2 FLDX Data Element ... ... .APPEND ZAZTBL1 OR Append contains definition of field FLDX .APPEND CI_ZTBL1 Customizing Include Copyright © 2005 Accenture 30
  • 31. Views FIELD A FIELD C FIELD D FIELD F VIEW 1 FIELD A FIELD B TABLE 1 Copyright © 2005 Accenture FIELD C FIELD A FIELD D FIELD E FIELD F TABLE 2 31
  • 32. Search Help The search path used the last time is displayed A B User chooses a different search path C User chooses F4 on field The chosen search path is displayed A B C Values are returned User selects row Copyright © 2005 Accenture Hit list is displayed 32
  • 33. Search Help Fields Copyright © 2005 Accenture 33
  • 34. Exercise Exercise 3 – Create an Elementary Search Help, 30 minutes Copyright © 2005 Accenture 34
  • 35. Data Browser Tools ABAP Workbench Overview Data Browser (SE16) Copyright © 2005 Accenture 35
  • 36. User Parameters Copyright © 2005 Accenture 36
  • 37. Using the Browser Copyright © 2005 Accenture 37
  • 38. 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) Copyright © 2005 Accenture .... Data Browser: Table SPFLI Settings .... .... System Help List format Sort User parameters Choose Fields Fields For Selection - List table fields - Flag the fields to be used for data selection - Maximum 40 Affects the selection screen Fields to be selected ... Sort Sequence for output list ... - List table fields Fields to be used for data selection ... - List table fields - Flag the fields to be included in the the output list - Maximum 9 sort fields - Flag fields with 1 to 9 Affects the output list 38
  • 39. Exercises Exercise 4 - ABAP Dictionary Search, 30 minutes Exercise 5 - View a Table with the Data Browser, 20 minutes Copyright © 2005 Accenture 39
  • 40. Questions & Answers Any questions? Copyright © 2005 Accenture 40