Vous êtes sur la page 1sur 27

Business Object Data Services

4/20/15
1

Agenda

What is Business Object Data services (BODS).


How to create Connection between BODS and SAP ECC / R/3 System.
Components used by BODS from the SAP ECC System.
Content used by BODS of SAP ECC system.
Types of data Extraction.
Target Data base.
BODS perform Parallel processing.
Data import methods.

data
data
data
data
data

via
via
via
via
via

Process Of Data Loading.

Import
Import
Import
Import
Import

Direct Load
Delta Load

Data Extraction Time .


Transport Mechanism.
Related links.

Microsoft Confidential

Tables.
Views and Functions.
Segments.
hierarchies.
Files.

Business Object Data services (BODS)

SAP provided the New Version of BODI i.e. BODS (Business Object Data Services).

SAP Business Object Data services XI 3.1 is the Latest version.

Business Object data services is more compatible to use the SAP ECC or SAP R/3 system as a source.

SAP Business Objects Data Services delivers a powerful, enterprise-class data integration and data
quality solution. It provides one development, run-time, and management environment that allows you
to integrate, transform, improve, and deliver data anywhere, at any frequency.

Business Objects Data Services application offers a number of pre-defined transformations and
functional objects that allow modeling of the ETL flows.

Business Objects Data Services Offers an Easy-to-Use Interface and Drag-and-Drop Development.

Microsoft Confidential

4/20/15 3

How to create connection

First of all, Install the BODS with all components like SAP ERP and R/3 ABAP interface, JobServe, Web
Administrator, Repository's.
Create the New Datastore for source system connection .
Datastores represent connections between Data Services and databases or applications.
To create connection from data base to source and Target, BODS requires name of Database,
password and user name which is depicted in below screen short .
Use SAPGUI parameters like hostname, system number, user etc. into the properties of a datastore .

Microsoft Confidential

4/20/15 4

Connection between BODS and SAP ECC / R/3 System

Business Object Data Services uses Data store for extracting data from SAP R/3 sources.
Data Services connects to the SAP ERP or R/3 application server through
remote function call (RFC).
Defining the name of SAP R/3 datastore.
In Datastore type Combo box select SAP R/3 Source. To specify the datastore connection path to the
database.
Use SAPGUI information to create the BODS datastore to representing the SAP system .
Fill exactly the same values for username, password, hostname, etc. that have mentioned in the
SAPGUI Interface.
In R/3 application server field, type the name of the remote SAP R/3 application computer (host) to
which Data Services connects.
Enter the user name and password for the SAP system.
Now Business objects Data Services(BODS) create connection with SAP R/3 database.

Microsoft Confidential

Component required for SAP ECC connection

We Need to Mention the path of SAP R/3 application server.

RFCs should be configured on the management console .

The SAP ERP or R/3 application server executes the ABAP code.
SAP ERP or R/3 server transfers the data directly to the Local directory.

Microsoft Confidential

4/20/15 6

Components uses by BODS

BODS can use, Datastore, Tables ,Functions, hierarchies and Views as a source of SAP ECC System.
BODS imports the Datastore, Tables , Functions, hierarchies and View by using there Name.
We Imports Datastore ,Tables , Functions, hierarchies and Views into Data Services using an SAP R/3
datastore connection.

Microsoft Confidential

Types of data Extraction

Business Object Data Integrator uses Datastore to Extract data and in turn Datastore uses ODBC
connection to create link between Source database and BODI .
Datastore can create connection from different database like
( IBM DB2, Informix, Microsoft SQL Server, Oracle, Sybase and Teradata databases )
BODI extract s data in Table Format and File Format .
File format should be FLAT FILE,XLS FILE,XML FILE.

Microsoft Confidential

4/20/15 8

Target Data base (Destination)

To store data in target data base, BODI uses Datastore ODBC connection .
Data Integrator pushes down data in Table format or File Format.
BODI perform only INSERT and UPDATE on the target.

Microsoft Confidential

9
4/20/15
4/20/15 9

Content used by BODS of SAP ECC

Microsoft Confidential

10

4/20/15 10

4/20/15

Parallel processing in BODS

BODS extraction supports parallel data process.

BODS can extract the data from multiple tables or views at the same time.

BODS performs the Bulk load and Delta load in parallel .

Data Services have High availability and use parallel processing to deliver high data
throughput and scalability

When Data Services jobs are executed, the Job Server starts Data Services
engine processes to perform data extraction, transformation, and movement.
Data Services engine processes use parallel processing.

Microsoft Confidential

Import data via Table and View

Directly click on Datastores tab.


Click the plus sign (+) next to the datastore that contains the different template
Click the plus sign (+) next to Template Tables.
Right-click a template table to convert and select Import Table.
BODS import the Tables and Views by using there Name.
Same process are use to Import Functions also.

Microsoft Confidential

4/20/15
12

Importing Extractors into the Datastore

