How to Create View on Different Tables and Load Data through Generic Datasource based on that View

Similar documents
Standalone BW System Refresh

Data Source Replication and Activation of Transfer Structures

Step-By-Step guide to Virtual InfoCube Implementation

Extracting Missing Fields of Data Source Which Are Present In Their Extract Structure

Steps to Activate ALE Delta for Custom Master Datasource Created on ZTable

DB Connect with Delta Mechanism

Using Radio Buttons in Web Template

Changing the Source System Assignments in SAP BW Objects without Affecting the Data Modeling

Replacement Path: Explained with an Illustrated Example

Loading the Data for Time Dependent Hierarchy in SAP BI

How to use Boolean Operations in the Formula as Subsidiary for IF Condition

Step By Step: the Process of Selective Deletion from a DSO

Generate Export Data Source

Data Extraction & DS Enhancement in SAP BI Step by Step

Reading Enhanced DataSource fields for the Remote Cube

Process Chain Log Deletion

Maintaining Roles and Authorizations in BI7.0 - RSECADMIN

POWL: Infoset Generation with Web Dynpro ABAP

Step by Step Method for File Archival in BW

Linking Documents with Web Templates

Creating Custom SU01 Transaction Code with Display and Password Reset Buttons

How to Create Top of List and End of List of the ALV Output in Web Dynpro for ABAP

Step by Step Procedure for DSO Creation

Explore to the Update Tab of Data Transfer Process in SAP BI 7.0

Material Master Archiving in Simple Method

BW Reconciliation. Applies to: Summary. Author Bio

Role and Scope of ABAP in SAP BI

MDM Import Manager - Taxonomy Data (Attribute Text Values) Part 3

How to Work with F4 Input Help Effectively in BEX

Database Statistics During ODS Activation

MDM Syndicator: Custom Items Tab

Creation of Key Figures with Higher Decimal Place Precision

Recreating BIA Indexes to Address the Growth of Fact Index Table

Extraction of Hierarchy into Flat File from R/3 and Loading in BW System

Information Broadcasting Part 3 Scheduling the First Report

All about Compression

SAP Net Weaver 400s BI 7.0For more information, visit the Business Intelligence homepage.

Displaying SAP Transaction as Internet Application in Portal

ecatt Part 6 System Data Container

Integration of Web Dynpro for ABAP Application in Microsoft Share Point Portal

Cut Over Activities Specific for LIS* Data Sources

Open Hub Destination - Make use of Navigational Attributes

Step by Step Guide on How to Use Cell Definition in BEx Query

This article explains the steps to create a Move-in letter using Print Workbench and SAPScripts.

Data Flow During Different Update Mode in LO Cockpit

SAP BI Analysis Authorization (Customer Exit Variables)

Using Rule Group in SAP-BI. Part - 1

Errors while Sending Packages from OLTP to BI (One of Error at the Time of Data Loads through Process Chains)

Material Listing and Exclusion

Performance Tuning in SAP BI 7.0

Validity Table in SAP BW/BI

Setting up Connection between BW and R/3 for Data Load

Using Query Extract to Export Data from Business warehouse, With Pros and Cons Analyzed

Easy Lookup in Process Integration 7.1

How to Display Result Row in One Line While Reporting On Multiproviderer

Currency Translation in SAP BI Step by step Guide

Real Time Data Acquisition (RDA) Overview and Step-by-Step Guide (SAPI and Web Services)

BPM Multi Line Container in Integration Process

How to Broadcast BEx Workbooks using BW Pre-calculation Server and through Process Chains

Graphical Mapping Technique in SAP NetWeaver Process Integration

Performance Management in Data Loading: an Overview

Open Text DocuLink Configuration - To Access Documents which are Archived using SAP

SAP BI BO Unit/Currency Logic for Unknown Units Case Study

Server Connectivity and Data Load from Non SAP System to BW

Triggering the Process Chains at Particular Date using Events

Load Info Cube in SCM 5.0 (BI 7.0)

Data Mining: Scoring (Linear Regression)

Download SAP Query Output to Local/ Network Folders in Background

Deploying BusinessObjects Explorer on Top of a SAP BI Query

Template Designer: Create Automatic PDF Documents for Attachment or Print Purpose

SDN Community Contribution

Web Dynpro: Coloring Table Conditionally

Developing Crystal Reports on SAP BW

Customized Transaction to Trigger Process Chain from Failed Step

Using Nested Exception Aggregation in BEx Reports- Scenario

Step by Step Guide for PI Server Start and Stop Procedure

How to Default Variant Created for Report Developed In Report Painter/Writer

Reporting Duplicate Entries

Add /Remove Links on ESS Home Page in Business Package 1.5

How to Configure User Status in mysap SRM

Transfer Material Attributes (Material Type) from R/3 to SAP GRC Global Trade Services (GTS)

SAP BW Copy Existing DTP for Data Targets

Planning Functions and Characteristic Relationship in Integrated Planning

Table Row Popup in Web Dynpro Component

Data Mining: Decision Trees

How to Check BW system Before Go-Live

Analysis Process Designer (APD) Step by Step Business Intelligence

How to Reference External JAR Files in Web Dynpro DC in SAP NW Portal 7.3

SAP BusinessObjects Translation Manager Functionality and Use

Implying Security on Business Object XI 3.1 Universe having SAP BW as Source

Xcelsius Tricks Part 5 Create a Loading Bar in SAP Crystal Dashboard and Presentation Design (Xcelsius 2008)

Solution to the Challenges in Pivoting

Financial Statement Version into PDF Reader

Methods of Selecting BOM Variant Parts in Variant Configuration

ABAP Code - Recipients (Specific Format) SAP BW Process Chain

