Top Banner
Data Modeling March-2005 Data Modeling | 2.15.02
35
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: data modelling1

Data Modeling

March-2005 Data Modeling | 2.15.02

Page 2: data modelling1

Objectives

• The participants will be able to :– Explain Data Modeling– Know uses of Data Modeling– Describe the Basic Components of a Data Model– Know Data Modeler/ABAP Dictionary Terminology– Know about Optionality and Cardinality– Use SAP Graphic Notation and SAP Text Notation– Explain Data Model Hierarchies and the SAP EDM– Link a data model to dictionary objects

March-2005 Data Modeling | 2.15.02 2

Page 3: data modelling1

What is Data Modeling?

March-2005 Data Modeling | 2.15.02 3

Data Dictionary

Real World

DataDataDictionaryDictionary

Data Model

Page 4: data modelling1

Uses of a Data Model

March-2005 Data Modeling | 2.15.02 4

Page 5: data modelling1

Basic Components of a Data Model

March-2005 Data Modeling | 2.15.02 5

EntityEntityCustomer

AttributeAttribute

30 S. 17th St.

Entity TypeEntity Type

Order

Page 6: data modelling1

Entity

March-2005 Data Modeling | 2.15.02 6

Customer

Order

Product

Page 7: data modelling1

Attribute

March-2005 Data Modeling | 2.15.02 7

J. ElkinsJ. Elkins

Customer30 S. 17th St.30 S. 17th St.30 S. 17th St.30 S. 17th St.

215-555-8000215-555-8000215-555-8000215-555-8000

Page 8: data modelling1

Entity Type

March-2005 Data Modeling | 2.15.02 8

Order

CustomerProduct

Page 9: data modelling1

Data Modeler / ABAP Dictionary Terminology

Data Modeler ABAP Dictionary

Customer: entity recordCustomer address: attribute fieldCustomers: entity type table

March-2005 Data Modeling | 2.15.02 9

Page 10: data modelling1

Relationships between Entities

March-2005 Data Modeling | 2.15.02 10

Customer

Order

Page 11: data modelling1

Cardinality

March-2005 Data Modeling | 2.15.02 11

One - to - Many

Many - to - ManyOne - to - One

Page 12: data modelling1

Many-to-Many Relationships

March-2005 Data Modeling | 2.15.02 12

Order

Order Lines

1 1 A26Order # Qty

Part #

1 3 C589

2 1 A26

Primary Key: Order Number

Primary Key: Product Number

Primary Keys: Order Number Product Number

Page 13: data modelling1

Optionality

March-2005 Data Modeling | 2.15.02 13

?

Customer Order

?Customer

Page 14: data modelling1

Referenced and Dependent Entity Types

March-2005 Data Modeling | 2.15.02 14

Dependent Entity Type

Referenced Entity Type

Customer ID Name Address . . .

Order ID Date of Order Customer ID . . .

Customer

Order

Referenced

Dependent

Page 15: data modelling1

SAP Graphic Notation

March-2005 Data Modeling | 2.15.02 15

Page 16: data modelling1

Example Using Graphic Notation

March-2005 Data Modeling | 2.15.02 16

Customers Orders

Page 17: data modelling1

Practice Using Graphic Notation I

March-2005 Data Modeling | 2.15.02 17

Professors

Students

Page 18: data modelling1

Practice Using Graphic Notation II

March-2005 Data Modeling | 2.15.02 18

Professors

Students

Page 19: data modelling1

Practice Using Graphic Notation III

March-2005 Data Modeling | 2.15.02 19

StudentsEnrolmentRecords

Courses

Page 20: data modelling1

SAP Graphic Notation with Text Notation

March-2005 Data Modeling | 2.15.02 20

1

C

N

CN

Page 21: data modelling1

SAP Text Notation

March-2005 Data Modeling | 2.15.02 21

1

C

N

CN

1

C

N

CN

1

C

1

C

n n : : m mn n : : m m

Page 22: data modelling1

Example Using Text Notation

March-2005 Data Modeling | 2.15.02 22

Customers Orders

1 CN:

Page 23: data modelling1

Practice Using Text Notation I

March-2005 Data Modeling | 2.15.02 23

Students

Professors

:

Page 24: data modelling1

Practice Using Text Notation II

March-2005 Data Modeling | 2.15.02 24

Students

Professors

:

Page 25: data modelling1

Practice Using Text Notation III

March-2005 Data Modeling | 2.15.02 25

StudentsEnrolmentRecords

Courses

:

Page 26: data modelling1

Category

March-2005 Data Modeling | 2.15.02 26

Referential

Hierarchical

Aggregating

?

Conditional-Referential

Specialisation

Page 27: data modelling1

Relationship Category: Hierarchical

March-2005 Data Modeling | 2.15.02 27

Department

Key:Department Number

Course

Key:Department Number

Course Number

Page 28: data modelling1

Relationship Category: Aggregating

March-2005 Data Modeling | 2.15.02 28

Student

Key:Student ID Number Enrollment Record

Key:Student ID Number

Course NumberCourse

Key:Course Number

Page 29: data modelling1

Relationship Category: Referential

March-2005 Data Modeling | 2.15.02 29

Department

Key: Department Number

Professor

Key:Professor Number

Page 30: data modelling1

Relationship Category: Conditional-Referential

March-2005 Data Modeling | 2.15.02 30

Department

Key: Department Number

Professor

Key:Professor Number

Page 31: data modelling1

Relationship Category: Specialization

March-2005 Data Modeling | 2.15.02 31

Business Customer

Key:ID Number

Customer

Key:ID Number

Page 32: data modelling1

Data Model Hierarchies and the SAP EDM

March-2005 Data Modeling | 2.15.02 32

GeneralAccounting

Chart ofAccounts Currency

FI

. . .

.

.

.

.

.

.

Page 33: data modelling1

Linking a Data Model to ABAP Dictionary Objects

March-2005 Data Modeling | 2.15.02 33

DataDataDictionaryDictionary

Data Model

Page 34: data modelling1

Summary•A data model is a graphical representation of the information that is to be stored and processed by a system.

•SAP comes with its own data model, called the Enterprise Data Model (EDM), that describes the data design of the SAP system.

•The basic components of a data model are Entities, Attributes & Entity types.

•The cardinality of a relationship describes the number of entities of one type that relate to entities of other types.

•The optionality of a relationship describes whether or not entities of one type must refer to entities of another type.

•Data models in SAP can be organised hierarchically.•The SAP Data Modeler is integrated with the ABAP Dictionary.

March-2005 Data Modeling | 2.15.02 34

Page 35: data modelling1

Questions

•What is a data model ?•What is SAP's data model called ?•What are the basic components of a data model ?

March-2005 Data Modeling | 2.15.02 35