new batch day 1

Upload: kishore-dammavalam

Post on 03-Jun-2018

222 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/12/2019 new batch day 1

    1/33

  • 8/12/2019 new batch day 1

    2/33

    Ex:- Tally, Ms Office- It is a Software which is ready to use with out any customization.

    - Aplications :-----------------Ex:- SAP BW- It is a softeware which is customized as per the Client\User requirements.

    Application :- PL + DB + OS + CONCEPT-------------------------------------

    PL - To Design the Front End and Application LogicDB - To Design the BackendOS - It acts an InterfaceConcept - Billing of Super markets

    2 types of Applications:-------------------------1) OLTP (Online Transaction Processing)2) OLAP (Online Analytical Processing)================================================

    what do you mean by Business/Business Process/ System?-----------------------------------------------------

    - set of Business Activities / Transaction ----------------------------------When 2 or more parties (Entities) interacting with each other, Perform a

    Transactions like (Buying, Selling)

    What do you mean by Business/Business Process/System ?----------------------------------------------------

    - Set of Business Activities / Transactions (S/B)?-------------------------------------------------- When 2 or more parties(Entity) interact with each in the Business

    , They generate a Transaction.--------------------------------------------------- Entity?

    Any object which can perform work by itself or which we can use it to perform some work.---------------------------------------------------

    " Exsitance of Entity is not the Business, These entities should interact with each other to generate the transactions and set of these transactions is Business"

    - Master Data:- Detailed information about the Entities- Transaction data:- Data Representing a Transaction

    - Transaction Data is generated when ever we have a transaction performed in the business

    - Product----------pno pname price pclr pmsr------------------------------------P1 BOOK 5 WHITE EAP2 PEN 6 BLUE EA

    - vendor--------VNO VNAME VADD

  • 8/12/2019 new batch day 1

    3/33

    --------------------V1 ABC HYDV2 XYZ BAG

    - Customer-----------CNO CNMAE CADD CSAL----------------------------C1 RAMU HYD 10000C2 SATISH BAG 20000

    - Shop Owner------------SNO SNMAE---------------S1 TRNETRASROSDNKJ

    CNO PNO SNO P Q A--------------------------------------------C1 P1 S1 5 10 50

    Entity: (Noun)------Any object which can perform work by itself or which we can use it to perform some work.

    [* Existance of entity is not the Business, These entities should interact witheach other, to perform transactions and Set of the these Transactions is "Business" ]

    Master Data:-

    -------------Detailed Information about an Entity (Stronger Entity or Attribute of Stronger Entity)

    Transaction Data:-------------------Data representing particular Transaction.

    OLTP:-------* Online Transaction Processing* In OLTP applications, when ever we perform a transaction, we record the transaction into the Database and if there is a change in the transaction, we have to

    change the transaction in the database. we can even select the transactions from the database and show the same data as a Report.* In OLTP applications, Transaction data is generated.

    Ex:- Billing Application in Super market, SAP R/3, Railway Reservation Application, Banking Application, Hospital Management Application .

    OLAP:------* Online Analytical Processing

  • 8/12/2019 new batch day 1

    4/33

    * As part of OLAP tool, we extract all the Transaction data from different hetertogeneous OLTP sytems into OLAP and stag the Data and provide Analytical reports (Analytical Data)* Analytical Data - Data which can be used for analysis.* TD + OLAP ==> AD

    Ex:- SAP BW, Cognos

    OLTP V/s OLAP or Why OLAP or Why SAP BW:----------------1. When we do Reporting in OLTP it degrades the Performance of OLTP System, So we extract all the transaction data from different OLTP Systems and store data in OLAP and provide Analytical Data.

    2. In OLTP we dont store TD for Longer time, So in OLAP we store Historical Data fro 5 - 10 Yrs.

    3. In OLAP we can Integrate/Consolidate the data coming from different OLTP Systems in OLAP.

    4. In OLAP we can provide authorizations based on the Data, But in OLTP we provide authorizations based on the reports/Transactions. because of this if we do reporting in OLTP system it affects ROI(Return on Investment).

    5. In OLAP we can have more Analytical reports like one of the Top customer didnot buy one of your Top Product very easily.

    ****************************************************************

    Basics of Database:---------------------* In any Database we store the data in a structure format called : Table.

    * Table:---------* Set of rows and coloumns.

    * Coloumns are used to define the properties or attributes of an object or Entity.* Coloumns will define the Logical Definetion of an Entity.

    * Rows will define the physical existance of an entity.* Each row in a table is also called as Record.

    * Every table must have a Primary Key.* We Use Primary Key to Uniquiely identify each and every record in a table.

    * Every table will have 2 types of Coloumns- Key Coloumn (Part of Primary Key)- Non - Key Coloumn (Not part of Primary Key)

    * All Non - Key Coloumns act as Attributes / Properties of a Key Colomn.

    * Composite Key / Super Key:-----------------------------* When 2 or more coloumns of a table together act as the Primary key we call itas Composite Key / Super Key.

    * De-Normalized Table:

  • 8/12/2019 new batch day 1

    5/33

    ----------------------When we store all the data in a single big table, and we find the data being stored redundently/Duplicatly,we call it as De-Normalized Table.

    Dis - Advantages of De-Normalized Table:----------------------------------------1) Wasting Database Space2) Complexity will be high.

    To overcome with these problems we spilit the De-Normalized Tables into multiple Smaller tables and these tables will be connected with the Primary Key and Foreign Key. The process of doing this we call it as "NORMALIZATION".

    *Foreign Key:-------------* When a Primary of one Table takes part in the other table we call it as foreign Key.

    ****************************************************************

    Data Warehousing:-----------------* W.H.Immon* Data Warehousing is an Concept.

    * extracting Data from different heterogeneous OLTP applications and store the data and provide Analytical Reports for Decision Making Process.- The data what we extract should have the following Proper

    ties:

    1. T - Time Variant2. I - integrated3. N - Non - Volatile4. S - Subject Oriented

    * Data Warehousing is a part of Business Intelligence.

    Applications implementing the concept of DW:

    --------------------------------------------1) Cognos - R2) Informatica - ETL tool (E)3) Data Stag - M (Staging)4) Oracle (EDW) - M (Staging)5) Business Objects - R6) SAP BW - is an End-to-End Data Warehousing Solution (E,M,R).

    ****************************************************************

    Database Design in OLTP:--------------------------

    * 2 dimensional* Normalized

    * Entity Relationship Model---------------------------------------------How to Design ER Model?---------------------------------------------Step 1:---------Define the Business/Concept/Business Process/System:-

  • 8/12/2019 new batch day 1

    6/33

    ---------------------------------------------"XYZ Co is supermarket with 200 employess, having branches in different locations, we deal with different products,we have lot of customers generating the bills in different branhces."

    Step 2:---------Identify the Entities in the Business:----------------------------------------- By using Noun Phrase approach.

    1) employess2) branches3) Products4) Customer5) Bills

    Step 3:---------Draw the Entity diagrams:--------------------------

    Step 4:---------

    Convert each entity diagram into a Table:-------------------------------------------Step 5:--------Form the Intersection Entity/table:------------------------------------Step 6:--------Normalize all the tables (Entity Tables and Intersection entity table ).6.1) Indentify the K.c and N.K.c of a table.6.2) Whether all N.K.c are dependent/related on the Primary Key or not.

    * If N.K.C are not dependent on the Complete Primary Key then split theN.K.C into other table and connect Primary Key and Foreign Key.

    6.3) Understand the Relationship between N.K.c and K.c and draw the entity relationship diagrams.* if N.K.C is related to K.c as 1:M then split the N.K.C into other tabl

    e and connect with Primary Key and Foreign Key.* if N.K.C is related to K.c as 1:1 then store the N.K.C in the same tab

    le.* if N.K.C is related to K.c as M:M then split the N.K.C into other tabl

    e and connect with Primary Key and Foreign Key.---------------------------------------------Points to be noted:---------------------* Interscetion Entity:- Table which stores all the intersection data.* Stronger Entity :- are those which are directly connected to the Intersection

    Entity.* Attributes of Stronger Entity:- Tables which are connected to the stronger entity.

    ER Model:----------* Different entities(Tables) playing in the Business stored in different tablesconnected with PK and FK.* It will have Interscetion Entities, Stronger Entities,Attributes of Stronger Entities.

  • 8/12/2019 new batch day 1

    7/33

    * ER model is Normalized.

    ****************************************************************Star Schema:-------------- ----> Star schema is an MDM ( Multi Dimensional Model ) which contains Fact table / Transaction data Table at the center, surrounded by Dimension tables / Master Data Tables existing withinthe Cube. ---->These Dimension Tables / Master Data Tables are linked to the Fact table / Transaction data table with Primary Key Foreign Key Relationship.

    Limitations of Star Schema:------------------------------1) Master Data is not Reused, So master data is maintained Redundantly.2) Degraded performance.3) Limited Analysis.

    ****************************************************************Extended Star Schema:----------------------* Star Schema + SID technology ( Surrogate ID).* Fact table inside the cube connected to dimension tables and the dimension tables are connected to the SID tables which are connected to the Master data table

    s.* Master data tables are outside the info cube.* Every master data table will have its own SID table.* When we load the master data, the system would generate the SID's in the SID table.* we have three types of master data : ATTR, TEXT, HIER.* Max. no of dimesion tables : 16* Max. no of keyfigures in the fact table : 233.* Max. no of characteristics can be assigned to 1 dimension : 248.* Fact table contains - Dimension ID's and Key figures.* Any information which is stored as the attribute of another charcteristic will always give the PRESENT TRUTH.* Any information what is stored inside the cube or referenced to the fact table

    will always give the : FACT.* In order to design the optimized info cube we should always concentrate on reducing the dimension tables and at the same time reduce the number of records indimension table :-

    STANDARDS:------------* If the master data tables are related as M:M, we assign them to different dimension tables.* If the master data tables are related as 1:M or 1 : 1, we should assign them to same dimension table.

    - CS------- Programing Languages:-------------------------------? - ABAP/4

    - Database:-------------? To Store Data

  • 8/12/2019 new batch day 1

    8/33

    - OS:-----? Interface

    - Packages:--------------? Ms office, Tally

    - Applications:------------------ SW install & Customize as per the USer requirements and use it.- SAP BW

    - Applications:------------------- OLTP- OLAP

    - Business / Business Process .....?-----------------------------------------

    - Set of Transactions / Busines activities ...?------------------------------------------------------

    - When 2 or parties / Entities ...? interact with each, they generate a Transaction.

    - Any Object which can peform work by itsekf or we use it to perform some work, is an entity.

    - OLTP:---------- To process all the transactions in the business.- PL + DB + OS + Concept- Data representing a Transaction - Transaction Data.- Transcation data is generarted in OLTP applications.

    - OLAP:

    ----------- Online Analytical Processing.- PL + DB + OS + Concept- TD + Application --> AD- SAP BW -- - PL + DB + OS + Concept

    --- ABAP/4 + (Any Database) + Windows , Unix + Data Warehousing

    - SAP BW:------------- Extraction- Modelling- Reporting

    - Database Design in OLTP & SAP BW:---------------------------------------------

    - Basics of Database:-------------------------- Store data in for a Table. ...? (Set of Rows and Cloumns)

    - cOLUMNS - lOGHICAL dEFINETIONS / PROPERTIES

    - ROWS / RECORDS - Physical existance of an Entity.

  • 8/12/2019 new batch day 1

    9/33

    - Every Table will have a Primary Key.

    - Key Columns / Non- Key Columns

    - All Non - Key columns will act as Attributes / properties of Key column.

    - Composite Key - When 2 or more columns act as primary key in a table.

    - Foreign Key:- When a Primat key of table takes part into ohter table, ForeignKEy

    - De-Normalized Tables: table where we have data redundency.

    - Normalized Tables:- Tables wher there is no Redundency.

    - Normalization: The process of converting De-Normalized tables into Normalizedtables .

    - Database Design in OLTP:--------------------------------- Normalized- 2 Dimensinal

    - ER Model [Entity Relationship Model]---------------------------------------------- Identify the Entities and Undesatnd the Relationship between the entities. Then based on this we decide about the No of Databse Tables and Relationship between these tables.

    - Steps:---------1. Understand the Business Process / Business / Business Activities.

    2. Define the Business

    3. Indentify the Entities

    - Noun Phrase Approach- Customer- Product- Supplier- Branch- Sales Executives- Bills or Bill Transaction

    4. Entity Diagrams

    5. Understand the Relationship between these entities.1: m, M:m, 1:1

    6. Convert each entity into one Table.

    7. Creates a Join between these tables with P_key & F_key based on the Realtionship between entities.

    - Types of Entities:------------------------ Intersection Entity -

    - Stronger Entity

  • 8/12/2019 new batch day 1

    10/33

    - Attributes of Stronger Entity

    - Database Design in OLAP:---------------------------------MDM:- Multi dimensional model.* We can analyze data from multiple angles/dimensions by slicing and dicing theInfo Cube.* De-Normalized- MDM------------------------------------ Star Schema (or) Traditional Star Schema- Extended Star Schema (or) BW Star Schema- Snow Flake- Hybrid

    - Star Schema:------------------

    -Fact Table/Transaction data table at the center surrounded by Dimension tables/Master data tables connected with Primary Key - Foreign Key and all these tables existing inside the cube.

    * Fact Table?-------------* any data what is stored in this table cannot be changed.

    * Transaction data Table ?-------------------------* We store Transaction data in this table.

    * Master data Tables ?----------------------* These tables store Master data(Detailed information about an entity).

    * Dimension Tables ?

    ---------------------* Each Master data table is acting as a side of a cube.

    * Transaction Data Table / Fact Table will have 2 types of Coloumns:-

    a) Characteristics : on what basis we analyze a keyfigure.

    b) Keyfigures : What we are Analyzing.

    * Each Characteristics coloumn in the fact table/transaction data table will connect to one Dimension table/Master data Table.

    - Extended Star Schema or BW Star Schema----------------------------------------------------- Star Schema + SID technology (Surrogate ID)

    - Basic Data Model of Extended star schema:-----------------------------------------------------

    - Relation with the Tables:-------------------------------

  • 8/12/2019 new batch day 1

    11/33

    - Charecteristic & Key figures:------------------------------------- Key figures:- All Quntitative measures what we use to analyze the business subjects (KPI).

    - Characteristics:- All Business subjects what we analyze.

    - Master data tables and SID Tables:-------------------------------------------- 100- '100'

    * every characteristic will have an SID table

    * When ever we load the master data, SID's are generated.

    - Fact TAble and Dimension TAble:-----------------------------------------

    - Fact TAble:---------------- 255- 6--------

    - 249- 16-------233

    - Dimension table:------------------------ 255- 6--------249- 1-------

    248 - SID columns

    - DIM ID's-------------- When we load transaction data to the Info Cube, DIM ID's are genersted based on the sid'S.

    - CAn we load TD without MD?-----------------------------------Standard - Always load MD first and then load TD to improve loading performance.

    - Standards to Design an Info Cube:----------------------------------------- 1. Whe we have 2 characteristcs related as M:M, we will have to assign to different dimensions.

    - 2. Whe we have 2 characteristcs related as 1:M or 1:1, we will have to assignto same dimension.

    - 3. Modelling a Key figure:--------------------------------

  • 8/12/2019 new batch day 1

    12/33

    - If we Model the Keyfigure as an Attribute of a Characteristic - it gives Present Truth because the property of master data is Overwrite.

    - If we Model the Key figure inside the Fact Table - it gives Fact, Beacuse theproperty of Cube is Additive.

    - 4. Modelling a Characteristic:------------------------------------- If we Model a Characteristic as an Attribute of another charecteristuic - it gives Present truth, because the property of Master data is Overwrite.

    - If we Model a Characteristc by connecting the SID table to a Dimension Table - It gives Fact, Beacuse the property of Info Cube is Additive.

    Login Information:--------------------Client:---------* 000 and 066 - SAP Clients.* Active client is created by using a client copy of 000.* In SAP BW, we can only have one active client because of Client Independent tables (Integration).

    * 100, 076, 029, 222Username:------------

    * Transaction Codes:-----------------------RSA1 - Administrator Workbench

    Administrator Workbench************************- Command bar-------------

    - To Execute the T-codes- RSA1 - Administrator Workbench

    Adminstrator Workbench----------------------- Modelling------------ We create the BW objects like (Info Area, Info Objects, Info Cube, Info Source, ODS, Multi Provider, Info Set)- We do perform procedures to load data into these objects.

    - Monitoring------------

    - We monitor all the BW Objects- we do even monitor the Loading Process

    - Reporting Agent------------------- To Broadcast the Data

    - Transport Connection------------------------- Landscape

  • 8/12/2019 new batch day 1

    13/33

    - Documents------------ BDS

    - Business Content------------------

    - Standard Objects or Business Content Objects

    - Any Object delivered by SAP- Technical Name of the BC object will be prefixed with : 0- Versions-----------N - newA - activeM - ModifiedD - Delivered

    - All the BC objects will be in Delivered version, But if we need to use the objects they sholud be available in Active version, So in the Business Content Tab - we install the Business content objects ( Creating a Copy of the Deliverd version objects into Active Version)

    - Customized Objects- Translation:--------------We use this tab to translate the objects from one Language to another Language

    - When we translate an object only Description of an Object will changebut not the Technical Name

    - Meta Data:------------- Data about Data- Meta Data is Maintained in Meta Data Repository maintained by Meta Data Manage

    r

    - Modelling:-------------- T-code - RSA1

    - Info Area:--------------- we use this to organise the project.

  • 8/12/2019 new batch day 1

    14/33

    - similar to Folder in Windows

    - Info Object Catalogs:----------------------------- we use this to organise the project based on the type of Info object.

    INFO OBJECTS------------* Info Object is the basic unit to build any structure(Info Cube,ATTR table,Text Table) in SAP BW.

    * Info Object is Reusable to build any structure in SAP BW.

    * Each Coloumn in a table in OLTP system is a Field.

    * Each field in OLTP system will correspond to an Info Object in SAP BW.

    Types of Info Objects:----------------------a) Characteristics------------------All Descriptive Data, which we use it to analyse the keyfigures.

    Ex:- CNO,CREGIONB) Key Figures---------------ALL Quantitative measures, which we analyseEx- Price,Quantity,Revenue,Wages,Tax,Salaries,

    c) Unit Characteristics-----------------------When we want Info Object to hold diff. Types of Currencies or diff. Types of Measures(UOM).* 2 Unit Characteristics given by SAP as part of Business Content - 0CURRENCY, 0UNIT

    * If you want to create an Unit Characteristics it should be created with reference to either 0CURRENCY or 0UNIT.

    d) Time Characteristics-----------------------When we want to store time factor informationex:- date,month,week,year,year/month* we cannot create Time Characteristics but we can only use the existing Time Characteristics delivered by SAP as part of Business Content.Ex:- 0calday,0calmonth,0time

    - Info Objects:------------------ Characteristics - Business Subjects or Descriptive Matters

    - Time Characteristics

    - Unit Characteristics

  • 8/12/2019 new batch day 1

    15/33

    - Key Figures - Measureble Data

    - cHARARCTERISTIC:---------------------------/BIC/SZ_CNO

    - /BIC,0/SXXXXXX

    Z_CNO

    - /BIC/SZ_CNO

    - kEY FIGURE:-----------------

    - Unit Char:----------------

    - RSD1RSD2RSD3

    RSD4

    - Characteristic:-------------------- Data Element-------------------/BIC,0/OIXXXXXX

    Z_MNO

    /BIC/OIZ_MNO

    - ALPHA - Conversion Routine-------------------------------------conversion_exit_xxxxx_inputconversion_exit_xxxxx_output

    - sid tABLE:--------------/BIC,0/SXXXXXX

    Z_MNO

    /BIC/SZ_MNO

    - Key Figures:-----------------

    Key Figure Info Object:------------------------1. Key figure with Fixed Currency or Fixed unit2. Key figure with reference to Unit Characteristics(0currency, 0unit, etc..)

  • 8/12/2019 new batch day 1

    16/33

    - Unit Charractreristic:---------------------------- 0UNIT- 0CURRENCY

    /BI0/SUNIT

    - Time Characteristic:-------------------------- We can never create a Time Chracteristic

    - RSD1

    Creating Master Data Tables(ATTR/TEXT):----------------------------------------Step 1:--------Identify the no of Coloumns/Fields in the given Master data table in OLTP system

    .Step 2:---------Out of the given fileds/coloumns, Identify what fields should be maintained in Master Data ATTR and what fileds should be maintaines Master data TEXT table.

    Step 3:--------Create the Info Objects for all the fields required by the Master Data - ATTR table.

    Step 4:-

    ---------Build the Master Data - ATTR table by using all these info objects ( YC_MATNO, YC_MATNM,YC_MATGRP,YK_MATPRC,YU_MATUOM).

    Note :-------* we are supposed to build the Master Data - ATTR table for the info object corresponding to Primary Key field in the OLTP system.* /BI(C/0)/PXXXXXX

    Step 5:---------Create the master data - Text table to store the S,M,L description.

    Note :-------* /BI(C/0)/TXXXXXX* Importance of Language key Field in Text Table:- If we want to maintain the description in multiple languages, then we need to select the check box (Text language dependent) , then 'Langu key' field will be acting as part of primary key in the text table allowing us to maintain description in multiple languages.

  • 8/12/2019 new batch day 1

    17/33

  • 8/12/2019 new batch day 1

    18/33

    ZREGION - /BIC/ZREGION

    0CURRENCY -- CURRENCY

    Maintaining Master Data:--------------------------* eVERY TIME WE INSERT A RECORD INTO THE MASTER THE SYSTEM GENERATES AN SID IN THE SID TABLE.* SID Number is generated from number range object for sid's.* for changing the number range object of SID for any info Object - SNRO

    - How to Create Master Data - Attr table---------------------------------------------MNO,MNAME,MGRP,MTYPE,MPRC,MUOM-------------------------------------------

    - Master Data Tables:------------------------ Cno, Cname, Cadd, Cregion,Csal,S,M,L---------------------------------------------YPCNO

    SID Table :- /BIC/SYPCNO

    Text Table :- /BIC/TYPCNO

    Attr Table :- /BIC/PYPCNO

    - Loading Master Data ATTR and TEXT from Flat file:---------------------------------------------------------Pre-requisites:----------------- Source Data is available- Target Objects- Source System Connection - Flat file

    - Pre-requisites:-----------------1. Check the Flat files are in (.csv/.ASCII)2. attr TABLE AND TEXT TABLE SHOULD BE READY

    3. Source System connection between Flat file and SAP BW

    Types of SS------------1) SAP Automatic2) SAP Manual3) Myself(SAP BIW)4) File System Inteface (Flat Files)5) DB connect6) External system using BAPI

  • 8/12/2019 new batch day 1

    19/33

    7) UD connect (J2ee Applicaton Server)

    - Flat file Source System Connection-------------------------------------It configures IDoc's (Intermediate Document)

    - IDoc is the SAP standard for transfering the Data

    - Data Idoc's ( used to carry the Data )- Info IDoc's ( Used to carry the Information )

    Steps:--------1. Create the Application Component

    2. Create the Info Source - Direct Update

    - Info Source Defines Communication Structure

    * Info Source will define Communication Structure.* Communication Structure is specific to SAP BW.* Communication Structure is grouping of logically related info objects indicati

    ng in what (SEQUENCE) structure format the SAP BW takes in the data.* Info Source will be of 2 typesa) Direct Updateb) Flexible Update

    3) Create Source System connection between faltfile and SAP BW.

    Types:--------1) SAP Automatic - SAP2) SAP MAnual - SAP3) SAP BIW(Myself) - SAP BW to BW

    4) Flat file Interface - Flat file5) DB Connect - RDBMS ( oracle,sql server,msaccess,DB26) External System with BAPI - ETL Tools(Informatica,Tipco,Webmethodsd) (Hyperion)BI 7.0------1) UD Connect:- runs with J2EE application and can be used to any database.2) Web services:- To extract from XML files

    * when we craete the SS connection the system will configure IDoc's.* IDoc stands for Intermediate Douument and it is standard for transfering datain SAP environment.

    * 2 types of Idocsa) Data idoc - used to transfer Datab) Info Idoc - used to transfer information

    4. Assign the Data Source to Info Source

    - * Data Source will define Transfer structure and transfer rules* Transfer structure is specific to source system.* Transfer structure is grouping of fileds indicating in what structure format d

  • 8/12/2019 new batch day 1

    20/33

    ata is coming from the SS.* Mapping B/W Trnasfer Structure and Communication Structure - Trnafer Rules.

    - 4 types of Data Sources:--------------------------- ATTR- TEXT- HIER- TRANSACTION DATA

    4. Create the Info Package and schedule the load * Info package is specific to Data source

    Note :- Every Data Source will have an Info Package

    - How to Maintain the Data for Master Data ATTR - TEXT---------------------------------------------------------------

    - How to Install the Business Content Master Data Objects---------------------------------------------------------------- 0CUSTOMER

    - /BI0/SCUSTOMER

    /BI0/SCUSTOMER

    SID is always a NumericSID will be generated from the "NUMBER RANGE OBJECT - FOR SID'S".

    * How to change the Number range buffer for SID objects -- [ SNRO ]-------------------------------------------------------

    * How to Extract Master data (ATTR/ TEXT) from Flat files ?-------------------------------------------------------Pre-requsites :------------------1) Data Aqusition Layer / Source Systems :------------------------------------------- Create the Source system for Flat File

    - It configures IDoc's.[ Intermediate Document ]IDoc is the SAP standard for Transfering the Data.

    - It Configures 2 types of IDoc's:-1) DATA Idoc - Data2) INFO Idoc - Information

    2) Make the Flat file Ready.----------------------------Note :- SAP BW will accept only 2 types of Files

    1) CSV ( Comma Seperated Values )2) ASCII ( File with ASCII code )

  • 8/12/2019 new batch day 1

    21/33

    Steps:--------1. Create Application Component

    2. Create the Info Source.

    - Communication Structure

    - 2 types of Info Sourcesa) Direct Updateb) Flexible Update

    3. Assign Data Source to Info Source

    - Transfer Structure and Transfer Rules

    - 4 types of data Sourcea) ATTRb) TEXTc) HIERd) Transaction Data

    4) Create Info Package and run/Schedule the Loading Process.

    Topics:---------1) How to delete data in the Info Cube?2) different types of Update rules3) Error handling options - in the Info Package ( Update )

    4) Can we laod data into Multiple cubes from one Info Source? yes - How?5) Can we load data into one Info Cube from Multiple Info Sources? Yes - How?6) Difference between Transfer rules and Update rules?-------------------------------------------------------

    - How to Design an Info Cube:------------------------------------ Top - Down Approach- Bottom - Up Approach

    - Mixed Approach

    - Bottom - Up Approach-----------------------------Steps:--------1. Identify the Source Structure.

    2. Identify the Characteristics & key figures

  • 8/12/2019 new batch day 1

    22/33

    - Charateristics:--------------------- Bill Number- Cno- Pno- Date of Transaction (0calday)

    - Key figures:-----------------price- qty- discount- amount

    - Draw the Bubble Diagram.

    - Draw the Graphical Star schema view

    - Create the Info Cube in SAP BW:----------------------------------------- Info Area- IOC- Create the Info Objects - Requred to create the Info Cube- Create the Info Cube

    - nAMING CONVENTION TABLES:-----------------------------------------

    FACT TABLE - /BIC,0/FXXXXXX

    ZC_001 --- /BIC/FZC_001

    Dimension Tables:- /BIC,0/DXXXXXX1,2,3,4,5,6,7,8,9,A,B,C,D,P,T,U

    - How to data from Flat file(.CSV) to Info Cube:----------------------------------------------------------- Pre-Requistes:-------------------1. Info Cube Must Be Active.2. Flat file should be available.3. Flat file - Source System Connection

    Steps:--------1. Create the Application Component.

    2. Create the Info Source of type Flexible Update.

    3. Define the Communication Structure of the Info Source.

    4. Assign the Data Source to Info Source

    5. Customize the Transfer Structure as per the File Structure

    6. Activate the Transfer rules.

    7. Create the Update Rules to connect Info Cube and Info Source.

  • 8/12/2019 new batch day 1

    23/33

    8. Create the Info package and specify all the details of the file and run it.

    - How to load data from Flat file(.CSV) to Info Cube:---------------------------------------------------------------Pre-Requisites:------------------- Info Cube Should be active- Flat file (.CSV)- Source System Connection - Flat File---------------------------------------------Source System

    SourceSystem------------------ Types of Connectors / Adapters:------------------------------------------ SAP Connection Automatic- SAP Connection Manual- Myself Connection- Flat file Interface- DB Connect

    - UD Connect- External Applications with BAPI

    - Create the Flat file Interface Connection.":------------------------------------------------------ IDoc- Data IDoc- Info IDoc

    - Steps:----------1. Create the Application Component.

    2. Create the Info Source.- Communication Structure.- Direct Update- Flexible Update

    3. Assign the Data Source to Info Source : Transfer Structure

    - ATTR- TExT- HIER- Transaction Data

    4. Create the Transfer Rules and Activate. ..?

    5. Create the Update Rules to Connect Info Source & data Target (Info Cube)

    6. Create the Infopackage and schedule the load.

    - ETL Process:------------------ Extraction Transferring & Loading

  • 8/12/2019 new batch day 1

    24/33

    - Transfer Methods:------------------------ PSA & IDoc

    - IDoc:-------- Information through Info IDoc's- Data through Data IDoc's

    - PSA:-------- 2 dimensional table- Structure of PSA TAble:- 4 technial Keys (Request No, Data packet No, Record No, Partion No) + Transfer structure.- When we activate the transfer rules with PSA as the transfer method. it creates a PSA table.- PSA table Naming Convention :- /BIC/B000*

    - iNFORMATION THROUGH iNFO idOC'S- Data is transfered directly to PSA table using TRFC

    - PSA will have the replica of data coming from source

    - we can do editing in PSA. - Error handling- Delete data in PSA

    - Error Handling:-------------------1. Delete the Bad Request from the Info Cube.

    2. Edit the Data in PSA

    3. Reconstruct the Request

    Record 1 :Value '20101401 ' of characteristic 0DATE is not plausible

    - Processing / Loading Types:------------------------------------- PSA:--------

    - Deleting data in Info Cube:---------------------------------- 3 ways:------------

    1. Delete Data2. Delete data based on the Request3. Selective Deletion

    - Update Modes:-------------------- Full Update- Initialize Delta update- Delta Udate

  • 8/12/2019 new batch day 1

    25/33

    How to extract the Data Selectively FROM FLAT FILE?---------------------------------------------------

    G101 - G105

    G111 - G115

    G109* Data Slections with different info objects will work with AND.* Multiple Data Selections with in single info object will work with OR.

    - Data Selections:----------------------- when we want to extract the data selectively from the source, we use Data Selections.

    - Within in single field - OR, for multiple fields - AND

    - Exclude is not possible.

    - How to load the data from Flat file which is in the Application Server?------------------------------------------------------------------------------------------- AL11

    C:\usr\sap\PBR\DVEBMGS00\work\ZF_MNO_ATTR.csv

    - How to Schedule the Info Package in the BAckground?-------------------------------------------------------------------Note:- Client Workstation - Cannot be scheduled in the background

    - Scheduling Options- SM37---------Job Status:--------------- Active- Finished- Cancelled- Released- ready

    - cASE 2:

    ----------- Factory Calendar

    - Control-M- Redhood

    - Dynamic Selection of Flat file:-------------------------------------Billing_20040102.csv

  • 8/12/2019 new batch day 1

    26/33

    Billing_20040103.csv

    D:\usr\sap\ERP\DVEBMGS00\work\Billing_20040102.csv

    D:\usr\sap\ERP\DVEBMGS00\work\Billing_20040102.csv

    str1 = 'D:\usr\sap\ERP\DVEBMGS00\work\Billing_'.

    str2 = sy-datum.

    str3 = '.csv'.

    concatenate str1 str2 str3 into p_filename.

    - Data Target Tab:---------------------- Delete entire content

    - Deleting Overlapping Selections- Update Tab:----------------

    - Dynamic Data Selections:---------------------------------

    L_T_RANGE

    L_T_RANGE-IOBJNM = '0CALDAY'.L_T_RANGE-FIELDNAME = 'CALDAY'.L_T_RANGE-SIGN = 'I'.

    L_T_RANGE-OPT = 'EQ'.L_T_RANGE-LOW = SY-DATUM.

    2 0 0 4 0 1 0 1Y Y Y Y M M D D0 1 2 3 4 5 6 7

    SY-DATUM+0(4).

    L_T_RANGE-IOBJNM = '0CALYEAR'.

    L_T_RANGE-FIELDNAME = 'CALYEAR'.L_T_RANGE-SIGN = 'I'.L_T_RANGE-OPT = 'EQ'.L_T_RANGE-LOW = SY-DATUM+0(4).

    DATA V_PYEAR TYPE I.

    V_PYEAR = SY-DATUM+0(4).V_PYEAR = V_PYEAR - 1.

  • 8/12/2019 new batch day 1

    27/33

    L_T_RANGE-IOBJNM = '0CALYEAR'.L_T_RANGE-FIELDNAME = 'CALYEAR'.L_T_RANGE-SIGN = 'I'.L_T_RANGE-OPT = 'EQ'.L_T_RANGE-LOW = V_PYEAR.

    Types of Connectors / Providers----------------------------------i) SAP Connection Automaticii) SAP Connection Manuallyiii) SAP MySelf Connectioniv) Flat File Connectionv) UD Connectvi) DB Connectvii) Connection by using BAPI's [ Business Application Programming Interface ].

    *All the connection configurations are done by BASIS people.

    When ever you maintain Connection b/w SSys and SAP BW.Configures Intermediate Documents [IDOC's]

    We have two types of IDOC'si) Data IDOC's.---> carries records

    ii) Info IDOC's. ----> How many records are get carried.When ever you work with external SourcesysMake sure whether the connection is OK or NOT.

    InfoSource-------------Grouping of Logical related info objects in what way / what sequence thery are goin to communicate with the Source System****Infosource refers to Communication Structure.

    We have 2 types of Infosourcesi) Flexible Update

    ii) Direct Updatei) When ever our target is placed in INFOPROVIDER level we will go with Flexible Update. (eg: Infocube, ODS, Infoobject,.)ii) When ever our target is placed in INFOOBJECT level we will go with Direct Update. (eg: Infoobject)

    * If the Infoobject is at Infoprovider level we have flexibility to generate reports on that Infoobject.* If the infoobject is at Infoobject level, we can't do reporting on that infoobject.

    Data Source

    --------------Grouping of Fields in what sequence they are comming from Source system.*Data source refers to Transfer Structure.

    We have 4 types of Datasourcesi) ATTRii) TEXTiii) HIERiv) Transaction data

  • 8/12/2019 new batch day 1

    28/33

    - Transfer Rules & Update rules:----------------------------------------- Transfer Rules:---------------------- Mapping Between Communication Structure & Transfer Structure.- We use Transfer rules to perform any kind of transformation to the data coming from Source.

    - Types of Transfer Rules:-------------------------------1. Direct Mapping [Info Object]2. Constant3. Routine4. Formula

    1. Direct Mapping [Info Object]:

    --------------------------------------- Field --> Info Object

    2. Constant:---------------- Fixed value for all the records

    3. Formula:--------------

    4. Routine:--------------

    - Transfer Routine- TRAN_STRUCTURE

    - TRAN_STRUCTURE-/BIC/ZCNO

    - RESULT

    /BIC/ZQTY/BIC/ZPRC

    RESULT = .

    /BIC/Y_PRC/BIC/Y_QTY

    * Reference and Template------------------------

  • 8/12/2019 new batch day 1

    29/33

    If we have an info object 'A', when we create the Info object 'B' by taking 'A'as the reference, all the properties of 'A' are copied towards 'B' and we cannot change any properties to 'B', We cannot load any data to the info object 'B' but it refers to the data / data dictionary tables of main info object 'A'.

    If we have an info object 'A', when we create the Info object 'C' by taking 'A'as the Template, all the properties of 'A' are copied towards 'C' and we can change the properties of 'C', we can load the seperate master data for the info object 'C'.

    When do we go with reference:-----------------------------When we want to create the new master data object which is supposed to hold thedata which is already a sub set of some other Master data objects, we go for creating the Master data object with reference.

    Reference Example:------------------------- Sold to Party , Ship to Party, Bill to Party, Payer are created with reference to Customer.

    - Sender Cost Center and Reciever Cost Center are created with reference to Cost Center.

  • 8/12/2019 new batch day 1

    30/33

  • 8/12/2019 new batch day 1

    31/33

  • 8/12/2019 new batch day 1

    32/33

  • 8/12/2019 new batch day 1

    33/33