Extractors internally are something completely different, but it is look and feel very much like SAP
tables.
Datastore has a new node for Extractors.
Click the plus sign (+) next to the datastore that contains the different template.
Click the plus sign (+) next to Template Extractors that get a list of all Extractors .
The other difference for Delta Extractors is the filter condition cannot be dynamically set by a query
of a dataflow.
In Extractor Instance does not need to use the delta in BODS but then the filtering should happen
already inside the SAP system.

Microsoft Confidential

4/20/15
13

Read data from R3 hierarchies

BODS can also extract the data from R3 Hierarchies.


Extract the data from Hierarchies at the three columns LEVEL_1,_2 and LEVEL_3.
Joining table with Hierarchies without any difficulty .

Microsoft Confidential

4/20/15
4/20/15 14

Read data from Files


Specify a directory on the SAP server. where the data files should be written by the ABAP.
When extracting data via ABAP, still the fastest method is to let the ABAP write the data
into a flat file and BODS reads it then .
The ABAP creates the file on the SAP server and BODS is installed on the DS server. So we
need either to copy the file from one machine to the other or setup a shared drive.
Transport method for download the file
Direct Download :- The data is sent via the GUI Download ABAP function
Shared Directory :-The jobserver can access the data file from the same location as the
ABAP wrote it .
FTP :- DI downloads the file via a ftp client.
Custom Transfer :- You have a program of your own to be used.

Microsoft Confidential

4/20/15
4/20/15 15

Process Of Load Data


We can Load data in two ways

Direct Load

Delta Load

Microsoft Confidential

4/20/15 16

Direct Load
Fetch the data from source and Load same into the target

Directly Map the


source and target
column and no need to
define any condition in
where clause.

Microsoft Confidential

4/20/15 17

Delta Load

Fetch the data from source and then compare the data set with the target data set and load the
new/changed insertions in the target. In delta load we filter data through Where clause.
Safely identify the rows that got changed in the source system. There could be a last_changed_date,
or any other date, then we have to consider just these rows for deltas andcan ignore all the others.
Whenever a change in the source system is made, a date column is updated .
In Delta Load, BODS receive all change records one by one from source system and save its into BODS
internal table after that use bulk load to store the data into target table.
Lets take an Example Suppose source Sap ECC system have 1 lakh change records then these change
records are fetched one by one into BODS internal table and after load gets completed , BODS uses
the Bulk load technique to store the data into target data base table.

Microsoft Confidential

4/20/15 18

Delta Load

At the time of Job execution, BODS creates the tables internally.

At every point of time during execution BODS uses the internal tables to store the
data.

These internal tables are permanent and have very complex naming conventions so
it is quite tough to find out the specific table.

BODS internal table is just the replica of the target data .

Internal tables need to be deleted by the DBA after the load is completed or after 45 days in order to free the occupied space .

Microsoft Confidential

4/20/15 19

Delta Load
The WHERE clause is used to extract only those records that fulfill a specified criterion.
SAP ECC Source Table
BODS Internal Table
SQL Data base ,Target system

Load one by one records


into internal table from SAP
source

Use Bulk Load to load data


into target table(SQL Table)
from BODS internal table.

Directly Map the source


and target column and
define the where clause
condition like start date
and end date.

Microsoft Confidential

4/20/15 20

Delta Load

Identify the status of new added records .It may be newly inserted records, Updated records,
deleted records or Normal records.
Use the Map_Operation, Table_Comparison or History_Preserving transform according to the
requirements. Its allows conversions between data manipulation operations.
Compares two data sets and produces the difference between them as a data set with
rows flagged as INSERT or UPDATE.

Take the action on input


data according to the
OP_CODE

Microsoft Confidential

4/20/15 21

Compares two data sets and


produces the difference
between source and target.

Microsoft Confidential

4/20/15 22

It is totally different from PSA.


To identify the status of records, BODS transforms internally set the OpCode .
OpCode shouldn't be identified externally but it is set internally.
At the time of Job execution, BODS transforms set the OpCode which are lost upon the
completion of the process.
In the below example, we have compared two datasets and identified the difference between
them i.e. the change data set have one new column OpCode saying updated.

Microsoft Confidential

4/20/15 23

Data Extraction Time

Data Extraction time totally depends on Source Data base table Size. If table is too large
then it will take more time and if table is small then it will take less time but total
execution time can be defined only after testing data flow between source and target.

.
Microsoft Confidential

4/20/15 24

Transport Mechanism
At the time of BODS installation, we need to create 2-3 repositories on the same Job server.
Complete the development phase and Testing phase like Dev, SIT, UAT into one repository .
After testing phase, import the respective jobs into different repository that contains the Live
Jobs.
All Live Jobs would be executed on the same repository.
All Repositories have different user name and password.

Microsoft Confidential

4/20/15 25

Related Links

For More Information follow the below mention Link.

https://wiki.sdn.sap.com/wiki/display/BOBJ/Importing+Extractors+into+the+Datastore
http://
help.sap.com/businessobject/product_guides/boexir32SP1/en/xi321_ds_designer_en.pdf

Microsoft Confidential

4/20/15 26

Microsoft Confidential

4/20/15 27

Vous aimerez peut-être aussi