Professional Documents
Culture Documents
Step by Step Procedure To Extract Data From R3 To BI 7.0 Using Generic DataSource PDF
Step by Step Procedure To Extract Data From R3 To BI 7.0 Using Generic DataSource PDF
Applies to:
SAP BI 7.0. For more information, visit the EDW homepage.
Summary
This article gives a detail procedure for a full load generic extraction from R/3 to BI using a Database View. It
also describes the creation of BI objects like InfoObjects, DTP, Transformations, Setting up rules in
transformation and also includes the steps to install Objects from BI Content.
Author Bio
Jerry Jerome is working as SAP Technology Consultant with Applexus Software Solutions (P) Ltd. He has
experience in SAP ABAP and SAP BI.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 1
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
Table of Contents
Steps in R/3 ........................................................................................................................................................ 3
Step 1: Creating a View .................................................................................................................................. 3
Step 2: Creating Generic DataSource ............................................................................................................ 6
Step 3: Testing Generic DataSource .............................................................................................................. 8
Steps in BI side ................................................................................................................................................... 9
Step 1: Selecting Source System ................................................................................................................... 9
Step 2: Replicate Metadata ............................................................................................................................. 9
Step 3: Creating InfoPackage and uploading data to PSA ........................................................................... 11
Step 4: Installing InfoObjects from BI Content .............................................................................................. 13
Step 5: Creating InfoArea.............................................................................................................................. 15
Step 6: Creating DSO ................................................................................................................................... 16
Step 7: Creating Transformation ................................................................................................................... 18
Step 8: Creating Transformation rules using routines (ABAP Coding) ......................................................... 19
Step 9: Creating DTP (Data Transfer Process) ............................................................................................ 21
Step 10: View contents of DSO and move data from New to Active table ................................................... 24
Related Content ................................................................................................................................................ 27
Disclaimer and Liability Notice .......................................................................................................................... 28
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 2
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
Steps in R/3
Step 1: Creating a View
There are three options to create generic DataSource. They are :-
a. View/Table
b. SAP Query
c. Function Module
Here I am dealing with creating generic DataSource based on a view/table. So in R/3 system take the tcode
se11 and type the name of the view to create. Click on Create button. The name of view is ZBI_EKPO.
Note: Only transparent tables or database views can be used to create generic extractors in View/Table.
Among the four options select Database View.
In the database view select the tab Table/Join Conditions. Give the name of the table in the Tables section.
Write EKPO in the tables section.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 3
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
Select the tab View/Fields and click Table Fields button to select the fields of the table which we need.
Select the checkboxes of the fields which we want to include in our view. In our view we are going to include
EBELN (Purchasing Document Number), EBELP (Purchasing Document Item), MATNR (Material Number),
MENGE (Purchase Order Quantity) and MEINS (Purchase Order Unit of Measure).
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 4
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
Select the fields and click on the Copy button. Then the fields will be copied to the view. After it is
transferred click on the Activate button to activate it.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 5
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
Data is going to be fetched from EKPO table which deals with purchasing documents. So select MM as
application component. In the area for View/Table give the name of the view which was created in se11.
Click on Save button. When the DataSource is saved an extract structure is created for our DataSource
which is shown in the figure given below.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 6
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
Double click on the extract structure. Extract structure is shown in the figure below. It is exactly the same as
the view.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 7
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
RSA6 is the tcode used to check whether a DataSource is available for replication or not. Go to tcode RSA6
and check whether DataSource is available under the application component SAP r/3->MM. In the figure
given below DataSource ZJJ_DS_EKPO is available and thus it is available for replication.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 8
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
Steps in BI side
Step 1: Selecting Source System
Take RSA1 tcode. Click on DataSource section present in the left side panel under Modeling section.
Select appropriate source system. Click on the button Choose Source System. Select source system as
R/3.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 9
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
It asks for options for the version of DataSource. That is whether we need it in 3.x version or as (RSDS)
DataSource. We have to select rsds DataSource. If the version is rsds option then the object will be available
in BI7.0 otherwise it will be available only in 3.x version.
It may take some time to replicate the DataSource to BI. When replication is completes DataSource is
available under the Application Component Materials Management.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 10
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
In the update tab of InfoPackage only Full Update option is there because delta update mode was not
selected when the DataSource was created in r/3 side. In the section for InfoPackage click on Start button
which is under Schedule tab. Since its a full upload it extracts all records from EKPO table in r/3.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 11
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
When the process is over right click on the DataSource and select the option Manage.
In the next screen select the request and click F5 or the icon called PSA maintenance.
In the next screen select the first row showing the number of records retrieved and press enter or click on
the tick mark. A window is shown with the number of records fetched.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 12
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
In the window which pops up click on find button to search for the InfoObjects that are required. For example,
search for Purchasing document number and click on Transfer Selections button if it is found.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 13
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
Find out order item, material number, quantity and unit with the same method and transfer all these
InfoObjects.
Transferred InfoObjects are transferred to the collected objects section which is in the right side.
Here we can see the InfoObjects transferred. I havent transferred material number because I had already
transferred and activated it.
Install checkbox is highlighted by default for InfoObjects that are being transferred for the first time. It is
also checked if active version of these InfoObjects does not exist in the system
Match (X) checkbox will be selected by default. The Match indicator is set as default in order to prevent the
customer version being unintentionally overwritten by delivery version.
Grouping combines the objects from a particular area. The default Grouping mode is Only Necessary
Objects. It means only necessary objects required to work with these InfoObjects are transferred and
installed.
Click on Install button to install the collected objects
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 14
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 15
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
Give name and description for DSO and then click on Create button.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 16
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
Now we get the maintenance screen for our DSO. We can find our InfoObjects in the middle part of our
window. Select the button for All InfoObjects. Drag mouse over the buttons and you can see the description
of buttons. They are marked in the below figure. Click on Find button and type the technical name of the
InfoObject which was installed from BI Content. For example, give 0oi_ebeln and search to get Purchase
document number.
Now click and drag the InfoObject to the right hand side. Drag 0oi_ebeln to the node key fields. Similarly
find and drag all other fields in our DataSource. Drag and drop 0oi_ebeln and 0oi_ebelp should come under
Key fields. Similarly put 0d_po_qty and 0gt_matnr under Data fields.
When we drag all fields into our DSO click on the activate button to activate our DSO.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 17
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
In the source of transformation we have to give the DataSource name and source system.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 18
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
Drag and connect arrows from the source side to their corresponding fields in the target side.
In this DSO rules have to be created for transformation. Because when I uploaded data from r/3, I got error
for the value PC in Base Unit of Measure. Its because PC is saved as ST in BI. In order to solve it a rule
has to be created for Base Unit of Measure.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 19
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
In the next pop up box select Rule type as Routine and click on the pencil button on the right side of Rule
type which is shown in the figure below.
It opens an editor to type code. The code should be inserted under the comment insert your code here. The
structures to be used in the code can be found out by reading the commented out areas in the editor.
Source_Field-Meins is the name of the structure which gets value from source system and Result is the
variable which passes value of Base Unit of Measure to the target side. The code written is in the below
figure.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 20
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
Click on Check button to check for errors and save it if its error free.
Now for the Base Unit of Measure there is no equal sign. Instead an editor icon is present because a rule
has been set for it.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 21
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
A pop up will appear saying that DTP has been changed. Do you want to save? Click Yes.
In the Extraction tab select the extraction mode as Full. Click on Update tab. Select Valid record Update,
No Reporting (Request Red) option under error handling section. This option allows you to update valid
data. This data is only released for reporting after the administrator checks the incorrect records that have
not been updated and manually releases the request (using a QM action, that is, by setting the Overall status
on the Status tab page in the monitor).
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 22
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
Click on Activate button. If DTP is active then click on Execute button under Execute tab.
The DTP window shows that the package extracted 28152 records.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 23
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
Step 10: View contents of DSO and move data from New to Active table
Right click on the DataSource and select Manage to see the contents of DSO. Click on the Contents tab
and click on New Data. Press F8 button to see the records.
We have to activate the data in the new table to make it available in the table for Active Data.
To activate the data, click on the Requests tab and select request. Click on Activate button.
In the next window (below figure) select the request and click on Start button.
It may take some time to load data into the table for active data. Click on the Refresh button to refresh the
request. After some time the request will be in green color.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 24
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 25
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
When the request is in green color it means that the data is active now. Click on Contents tab and click on
Active Data button. Press F8 and it will show the records in DSO.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 26
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
Related Content
How to install business content InfoObjects..
Data extraction from r3 to sap bi 7.0
Creating Data Transfer Processes
Maintaining Generic DataSource
For more information, visit the EDW homepage.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 27
Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
2010 SAP AG 28