Академический Документы
Профессиональный Документы
Культура Документы
Data Extraction
1 2 3 4 5
India SAP CoE, Slide 2
Data Extraction
1 2 3 4 5
India SAP CoE, Slide 3
PrepareMe
In this course, we will cover 3 main sub-topics : - Purpose - Use - Challenges
Purpose
This course demonstrates the various data extraction methods. Extraction Methods covered Business Content Extraction from SAP R/3 LIS & LO Extraction from SAP R/3 CO-PA and FI-SL Extraction Generic Extractors Flat File Extraction UD Connect, DB Connect, SOAP Based and Open Hub Extraction DataSource Enhancement
Use
In many organizations, data is fragmented and spread across many databases and applications. To be useful, data must be integrated, standardized, synchronized, and enriched typically through ETL (extraction, transformation, and loading) processes. SAP BI provides a broad set of ETL capabilities that support data extraction. With the open interfaces of SAP BI, data can be loaded from virtually any source and can handle the huge amounts of transactional data typical of the enterprise landscape. Thus extraction deals with extracting the data into the BW system for analysing and reporting.
Challenges
To extract large volumes of data from SAP R/3 by defining delta management Modifying the already available Business content and satisfying user needs Integrating data from non SAP systems into BW
Data Extraction
1 2 3 4 5
India SAP CoE, Slide 8
LO Cockpit
Generic Extractors
Process Flow
InfoCube
Update Rules
ODS
PSA
DataSource
Order
Delivery
DataSource
Data extract
Process Flow
The data flows from the OLTP system to the PSA tables without any transformation. If any transformation or filtration is required in the data it can be done in the update rules and transfer rules. Then the data is loaded in the data targets like ODS. An ODS object acts as a storage location for consolidated and cleaned-up transaction data. The data from multiple ODS is then loaded into InfoCube and thus available to generate reports. In this example, Order and Delivery Data are extracted separately, and populate separate PSA and ODS tables. The data is then merged within the ODS to form a new ODS object storing combined Order Delivery data. The data then updates the InfoCube with Order Delivery data.
Types of Extractors
Types of Extractors
Application Specific
Cross Application
BW Content Extractors HR CO SAP CRM SAP CRM LO COCKPIT Application Specific DB Tables
India SAP CoE, Slide 13
FI FI
Types of Extractors
Extractors mainly are of two types: Application Specific Cross Application Application Specific Extractors consist of BI Content Extractors (LO Cockpit) Customer Generated Extractors (CO-PA, FI-SL and LIS) Cross Application Extractors consist of generic extractors (based on Database table, Infoset and Function module)
Application Specific
Cross Application
BW Content Extractors HR CO SAP CRM SAP CRM LO COCKPIT Application Specific DB Tables
India SAP CoE, Slide 15
Generic Extractors
FI FI
LIS DB View Business Content Extractors: FISL Infoset Application Specific Extractors that are activated when COPA Function business content datasources Module are Application transferred Various SAP DB tables Specific DB Tables
Application Specific
Cross Application
BW Content Extractors HR CO SAP CRM SAP CRM LO COCKPIT Application Specific DB Tables
India SAP CoE, Slide 18
FI FI
LO Cockpit
Logistics Customizing Cockpit provides a simplified way to extract logistics data and transfer it to SAP Business Information Warehouse.
V1 and V2 Updates
V1 Update Synchronous Update If you create/change a purchase order (me21n/me22n), when you press 'SAVE' and see a success message (PO.... changed..), the update to underlying tables EKKO/EKPO has happened (before you saw the message). This update was executed in the V1 work process. V2 Update Asynchronous Update If you create/change a purchase order (me21n/me22n), when you press 'SAVE' it takes few seconds to update to underlying tables EKKO/EKPO depending on system load. This update was executed in the V2 work process. V3 Update has now replaced V1 and V2 updates.
India SAP CoE, Slide 21
Serialized V3 Update
R3 system SM 13 Application specific customer exits Update Tables Periodic Job BW System
RSA7
Transaction tables
BW Delta queue
Delta Load
Staging Engine
Serialized V3 Update
Transaction data is collected in the R/3 update table Data in the update tables is transferred through a periodic update process to BW Delta queue Delta loads from BW retrieve the data from this BW Delta queue Transaction postings lead to:
Records in transaction tables and in update tables A periodically scheduled job transfers these postings into the BW delta queue This BW Delta queue is read when a delta load is executed.
Direct Delta
R3 system Application specific customer exits BW System
BW Delta queue
Delta Load
Transaction tables
Staging Engine
Direct Delta
Each document posting is directly transferred into the BW delta queue Each document posting with delta extraction leads to exactly one LUW in the respective BW delta queues Transaction postings lead to:
Records in transaction tables and in update tables A periodically scheduled job transfers these postings into the BW delta queue This BW Delta queue is read when a delta load is executed.
Queued Delta
R3 system LBWQ Application specific customer exits Extraction queue Periodic Job BW System
RSA7
Transaction tables
BW Delta queue
Delta Load
Staging Engine
Queued Delta
Extraction data is collected for the affected application in an extraction queue Collective run as usual for transferring data into the BW delta queue Transaction postings lead to:
Records in transaction tables and in extraction queue A periodically scheduled job transfers these postings into the BW delta queue This BW Delta queue is read when a delta load is executed.
Un-Serialized V3 Update
R3 system SM 13 Application specific customer exits Update Tables Periodic Job BW System
RSA7
Transaction tables
BW Delta queue
Delta Load
Staging Engine
Un-Serialized V3 Update
Extraction data for written as before into the update tables with a V3 update module V3 collective run transfers the data to BW Delta queue In contrast to serialized V3, the data in the updating collective run is without regard to sequence from the update tables Transaction postings lead to:
Records in transaction tables and in update table A periodically scheduled job transfers these postings into the BW delta queue This BW Delta queue is read when a delta load is executed.
Application Specific
Cross Application
BW Content Extractors HR CO SAP CRM SAP CRM LO COCKPIT Application Specific DB Tables
India SAP CoE, Slide 34
FI FI
LIS Extraction
Types of Extractors
Application Specific
Cross Application
BW Content Extractors HR CO SAP CRM SAP CRM LO COCKPIT Application Specific DB Tables
India SAP CoE, Slide 36
FI FI
FI-SL Extractors
Types of Extractors Application Specific Cross Application
BW Content Extractors HR CO SAP CRM SAP CRM LO COCKPIT Application Specific DB Tables
India SAP CoE, Slide 40
FI FI
FI-SL Extractors
FI-SL is an application in which data (planned and actual) from different levels of OLTP applications is combined to measure business performance. FI-SL includes planning functions and reporting tools. FI-SL reporting in SAP R/3 is however restricted by the following :
Cross application reporting is not diverse The OLTP system is optimized for transaction processing and a high reporting workload would have a negative impact on the overall performance of the system
CO-PA Extractors
Types of Extractors
Application Specific
Cross Application
BW Content Extractors HR CO SAP CRM SAP CRM LO COCKPIT Application Specific DB Tables
India SAP CoE, Slide 44
FI FI
CO-PA Extractors
Profitability Analysis (PA) is an integrated component in the SAP R/3 system. All of the data related to profitability from the other SAP R/3 applications is mapped in CO-PA in accordance with the corresponding business transactions. This allows you to transfer into CO-PA billing document data from SD, cost object costs from CO-PC, and overall costs from overall cost controlling. CO-PA collects all of the OLTP data for calculating contribution margins (sales, cost of sales, overhead costs) CO-PA also has powerful reporting tools and planning functions
CO-PA Extractors
CO-PA Extractors
During billing SD, revenues and payments are transferred to profitability segments in Profitability Analysis. At the same time, sales quantities are valuated using the standard cost of goods manufactured, as specified in the cost component split from COPC. One of the typical questions that can be answered with CO-PA module is what are the top products and customers in our different divisions. The wide variety of analysis and planning functions in CO-PA allow you to plan, monitor and control the success of your company in terms of product-oriented, customer-oriented and organizational dimensions of multidimensional profitability segments.
Generic Extractors
Types of Extractors
Application Specific
Cross Application
BW Content Extractors HR CO SAP CRM SAP CRM LO COCKPIT Application Specific DB Tables
India SAP CoE, Slide 48
FI FI
Generic Extractors
Generic Extractors are Cross Application Extractors used in scenarios where the other type of extractors are unavailable. Generic extractors are of three types:
Based on Database view/Table Based on InfoSet Based on Function Module
Generic Extractors
When should you use generic extractors? Business Content does not contain a DataSource for your application. The application does not feature its own generic delta extraction method You are using your own programs in SAP R/3 to populate the tables The tools for generic data extraction can be used to generate an extractor for all applications.
But from performance point of view we store the file on the applications server and then load it into BW.
UD Connect Overview
With the help of the SAP Web AS J2EE connectivity, UD Connect (Universal Data Connect) enables reporting and analysis of both SAP and non-SAP data. Using UD Connect, you can access just about all relational and multi-dimensional data sources. UD Connect transfers the data as flat data. Multidimensional data is converted to a flat format when UD Connect is used.
UD Connect Overview
For the connection to DataSources (in BW), UD Connect uses the J2EE Connector Architecture. BI Java Connectors that are available for various drivers, protocols and providers as resource adapters.
BI JDBC Connector BI ODBO Connector BI SAP Query Connector BI XMLA Connector
DB Connect Overview
SAP BW
Foreign Application Unix ORACLE DataBase
Purchasing
DB-Connect
MS SQL DataBase
NT
DB Connect Overview
A purchasing application runs on a legacy system based on an ORACLE database. To analyze the data from the purchasing application, the data needs to be loaded into the BW System (possibly installed on a different database, e.g. MS SQL-Server). DB-Connect can be used to connect the DBMS of of the purchasing application and extract data from tables or views.
In all three scenarios, data transfer takes place via transfer mechanisms that are sufficient for Simple Object Access Protocol (SOAP) and are XML based.
India SAP CoE, Slide 60
Datasource Enhancement
Need for DataSource enhancement
When we require an additional field from a database table and it is not directly available from the datasource, then we can append the field in the extract structure of the datasource. Then the logic to populate that field can be written in the customer exit.
Data Extraction
1 2 3 4 5
India SAP CoE, Slide 64
BI Content Extractors
BI Content Extractors Datasource Enhancement
LO Cockpit
Generic Extractors
In SAP R/3, go to transaction Code SBIW Display IMG Business Content DataSources Execute Transfer Business Content DataSources
Scheduler screen
Monitor
LO Cockpit
BI Content Extractors Datasource Enhancement
LO Cockpit
Generic Extractors
BW Logs (LBWF)
Activate datasources
Maintaining DataSources
Maintain datasources
All the fields in the extract structure are shown with the assigned info objects in the template
In transaction LBWG enter the application number for which you want to delete the set up tables. For e.g. For 2LIS_11_VAITM enter the number 11 and execute.
V3 Update- Settings
Set up V3 update Set the start time and print parameters. Schedule batch jobs
V3 Update Settings
FI-SL Extractors
BI Content Extractors Datasource Enhancement
LO Cockpit
Generic Extractors
FI-SL Extractors
After generating the FI-SL DataSource rest of the steps are same as explained earlier. Replicate the DataSource and then assign it to the infosource. Create transfer rules and update rules Create InfoPackage and initialize the delta process
CO-PA Extractors
BI Content Extractors Datasource Enhancement
LO Cockpit
Generic Extractors
CO-PA Extractors
After generating the CO-PA DataSource rest of the steps are same as explained earlier. Replicate the DataSource and then assign it to the infosource. Create transfer rules and update rules Create InfoPackage and initialize the delta process
Generic Extractors
BI Content Extractors Datasource Enhancement
LO Cockpit
Generic Extractors
LO Cockpit
Generic Extractors
Data separator
India SAP CoE, Slide 128
You might get an error on alpha conversion. Take in mind the option in transfer rule to convert the data from external format into internal.
Datasource Enhancement
Generic Extractors
Step 1 - Create a DB Connect source system the name of the DB Connection : Give
connection. DBMS : Enter the database type to which you want to connect in this field. (i.e. Oracle, DB2 etc) Enter the username and password. Conn. Info : This field contains the technical information that is analyzed in native SQL in the CONNECT statement in order to open the database connection. e.g. In Oracle enter the name of the database you want to connect
India SAP CoE, Slide 134
Step 2 - Generate You use the context menu for a DataSource database Source System
Select Database Tables to generate a DataSource for database source systems. First, you choose a selection of tables for a database source system and create a connection to the database source system. Next, you select the table fields for a specific table of the database Source System, and specify whether you want these table fields to be available for selection in the BW system.
India SAP CoE, Slide 135
DataSource Enhancement
BI Content Extractors Datasource Enhancement
LO Cockpit
Generic Extractors
Data Extraction
1 2 3 4 5
India SAP CoE, Slide 145
BI Content Extraction
In the Source system go to transaction RSA5, activate the DataSource 2LIS_11_VAITM. Go to BI Content select the grouping as data flow before and install the InfoSource 2LIS_11_VAITM. Now replicate the DataSource in BW and assign it to the InfoSource and maintain transfer rules Create an ODS and update rules Create the InfoPackage and load the ODS
LO Cockpit
Go to transaction SBIW. Check out the various options to delete and fill the set up tables and simulate the batch jobs Go to transaction LBWE, check the option to maintain the datasources and to activate them as well as to simulate the V3 update
Transactions
RSA1 RRMX RSO2 RSA3 RSA7 RSA6 RSQ02 RSBOH1 Administrator Workbench Business Explorer ( BEX ) Maintain Generic Datasource Extractor Checker Delta Queue Status Maintain Datasources Maintain InfoSets Open Hub Destination
Transactions
RSMO SBIW OLI*BW SM50 RSA5 RSA6 LBWE LBWG LBWF SM37 KEB0 Monitoring BW Config. Statistical Setup Process Overview Install Business Content Post Processing of DataSources Logistics Cockpit Deleting Setup tables BW Log Job Overview Create the COPA Data Source
Course Name
1 2 3 4 5
India SAP CoE, Slide 151