Data Dictionary Overview

Slides:



Advertisements
Similar presentations
Relational Database and Data Modeling
Advertisements

Chapter 10: Designing Databases
0 UMN 2011 ERP Terapan SAP BASIS General Concept Session # 3.
Lecture 1 Introduction to the ABAP Workbench
Introduction to the ABAP Data Dictionary
University of Southern California Enterprise Wide Information Systems ABAP/ 4 Programming Language Instructor: Richard W. Vawter.
Concepts of Database Management Sixth Edition
WebDynpro for ABAP Short introduction.
1 Chapter 2 Reviewing Tables and Queries. 2 Chapter Objectives Identify the steps required to develop an Access application Specify the characteristics.
Management Information Systems MS Access 2003 By: Mr. Imdadullah Lecturer, Department of M.I.S. College of Business Administration, KSU.
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
Page 1 ISMT E-120 Desktop Applications for Managers Introduction to Microsoft Access.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Overview of the Database Development Process
IS 466 ADVANCED TOPICS IN INFORMATION SYSTEMS LECTURER : NOUF ALMUJALLY 3 – 10 – 2011 College Of Computer Science and Information, Information Systems.
Chapter 6: Foundations of Business Intelligence - Databases and Information Management Dr. Andrew P. Ciganek, Ph.D.
SAP ABAP DemoNawin's Training Acadamy1. Enterprise Wide Information Systems ABAP/ 4 Programming Language Mr. RG Nawin Krishna, Bsc(cs);Msc(psychology);MBA(HR);SAP(HCM/HR),
Copyright © 2007, Oracle. All rights reserved. Managing Concurrent Requests.
Lecture 7 Integrity & Veracity UFCE8K-15-M: Data Management.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
In the next step you will enter some data records into the table. This can be done easily using the ‘Data Browser’. The data browser can be accessed via.
1/26/2004TCSS545A Isabelle Bichindaritz1 Database Management Systems Design Methodology.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
MIS 3020 ABAP Programming Lecture 2 Elementary & User Defined Types Domains, Elements, Variables/Fields.
Chapter 4c, Database H Definition H Structure H Parts H Types.
ABAP Dictionary Introduction Tables in the ABAP Dictionary Performance in Table Access Consistency through Input Check Dependencies of ABAP Dictionary.
SAP DEVELOPMENT BASICS Bohuslav Tesar. TRAINING OVERVIEW Amazing life of ABAP developer ;) SAP introduction ABAP basics ABAP Reporting.
Introduction to ABAP/4 A dvanced B usiness A pplication P rogram – Release 4 Why Use ABAP? –Programming language of SAP –Main purpose is to provide additional.
SAP R/3 User Administration1. 2 User administration in a productive environment is an ongoing process of creating, deleting, changing, and monitoring.
CTS Change & Transport System. Introduction The Change and Transport System (CTS) is a tool that helps you to organize development projects in the ABAP.
Data Integrity & Indexes / Session 1/ 1 of 37 Session 1 Module 1: Introduction to Data Integrity Module 2: Introduction to Indexes.
Logical Database Design and the Rational Model
Microsoft Office Access 2010 Lab 1
Methodology Conceptual Databases Design
Working in the Forms Developer Environment
SAP ECC 6.0 DEVELOPMENT ABAP ABAP DICTIONARY & Advanced Editor Abap
Client/Server Databases and the Oracle 10g Relational Database
CHAPTER 7 DATABASE ACCESS THROUGH WEB
Methodology Conceptual Database Design
Software Specification Tools
SOFTWARE DESIGN AND ARCHITECTURE
Modern Systems Analysis and Design Third Edition
CIS 155 Table Relationship
GO! with Microsoft Access 2016
Lecture 2 The Relational Model
Chapter 4 Relational Databases
Database Management Systems
Microsoft Access 2003 Illustrated Complete
Databases.
RELATIONAL DATABASE MODEL
Databases and Information Management
Entity-Relationship Model and Diagrams (continued)
MANAGING DATA RESOURCES
Normalization Referential Integrity
Database Fundamentals
Introduction to Customizing Reports in SAP
Primary key Introduction Introduction: A primary key, also called a primary keyword, is a key in a relational database that is unique for each record.
Course: Module: Lesson # & Name Instructional Material 1 of 32 Lesson Delivery Mode: Lesson Duration: Document Name: 1. Professional Diploma in ERP Systems.
Databases and Information Management
Test Case Test case Describes an input Description and an expected output Description. Test case ID Section 1: Before execution Section 2: After execution.
The Database Environment
Accounting Information Systems 9th Edition
Database Design Hacettepe University
Methodology Conceptual Databases Design
King Saud University College of Business Administration Management Information Systems MS ACCESS.
The ultimate in data organization
Unit 8 Search Help 、 Unit 7 Views
Modern Systems Analysis and Design Third Edition
INTRODUCTION A Database system is basically a computer based record keeping system. The collection of data, usually referred to as the database, contains.
Presentation transcript:

