Sunteți pe pagina 1din 30

CNG TY GII PHP PHN MM TI CHNH

SAP BusinessObjects Data Services

05/2014

www.fssc.com.vn

Committed Professional - Understanding

Page 1

CONTENT
1.
2.
3.
4.

Data Services Overview


Designer & Object Hierarchy
Workflows
Data flows

5.
6.
7.
8.
9.
10.

Source and Target Metadata (Datastore, File formats)


Overview of Variables and Parameters
Introduction to Scripting
Transform Overview
Change Data Capture Overview
Demo

www.fssc.com.vn

Committed Professional - Understanding

Page 2

DATA SERVICES OVERVIEW

SAP BusinessObjects Data Services combines enterprise-class data integration and


data quality solution.

Provides one development and management environment that allows you to


integrate, transform, improve and deliver data anywhere.

The main feature of Data Services is extracting, transforming and loading (ETL)
data from heterogeneous sources (databases or filies) into a target database or data
warehouse.

Transactional real time.

www.fssc.com.vn

Committed Professional - Understanding

Page 3

DATA SERVICES ARCHITECTURE

www.fssc.com.vn

Committed Professional - Understanding

Page 4

DATA SERVICES REPOSITORY


Data Services Repository
The Data Services Repository is a database that stored: User-Created and
Predefined System Objects, Source and target Metadata, Transformation Rules.
Each repository is stored on an RDBMS like MySQL, Oracle, Microsoft SQL
Server, Sybase and IBM DB2.
Each repository is associated with one or more Job Server.
Repository types
Local
Central (Share)

www.fssc.com.vn

Committed Professional - Understanding

Page 5

LOGGING INTO THE DESIGNER


Define a database for the local repository using Data Services Repository Manager.
Each repository must be associated with at least on Job Server. You can define or
edit Job Servers using Data Services Server Manager.

www.fssc.com.vn

Committed Professional - Understanding

Page 6

DESIGNER OVERVIEW

www.fssc.com.vn

Committed Professional - Understanding

Page 7

DESIGNER OBJECTS

www.fssc.com.vn

Committed Professional - Understanding

Page 8

PROJECT & JOB

Project

The highest level of organization.

Contains group of jobs.

Only one project can be open at the


time.

Job

Jobs are special workflows that you can


execute.

Two types: Batch and Real time.

The content of a job: Workflows,


Scripts, Conditionals, While loops,
Try/Catch blocks, Data flows.

www.fssc.com.vn

Committed Professional - Understanding

Page 9

WORKFLOW
What is workflow?

Workflow defines the process for executing data flows.

Run sequence or parallel.

Workflow control operations

Conditions (If else)

While loops

Try/Catch blocks

Scripts

www.fssc.com.vn

Committed Professional - Understanding

Page 10

WORKFLOW - EXAMPLES

www.fssc.com.vn

Committed Professional - Understanding

Page 11

EXECUTE WORKFLOW ONLY ONCE


Example

www.fssc.com.vn

Committed Professional - Understanding

Page 12

INTRODUCTION TO SCRIPTING
Scripts are single-use objects used to call functions and assign values to
variables in a workflow.
You can then assign the variable to a parameter that passes into a data flow.
A script can contain the following statements:

Function calls

If statements

While statements

Assignment statements

Operators

www.fssc.com.vn

Committed Professional - Understanding

Page 13

INTRODUCTION TO SCRIPTING
The basic syntax of the script:
Each statement ends in a ;
Variable names start with a $
String values are enclosed with a
Functions call parameters within ()
[] substitute the value of an expression
{} quote the value of the expression in
Commented line with a #
$G_StartDate = sql(demo_target, SELECT END_Date FROM
JOB_STATUS WHERE JOB_NAME = {$JobName});

www.fssc.com.vn

Committed Professional - Understanding

Page 14

DATA FLOW
What is a data flow?
Defines steps how sources data to target data.
Called by Workflow or Job.
Steps in a data flow:
Extracting sources.
Transforming data.
Loading target.

www.fssc.com.vn

Committed Professional - Understanding

Page 15

DATA FLOW OPERATION CODES


Data sets in data flows
Operation codes

www.fssc.com.vn

Committed Professional - Understanding

Page 16

Note: When data extracted from a source, all row in a data set are flagged as Normal.

SOURCE & TARGET TABLES


Source table is (table or file) which Data Services reads data.
Target table is (table or file) which Data Services loads data.

www.fssc.com.vn

Committed Professional - Understanding

Page 17

DATASTORE
Connection from Data Services to
source table or target table.
Allow to access data source, read and
write data to the table.
Data store types:
Database datastore.
Application datastore.
Adapter datastore.

www.fssc.com.vn

Committed Professional - Understanding

Page 18

FILE FORMAT

Delimited format

Fixed width format

SAP/R3 format

www.fssc.com.vn

Committed Professional - Understanding

Page 19

OVERVIEW OF VARIBLE & PARAMETER

Substitution Parameter: $$
Global Variable: $G_
Local Variable: $L_
Parameter: $P_

www.fssc.com.vn

Committed Professional - Understanding

Page 20

TRANSFORM

Data Integrator

Data Quality

Platform

www.fssc.com.vn

Committed Professional - Understanding

Page 21

TRANSFORM DATA INTEGRATOR

www.fssc.com.vn

Committed Professional - Understanding

Page 22

TRANSFORM DATA INTEGRATOR

www.fssc.com.vn

Committed Professional - Understanding

Page 23

TRANSFORM DATA QUALITY

www.fssc.com.vn

Committed Professional - Understanding

Page 24

TRANSFORM DATA QUALITY

www.fssc.com.vn

Committed Professional - Understanding

Page 25

TRANSFORM PLATFORM

www.fssc.com.vn

Committed Professional - Understanding

Page 26

DEMO TRANSFORM

Query

Case

Map Operation

Pivot

Reverse Pivot

Table comparison

Key generation

History Preserving

Validation

Date Generation

SQL Script (variable & parameter).

www.fssc.com.vn

Committed Professional - Understanding

Page 27

DEMO CHANGE DATA CAPTURE

SCD type 1.

SCD type 2 using History Preserving.

SCD type 2 using Table Comparison & Map Operation.

www.fssc.com.vn

Committed Professional - Understanding

Page 28

REFERENCES

SAP BusinessObjects Data Services Tutorial (PDF).

SAP BusinessObjects Data Services Designer Guide (PDF).

Data Services Technical Webinar (Video).

www.fssc.com.vn

Committed Professional - Understanding

Page 29

THE END

www.fssc.com.vn

Committed Professional - Understanding

Page 30

S-ar putea să vă placă și