Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource

Similar documents
Step by Step Procedures to Load Master Data (Attribute and Text) from FlatFile in BI 7.0

Compounding in Infoobject and Analyzing the Infoobject in a Query

Understanding DSO (DataStore Object) Part 1: Standard DSO

Working with SAP BI 7.0 Data Transfer Process (DTP)

Step by Step Guide to Extract Batch Master Data via Generic and Classification Datasource to BW

Extractor in R/3 and Delta Queue

SAP BW 7.3: Exploring Semantic Partitioning

Step by Step Guide How to Copy Flat File from Other Application Server to BI and Load through Info Package

Inventory Management in SAP BW

SAP CRM-BW Adapter an Overview

Deploying Crystal Reports on Top of a SAP BI Query

How to Load Data from Flat Files into BW PSA

LSMW: Upload Master Data using Batch Input Recording

SAP BW - Generic Datasource Function Module (Multiple Delta Fields)

SAP BI/BW LO Extraction

Data Flow from LBWQ/SMQ1 to RSA7 in ECC and Delta Extraction in BI

Deleting the Requests from the PSA and Change Log Tables in Business Intelligence

Web Dynpro ABAP: ALV and Table in Popup Window

ALE Settings, for Communication between a BW System and an SAP System

Quick Viewer: SAP Report Generating Tool

SAP BW - Excel Pivot Chart and Pivot Table report (Excel)

Multi Provider Creation Based on Sales and Planning Info Cubes

Step by Step Guide for Language Translation Tool

Reverse Transport Mechanism in SAP BI

Transfer of Archived SAP ERP Data to SAP NetWeaver BW. Using PBS archive add ons

Web Dynpro: Multiple ALV Grids and Layouts in ALV

SAP FI - Automatic Payment Program (Configuration and Run)

Understanding BEx Query Designer: Part-2 Structures, Selections and Formulas

Understanding BW Non Cumulative Concept as Applicable in Inventory Management Data Model

SAP BW Configuration Basic System Settings

Restricting Search Operators in any Search View

Scenario... 3 Step-by-Step Solution Virtual Infocube... 4 Function Module (Virtual InfoCube)... 5 Infocube Data Display... 7

Step by Step guide of Report-to- Report Interface in BW Reporting

How to Assign Transport Request for Language Translation?

Data Extraction and Retraction in BPC-BI

SPDD & SPAU Adjustments Handbook

Creating Transaction and Screen Variants

Customer Exit Variables in SAP BW/BI Reports First day of the Current/Previous Month

BW Performance Monitoring

Currency Conversion using Variables in SAP BI -Reporting

SAP BI Generic Extraction Using a Function Module

Step by Step Procedure to Block and Debug a CIF Queue Flowing from R/3 to APO System

Creating Web Service from Function Modules/BAPIs & Integrating with SAP Interactive Forms

Display Options in Transaction SE16

Inventory Management (0IC_C03) Part - 3

Different Types of Alerts for Process Chains. Table of Content

Configuration of Enterprise Services using SICF and SOA Manager

Dynamic Authorization Concept and Role Assignment in BI

SAP CRM Campaign Automation

ABAP How To on SQL Trace Analysis

Exposing RFC as Web Service and Consuming Web Service in Interactive Forms in ABAP

Order Split Usage in Production Orders

Query OLAP Cache Optimization in SAP BW

Table of Contents. Passing Data across Components through Component Controller between Two Value Nodes

Understanding OLAP Processor and RSRT

How to Create an ecatt?

SAP BW Data Source Enhancement

How to Modify, Create and Delete Table Entries from SE16

Deleting the User Personalization done on Enterprise Portal

Creating New Unit of Measure in SAP BW

Direct Subcontracting Process (SAP SD & MM)

SAP CRM System 6.0/7.0. For more information, visit the Customer Relationship Management homepage

ABAP Proxy Interfacing

Standard SAP Configuration of SMS through HTTP with Third Party SMS Gateway

How to Generate Stack Xml for Ehp4 and Above Upgrade

Release Strategy Enhancement in Purchase Order

Configuration and Utilization of the OLAP Cache to Improve the Query Response Time

Creating Content Using SO10 Objects and Text Symbols

ABAP Debugging Tips and Tricks

SAP HANA Live & SAP BW Data Integration A Case Study

Introduction to COPA and COPA Realignment

Embedding Crystal Reports inside ECC ALV Reports

Step by Step Procedure to Create Broadcasters, to Schedule and to Enhance of SAP- BI Queries from Query Designer

SAP CRM 7.0 E2C Setup: CRM via Toolset

Create Automatic Mail Notification/ Alert for Process Chain Monitoring

APD to Update Marketing Attributes from SAP BI to SAP CRM

Data Aquisition Techniques in SAP Netweaver BW BI

Organizational Management- Organizational Structure Creation

Web Application Designer for Beginners

A Practical Guide to SAP" NetWeaver Business Warehouse (BW) 7.0

Step By Step Procedure to Create Logical File Path and Logical File Name

This document applies to SAP ECC 6.0, SAP Netweaver 2004s. For more information, visit the Web Dynpro ABAP homepage.