Step by Step Guide How to Use BI Queries in Visual Composer

ABAP HR: Standard Info Type Enhancement

Creating, Configuring and Testing a Web Service Based on a Function Module

List of Values in BusinessObjects Web Intelligence Prompts

About ITAB Duplicate_Key (SAP lrsaods) Runtime Error

Transcription:

How to Create View on Different Tables and Load Data through Generic Datasource based on that View Applies to: SAP Business Intelligence (BI 7.0). For more information, visit the EDW homepage Summary This article describes first how to create a view on two or more tables. Then how to load data through generic datasource based on that view. Here I have used BI tables and datasource created on BI server. But the same procedure we can follow if we need to load data from R/3. Author: Indrashis Bose Company: Accenture Services Pvt Ltd (Mumbai/India) Created on: 11 th September, 2011 Author Bio Indrashis Bose is a SAP BI consultant currently working with Accenture Services Pvt Ltd in Mumbai, India. He is working in SAP BI for the last 1+ year and he has experiences in development/support activities. He is presently working in a support project and enriching his experiences in variouis support related issues. 2011 SAP AG 1

Table of Contents: Scenario:... 3 Creating view on two tables:... 4 Creating Generic Datasource based on view:... 5 Replicating datasource in BI:... 7 Creating Infopackage and Loading data:... 8 Related Contents... 10 Disclaimer and Liability Notice... 11 2011 SAP AG 2

Scenario: In SAP BI, data are stored in many tables. Some time it may be required that we need to load data combining two or more tables i.e. taking different fields from different tables based on a condition. Then it is very useful to create a view on those tables and loading data through a generic datasource on that view. We may need to load data from R/3 tables to BW system or may be from BW tables. Here I have explained using BW tables. But the same procedure should be followed in case source is R/3 system. We need to create view and datasource in R/3 system. Then we need to replicate that datasource in BI system. We have two employee tables Employee table 1 (ZTABLE1_EMP) and Employee table 2 (ZTABLE2_EMP). Table 1 contains Employee No, Employee Address, Employee Phone and Employee Name. Table 2 contains Employee No, Employee Grade and Employee Email. Now we have a requirement that we need to load Employee No, Employee Name and Employee Email. First two fields come from table 1 and the third from table 2. So here we will create a view on these two tables and then we will create a generic datasource on that view to load data. Lets us go step by step to load the data, 2011 SAP AG 3

Creating view on two tables: As per our requirement we have to first create a view on our two employee tables Employee Table 1 (ZTABLE1_EMP) and Employee Table 2 (ZTABLE2_EMP). First go to se11 and select view. Give view name as ZVIEW_EMP and click on create. Then a pop up window will come. Select Database view and click on copy. Then in the next screen give description as Employee view. Then give the tables name that we are using ZTABLE1_EMP & ZTABLE2_EMP. Then give the join condition that we are using i.e. Employee No of table 1 is equal to Employee Nop of table 2. 2011 SAP AG 4

Then go to View Fields tab. There give the different fields that we want to see from different tables. The left column is for field description in view. The middle column contains table name and the right column contains the respective field of that table. Here we want to see 3 fields - Employee No and Employee Name from table 1 and Employee Email from table 2. And then activate the view. Then again go to se11 and select view. There give the view name as ZVIEW_EMP and click on display. There check the contents of the view and see whether the records are coming properly. Now we can say that our creation of view is complete. Now we have to make the data source on this view. Creating Generic Datasource based on view: We have the tables and view in BI server. And we are creating datasource also in BI system. If we need to extract data from R/3, we need to follow the same procedure but we need to do all the steps in R/3 system. To create a generic datasource, we need to go to RSO2. There choose the datasource type and give the technical name of the datasource. Here we are giving ZDATAS_EMP and click on create. 2011 SAP AG 5

Then in the next screen, give application component as BW. Give the datasource description. As we are extracting from Database View, so give the view name in the specified area. Then click on save. Then a new window will open. You can see the extract structure there. Check all the three fields that we want to see. Then again click on save. Then you will again go to the first screen> Just click on save and your datasource will be saved. Now datasource is created but we need to replicate the datasource. Now we need to check whether our datasource is ready to be replicated. For that go to tcode RSA6. There under BW node, check whether you can see your datasource. Now our datasource is ready to be replicated. We need to replicate it now. 2011 SAP AG 6

Replicating datasource in BI: For replicating the datasource, we need to go to RSA1 and then go to datasource. At the top left corner there is a button to chose source system. Choose source system as BI system. Then in the next screen, right click on BW datasources at the top and click on replicate metadata. Then you will get a pop up that ZDATAS_EMP does not exist in BI and will create the datasource in BI. Choose RSDS as type of the datasource. It may take some time to replicate the datasource. After replication is complete you can see your datasource under BW datasources. This means datasource is ready. Now we just need to create infopackage to load data to PSA. Remember one thing We need to follow exact same procedure if we need to load data from R/3. We will follow every step before replicating the datasource in R/3 system i.e. we will create view and the datasource in R/3 system. Then in BI system we will replicate the datasource. Then we just need to choose source system as R/3 instead of BI. 2011 SAP AG 7

Creating Infopackage and Loading data: For creating infopackage, right click on the datasource and click on create infopackage. Then give the infopackage description and click on save. Then go to infopackage schedule tab and click on start. Then your data will be loaded to PSA. 2011 SAP AG 8

Now loading upto PSA is complete using generic datasource. Now you can easily create transformation / DTP and load data to any infoprovider from the datasource. 2011 SAP AG 9

Related Contents Database Views Generic Extraction using function module Maintaining Generic datasources 2011 SAP AG 10

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. 2011 SAP AG 11