data storage in sap

Upload: sudu22

Post on 02-Mar-2016

12 views

Category:

Documents


0 download

DESCRIPTION

SAP

TRANSCRIPT

  • Prof. Dr.-Ing. Alexander Kolb

    Data Storage in SAP R/3

    An Introduction

    CSU IST 331

    Prof. Dr.-Ing. Alexander R. R. Kolb

    Prof. Dr.-Ing. Alexander Kolb2

    The Company SAP

    Introduction

    What does SAP stand for ?

    Systeme, Anwendungen und Produkte in der Datenverarbeitung

    Systems, Applications and Products in Data Processing

    Some Figures

    revenues in 2003 : 7.0 billion 79,800 installations more than 23,400 companies run SAP 30,945 SAP employees (June 2004) 12 million users in 120+ countries more than 1,500 partners more than 60,000 students work with SAP software in business

    management classes in over 500 institutions globally

  • Prof. Dr.-Ing. Alexander Kolb3

    The System R/3

    Introduction

    HumanResources

    IndustrySolutions

    Accounting

    Workflow

    Logistics

    R/3R/3Client / Server

    ABAP/4

    SD

    MM

    PP

    QM

    PM

    HR

    FI

    CO

    AM

    PS

    WF

    IS

    Controlling

    AssetMgmt

    Project-system

    Workflow

    IndustrySolutionsHuman

    Resources

    Sales & Distrbution

    Productionplaning

    QualittsMgmt

    Financials

    ProductMaint.

    Material-Mgmt.

    Prof. Dr.-Ing. Alexander Kolb4

    Characteristics of an ERP-System

    Introduction

    All combined in one

    ERP (Enterprise Resource Planning): Suite of integrated corporate wide software applications that drives manufacturing, financial, distribution, human resources, and other business functions in real time.

    Important: One integrated system with real time information. If information is not accurate, the system is not reliable.

  • Prof. Dr.-Ing. Alexander Kolb

    Hands On 1

    (You know the table)

    Prof. Dr.-Ing. Alexander Kolb6

    There are (always) several ways to get somewhere

    Access to Database Tables Ver. 1 (1/2)

    The Way to the Data 1

    enter the transaction codeSE16 and press Enter

    enter the transaction codeSE16 and press Enter

    double click in theEasy Access Menudouble click in theEasy Access Menu

    enter a tablename (e.g. MARA) and press Enter

    enter a tablename (e.g. MARA) and press Enter

  • Prof. Dr.-Ing. Alexander Kolb7

    You dont know the table name search for it !

    Excursion : The Search Button (1/3)

    The Way to the Data 1

    Press the . search buttonPress the .

    search button

    Search in theInformation System

    Search in theInformation System

    Prof. Dr.-Ing. Alexander Kolb8

    Excursion : The Search Button (2/3)

    The Way to the Data 1

    SAP (always) gives you a lot of choices

    e.g. enter*Material*e.g. enter*Material*

    The expressions are case sensitive

    The results for *material* are notthe same as for *Material* !!!

    The expressions are case sensitive

    The results for *material* are notthe same as for *Material* !!!

    Keep the max. of hits in mind !Keep the max. of hits in mind !

  • Prof. Dr.-Ing. Alexander Kolb9

    Excursion : The Search Button (3/3)

    The Way to the Data 1

    Well, now it is easy to find or ?

    Prof. Dr.-Ing. Alexander Kolb10

    Access to Database Tables Ver. 1 (2/2)

    The Way to the Data 1

    From the Table to the Data

    (define a filter and)execute with

    (define a filter and)execute with

  • Prof. Dr.-Ing. Alexander Kolb

    Hands On 2

    (You know nearly nothing)

    Welcome to the club ;-))

    Prof. Dr.-Ing. Alexander Kolb12

    Access to Database Tables Ver. 2 (1/4)

    The Way to the Data 2

    From the Entry Field to the Technical Info

    place the cursor in theentry field and press F1place the cursor in theentry field and press F1

    selectTechnical Information

    selectTechnical Information

  • Prof. Dr.-Ing. Alexander Kolb13

    Access to Database Tables Ver. 2 (2/4)

    The Way to the Data 2

    From the Technical Info to the Table / Structure Components

    double-click

    double-click

    change registerchange register

    Prof. Dr.-Ing. Alexander Kolb14

    Access to Database Tables Ver. 2 (3/4)

    The Way to the Data 2

    From the Components to the Table

    display content

    (or SAP-Menue: Utilities -> Table Contens -> Display)

    display content

    (or SAP-Menue: Utilities -> Table Contens -> Display)

    Ann.: Furtherinteresting displayswith (Object List)

    and (Graphic)

    Ann.: Furtherinteresting displayswith (Object List)

    and (Graphic)

    double-click

    double-click

  • Prof. Dr.-Ing. Alexander Kolb15

    Access to Database Tables Ver. 2 (4/4)

    The Way to the Data 2

    From the Table to the Data

    (define a filter and)execute with

    (define a filter and)execute with

    Prof. Dr.-Ing. Alexander Kolb

    The Link between Application and Database

    (What Academics love -> some Theory)

  • Prof. Dr.-Ing. Alexander Kolb17

    Database-Interface

    The Link between Application and Database

    How does it work ?

    native SQL Module

    native SQL Module

    Database specific LayerDatabase specific Layer

    Open SQL ModuleOpen SQL Module

    Open SQLnative SQL

    Relational Database

    Database-Interface

    Programms of theR/3-System

    ABAP DictionaryABAP Dictionary

    Business ApplicationsBusiness Applications

    Prof. Dr.-Ing. Alexander Kolb18

    ABAP Dictionary (1/2)

    The Link between Application and Database

    Central and redundant free information storage for all application-and systemdata in the R/3-system

    Description of the logical structure of e.g.- Tables,- Views,- Dataelements,- Domains,- Structures

    and their definition in the structures of the underlying relational database.

    Avoidance of redundancy(All components of the runtime environment, e.g. the businessapplications or the database interface, fetch their information aboutthese objects directly from the ABAP Dictionary.)

    An active Dictionary that is completely integrated in the ABAP Workbench.

    Its a Repository - what is it good for ?

  • Prof. Dr.-Ing. Alexander Kolb19

    ABAP Dictionary (2/2)

    The Link between Application and Database

    An Overview

    - ABAP Programs- Dokumentation- Online Help

    Dynpros

    Databasetables

    Classes

    ABAP Dictionary

    Prof. Dr.-Ing. Alexander Kolb20

    Data-Elements, Domains, Data-Types

    The Link between Application and Database

    wage-payment

    accountno.

    month amount

    bookings

    bookingno.

    amount

    account

    accountno.

    balanceTables

    +Fields

    booking amount[$]

    balance[$]

    amount with 2 decimals [$]

    Data-Element(semantic domain)

    Domain(technical domain)

    SAP Basis-Data-Typ

    Database Basis-Data-Typ

    CURR (12 digits, 2 decimals)

    DEC

    Complex but logical

  • Prof. Dr.-Ing. Alexander Kolb21

    Data(base)organisation in the R/3-System

    The Link between Application and Database

    real world

    SAP-Reference-model

    (conceptual level)

    ABAP/4Dictionary

    (logical level)

    RelationalDatabase

    (physical level )

    Entitytyp 12127Vendor-Invoice-Posting

    Database-Tables Tabeble RFBLG(physical table)

    View ENT2127Vendor-Invoice-Posting

    Table BSEG (clustertable)Accounting DocumentSegment

    Accounting

    Logistics

    HR

    Example:

    Views

    normalised tables

    Prof. Dr.-Ing. Alexander Kolb22

    Tabletypes in the R/3-Repository

    The Link between Application and Database

    Transparent Tables

    1:1 relation > one logical table matches one database table businessdata

    39,047 transparent tables in SAP R/3 4.7 (Enterprise)

  • Prof. Dr.-Ing. Alexander Kolb23

    Tabletypes in the R/3-Repository

    The Link between Application and Database

    Pool-Tables

    Several SAP-tables with the same pattern resolve in one databasetable

    In the database every tupel has the information to which SAP-tableit belongs

    2,022 pool tables in SAP R/3 4.7 (Enterprise)

    Prof. Dr.-Ing. Alexander Kolb24

    Tabletypes in the R/3-Repository

    The Link between Application and Database

    Cluster-Tabellen

    Several tables that belong together logically are stored in onedatabase table (objectwise saving)

    prerequisite: datarecords belonging together (tupel of the SAP-tables) can be identified via the same primary key

    75 cluster tables in SAP R/3 4.7 (Enterprise)

  • Prof. Dr.-Ing. Alexander Kolb25

    Tabletypes in the R/3-Repository

    The Link between Application and Database

    Internal Tables

    Datastructure, that is only available during the runtime of a program

    Can be linked to several programs Similar to a view

    Prof. Dr.-Ing. Alexander Kolb

    Hands On 3

    (A look to the SAP-Repository)

    a bit deep-diving ;-))

  • Prof. Dr.-Ing. Alexander Kolb27

    First Step into the SAP-Repository

    The Way to the Data 3

    Lets get into IT

    enter the transaction codeSE84 and press Enter

    enter the transaction codeSE84 and press Enter

    double click in theEasy Access Menudouble click in theEasy Access Menu

    Prof. Dr.-Ing. Alexander Kolb28

    A Look at the Data Models (1/6)

    The Way to the Data 3

    Chose one out of 26,959 Data Models* !

    e.g. enter *order* and execute

    e.g. enter *order* and execute

    * for R/3 4.7 (Enterprise)

  • Prof. Dr.-Ing. Alexander Kolb29

    A Look at the Data Models (2/6)

    The Way to the Data 3

    Only 125 Data Models containing order

    double clickdouble click

    Prof. Dr.-Ing. Alexander Kolb30

    A Look at the Data Models (3/6)

    The Way to the Data 3

    Rather boring, but a good starting point

    have a look at the graphics

    have a look at the graphics

    have a look at the hierarchy

    have a look at the hierarchy

  • Prof. Dr.-Ing. Alexander Kolb31

    A Look at the Data Models (4/6)

    The Way to the Data 3

    23 Representations (Entity Types) belonging to a Sales Order

    Prof. Dr.-Ing. Alexander Kolb32

    A Look at the Data Models (5/6)

    The Way to the Data 3

    And here is the graphical version ;-)

    Select an entity typeand press DictionarySelect an entity typeand press Dictionary

  • Prof. Dr.-Ing. Alexander Kolb33

    A Look at the Data Models (6/6)

    The Way to the Data 3

    You should recognize some of this !

    place the cursur in the field of a tablean press the DataBrowser button

    place the cursur in the field of a tablean press the DataBrowser button

    run the Report viarun the Report via

    Prof. Dr.-Ing. Alexander Kolb34

    A Look at the Entity Types (1/6)

    The Way to the Data 3

    Chose one out of 4,622 Entity Types* !

    e.g. enter *order* and execute

    e.g. enter *order* and execute

    * for R/3 4.7 (Enterprise)

  • Prof. Dr.-Ing. Alexander Kolb35

    A Look at the Entity Types (2/6)

    The Way to the Data 3

    Over 200 Entity Types containing order

    double clickdouble click

    Prof. Dr.-Ing. Alexander Kolb36

    A Look at the Entity Types (3/6)

    The Way to the Data 3

    Again rather boring, but a good starting point

    have a look at the dictionary

    have a look at the dictionary

    have a look at the relations

    have a look at the relations

    have a look at the where usedhave a look at the where used

  • Prof. Dr.-Ing. Alexander Kolb37

    A Look at the Entity Types (4/6)

    The Way to the Data 3

    The incoming relationships with their cardinality

    try a double click :-)try a double click :-)

    what does C : CN stand for ?

    what does C : CN stand for ?

    Prof. Dr.-Ing. Alexander Kolb38

    A Look at the Entity Types (5/6)

    The Way to the Data 3

    The Dictionary (you should know this !)

  • Prof. Dr.-Ing. Alexander Kolb39

    A Look at the Entity Types (6/6)

    The Way to the Data 3

    Where is this Entity used ?

    Prof. Dr.-Ing. Alexander Kolb

    Thats IT

    I hope it was a bit interesting and you learndsomething you can utilize in the future