Data Dictionary Overview SAP R/3 Application Demo SD MM PP QM PM HR CO AM PS WF IS FI ABAP/4 DW 勤業管理顧問公司 ARTHUR ANDERSEN BUSINESS CONSULTING 11/23/1998

What is a Data Dictionary? Which data? How is the data linked? What are the characteristics? Data Dictionary Description of data and their meaning Database The ABAP/4 Dictionary stores and manages data definitions. It ensures the central, non-redundant description of all data used in the system. All data entered into the ABAP/4 Dictionary is available anywhere in the system. Because of the activation mechanism, any change affects all related system components immediately. The Repository Infosystem allows you to analyze the Dictionary in many ways.

Integration of the Data Dictionary Development environment Application run time environment ABAP/4 Interpreter Dialog Control Interface Programs Screen Tools Data Modeler Painter Dictionary The SAP Data Dictionary is an integrated and active data dictionary, which means it is completely integrated in the SAP development environment. Each piece of dictionary information is entered only once and is then available any place in the system at any time. The active Data Dictionary automatically supplies all new or changed information, thus providing current runtime objects, data consistency, and data security. The integration of the ABAP/4 Dictionary in program processing stems from the interpretive manner in which the R/3 runtime environment works. The ABAP/4 processor does not use the original of an ABAP/4 program, rather it uses a runtime object that is generated based on the program text before it is executed for the first time. Runtime objects are automatically regenerated when a time stamp comparison between the object and the ABAP/4 Dictionary detects a difference. This combination of early binding and late binding ensures that the active integration of the Dictionary information does not affect efficiency. All performance-critical information is stored in the runtime objects (programs, screens, etc.). System functions provide the guarantee that this information is always up to date at runtime.

Tools: ABAP/4 Dictionary The ABAP/4 Dictionary is actively integrated in program execution The ABAP/4 Dictionary is integrated into all tools of the ABAP/4 Development Workbench Object Browser Dictionary ABAP/4 Editor Function Library Screen Painter Menu ABAP/4 Development Workbench Data base Data model The ABAP/4 Dictionary actively supports the development of new software and the maintenance of existing software components. Each piece of information is entered only once and is then available anywhere in the system. The R/3 runtime environment makes sure that only the current definitions of the ABAP/4 Dictionary are used. For example, if you add a value to the existing values of a domain, then the F4 help on all screens containing a field with this domain will show the additional value immediately. During the work on development projects, objects of the ABAP/4 Dictionary may be changed many times before they are activated and mad available to the system. This ensures data integrity, consistency and security.

Table Field Key 1 . Key 2 Key n F 1 F 2 F n Row Primary key Function fields Table A table is a two-dimensional matrix. It has a name and characteristics, such as the table type. A field has a name and characteristics, it may be a primary key field, for example. In addition, a field possesses semantic and technical characteristics. A table has at least one primary key field uniquely identifying on row in this table. The ABAP/4 Dictionary describes the logical structure of the objects in application development and their representation in structures of the underlying relational database. It provides a logical view of the application data and the data organization with the help of the underlying database system.

ABAP/4 Example: Accessing a Table REPORT BC430REP. TABLES: UFACH. ... SELECT * FROM UFACH. WRITE: / UFACH-FABNR, UFACH-FBNAM. ENDSELECT. A direct relationship exists between ABAP/4 Dictionary and ABAP/4 Development Workbench. You merely have to make the required tables (TABLES: <tabname>) known to an ABAP/4 program and all work areas are automatically initialized correctly. Any information important to the runtime environment, such as field length, field type, etc., are taken from the ABAP/4 Dictionary. 1

Basic Objects of the Dictionary Table Domain uses Data element Table field Tables, domains, and data elements are the basic objects to define data in the ABAP/4 Dictionary. The domain serves for the technical (such as field type and length), the data element for the semantic (such as short text) definition of a table field. A field is not a stand-alone object, rather it is table-dependent and can only be maintained within a table. The data element requires the existence of a domain. The domain can be defined without any reference to other Dictionary objects. A domain also contains the specifications of the value set, such as a value table, the external format, and fixed values. Data element and domain are objects of the two-level domain concept in the SAP system.