Step by Step Guide to Create a Generic Datasource Based on Infoset Query Populated Via External Program

Creation and Configuration of Business Partners in SAP CRM

Converting and Exporting Data in XML Format

Transfer of GL Master from Source SAP System to a Target SAP System through IDOCS

A Step-by-Step guide on SMTP Configuration and File to Mail Scenario Using Process Integration Scenario in PI 7.1

First step to Understand a Payroll Schema

RDP300 - Real-Time Data Warehousing with SAP NetWeaver Business Warehouse October 2013

Creating and Scheduling Publications for Dynamic Recipients on SAP Business Objects Enterprise

SAP BW 7.4 Real-Time Replication using Operational Data Provisioning (ODP)

SAP CRM 7.0 for Newbies: (Part 1) Simple BOL Object Creation for CRM Webclient UI

Connecting to SAP BW with Microsoft Excel PivotTables and ODBO

Tutorial - Creating Pop Up Window Using New Features in WebDynpro Java CE 7.1 Ehp1

Step by Step Guide to Archiving and Deleting of XML Messages in SAP NetWeaver PI

Table of Content. SAP Query creation and transport Procedure in ECC6

Integration of SAP R/3 with BO Universe Using Data Federator Connector

Guidelines for Effective Data Migration

SECTION 5: Finalizing Your Workbook

Table of Contents. Manual for Core Staff - Equipment/Scheduling Core Facilities

Transcription:

Step by Step Procedure to Extract Data from R/3 to BI 7.0 using Generic DataSource 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: Jerry Jerome Company: Applexus Software Solutions (P) Ltd. Created on: 06 October 2010 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. 2010 SAP AG 1

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 2010 SAP AG 2

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. 2010 SAP AG 3

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). 2010 SAP AG 4

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. 2010 SAP AG 5

Step 2: Creating Generic DataSource RSO2 is the tcode used to create a Generic DataSource. Select the radio button for Transaction Data. The name of DataSource is ZJJ_DS_EKPO. Click on create button. 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. 2010 SAP AG 6

Double click on the extract structure. Extract structure is shown in the figure below. It is exactly the same as the view. Save the DataSource. 2010 SAP AG 7

Step 3: Testing Generic DataSource RSA3 is the tcode used to check a DataSource. RSA3 is known as extractor checker. Take RSA3 and give the name of DataSource. Either click on Extraction button or press F8. It shows the number of records extracted. That means DataSource is working fine. 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. 2010 SAP AG 8

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. Step 2: Replicate Metadata Now select Application Component. So select Materials Management and check whether DataSource is available under it. It won t be there because it was created in R/3. So right click on Materials Management and click on Replicate Metadata. Then all the DataSource under MM will be regenerated in BI. 2010 SAP AG 9

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. Double click on DataSource and click on Activate button to activate it. 2010 SAP AG 10

Step 3: Creating InfoPackage and uploading data to PSA When DataSource is in activated state right click on it and select Create InfoPackage. 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 it s a full upload it extracts all records from EKPO table in r/3. 2010 SAP AG 11

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. 2010 SAP AG 12

Step 4: Installing InfoObjects from BI Content Now data is in the PSA table. The InfoObjects corresponding to the fields in DataSource are not active in BI side. So InfoObjects have to be installed from BI content. Go to RSA1 tcode and click on BI content on the left side of the panel. Expand InfoObject and double click on the option Select Objects. 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. 2010 SAP AG 13

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 haven t 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 It may take some time to install the objects. 2010 SAP AG 14

Step 5: Creating InfoArea In RSA1 select InfoProvider under Modeling tab. Right click on InfoProvider and select Create InfoArea. Give a name and description for the InfoArea. 2010 SAP AG 15

Step 6: Creating DSO Right click on the InfoPackage created and select the option Create DataStore Object. Give name and description for DSO and then click on Create button. 2010 SAP AG 16

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. 2010 SAP AG 17

Step 7: Creating Transformation The transformation process allows you to consolidate, cleanse, and integrate data. It maps fields from the source object to the target object. A transformation converts the fields of the source into the format of the target. Right click on the DSO and select Create Transformation. In the source of transformation we have to give the DataSource name and source system. 2010 SAP AG 18

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. It s because PC is saved as ST in BI. In order to solve it a rule has to be created for Base Unit of Measure. Step 8: Creating Transformation rules using routines (ABAP Coding) Right click on the InfoObject 0BASE_UOM and select Rule Details. 2010 SAP AG 19

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. 2010 SAP AG 20

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. Click on Activate button to activate the transformation. Step 9: Creating DTP (Data Transfer Process) Data Transfer Process (DTP) is used to transfer data from source objects to target objects in BI. Right click on DSO and select Create Data Transfer Process. 2010 SAP AG 21

A window is popped up with the required fields filled. 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). 2010 SAP AG 22

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. 2010 SAP AG 23

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. 2010 SAP AG 24

2010 SAP AG 25

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. Press F8 and then we can see the records fetched. 2010 SAP AG 26

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. 2010 SAP AG 27

Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document. 2010 SAP AG 28