Two-Level Domain Concept Table SBOOK . . . . . . FORCURAM . . . . . . . SFLIGHT . . . . . . . . . . PRICE . . . . . . Data element S_F_CUR_PR S_PRICE Domain For example, the table fields FORCURAM (table SBOOK) and PRICE (table SFLIGHT) have the same domain S_PRICE. Differences in context are defined by using data element S_F_CUR_PR for field FORCURAM and data element S_PRICE for field PRICE. Both fields use the same domain because both FORCURAM and PRICE are currency fields and have the same technical characteristics. The two-level domain concept allows the definition and maintenance of technical field characteristics at domain level. A domain can pass its field characteristics to any number of fields, which means that to change the field characteristics only requires a change to the domain, not to the individual fields. The data element in turn describes the semantic characteristics of a field in context of the table, characteristics then, that have meaning only there and not in general (as the technical characteristics).

What is a Foreign Key? Primary key Foreign key table T1 Field 1 Check table T2 Field 5 Field 6 Field 7 Foreign key field You can define relationships between tables in the ABAP/4 Dictionary. These relationships are called foreign keys and must be defined explicitly at field level. Foreign keys are used mainly to ensure consistency of data. Input data is to be validated against existing data to avoid incorrect data (for example, assigning a printer that does not exist). A combination of table fields is called foreign key it this field combination is primary key of another table. A foreign key establishes the connection between two tables T1 and T2, by referring to the primary key of T2 in T1. To do this, the foreign key fields in T1 are assigned to the primary key fields of T2. The table to be checked is called foreign key table, T2 is called check table. Sometimes these are also called dependent table (foreign key table) and referenced table (check table). If a foreign key is defined between two tables, a record of the foreign key table refers to a record of the check table. Because a record is identified by its key, it is sufficient to refer to the primary key of the check table in the foreign key field when defining foreign keys.

Example: Inserting a Data Record 0001 0002 0003 000001 000002 00000012 00000001 00000006 00000005 ........... number description Major area Course Professor Check table UPROF Salary level 00000002 00000003 00000004 00000019 00000020 ...... C1 C3 C4 C2 ..... Foreign key field Foreign key relationship Insert OK ??? 000003 00000023 Foreign key table UKURS Field Professor number in table UKURS was defined as foreign key field. The related check table is table UPROF with the primary key field Professor number. When entering a data record in table UKURS, the input for field Professor number ist checked against all existing professor numbers in table UPROF. Question: Can you insert the above data record in table UKURS?

Transparent Tables Database - physical table definition Field 1 Field 2 Field 3 Field 4 ABAP/4 Dictionary logical table definition A transparent table is automatically created in the database during the activation in the ABAP/4 Dictionary. At the same time, the database- independent description of the table in the ABAP/4 Dictionary is translated into the language of the database system used. The database table has the same name as the table in the ABAP/4 Dictionary. The fields also have the same names in the database as in the ABAP/4 Dictionary. The data types in the ABAP/4 Dictionary are converted to the corresponding data types of the database system. Beginning with release 3.0, the field sequence in the ABAP/4 Dictionary can differ from that in the database. This allows you to insert new fields without having to convert the table in a physical reorganization. When adding new fields, the adjustment is done through changing the database catalog (ALTER TABLE). A new field is appended to the database table, independent of the field position in the ABAP/4 Dictionary.

Structures ABAP/4 Dictionary logical table definition Field 1 Field 2 Besides defining the tables residing in the database, you can also globally define the structure of data used for processing in programs or for transferring data between programs in the ABAP/4 Dictionary. Such a definition is called a structure. A structure does not have a corresponding object in the database. You define and activate a structure in the ABAP/4 Dictionary. It can then be accessed by ABAP/4 programs in a TABLES instruction, just like a table. While transparent tables store data permanently in the database, structures contain data only temporarily during a program runtime. Structures are mainly used to define data for interfaces of module pools or screens, as well as for the typing of parameters of reusable function modules or subprograms. The central definition of structures that may be used in different places in the system also makes it possible to change them centrally.

Views View Join Projection Selection SAP tables The method to provide task-oriented data views that is normal in a relational model can also be used in the R/3 system. You can define views in the Data Dictionary as virtual tables, which means, they do not contain data but rather provide needed data in table format from other tables contained in the Data Dictionary. The SAP view supports the relational operators JOIN, PROJEKTION, SELEKTION. Join defines the relationship of the base tables involved in the view. Projektion determines the fields of the base tables to be included in the view. The Selektion conditions supply the rows that are to appear in the view table.

THE END !