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



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

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

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

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

Extractor in R/3 and Delta Queue

How to Assign Transport Request for Language Translation?

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

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

Inventory Management in SAP BW

Working with SAP BI 7.0 Data Transfer Process (DTP)

SAP BI/BW LO Extraction

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

Step by Step Guide for Language Translation Tool

SAP BI Generic Extraction Using a Function Module

SAP BW 7.3: Exploring Semantic Partitioning

Inventory Management (0IC_C03) Part - 3

How to Modify, Create and Delete Table Entries from SE16

Creation and Configuration of Business Partners in SAP CRM

Reverse Transport Mechanism in SAP BI

SAP CRM-BW Adapter an Overview

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

Understanding OLAP Processor and RSRT

Create Automatic Mail Notification/ Alert for Process Chain Monitoring

Understanding DSO (DataStore Object) Part 1: Standard DSO

Compounding in Infoobject and Analyzing the Infoobject in a Query

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

Sales Commission Calculation & Settlement Handling through Order Processing

Restricting Search Operators in any Search View

Quick Viewer: SAP Report Generating Tool

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

Data Extraction and Retraction in BPC-BI

Embedding Crystal Reports inside ECC ALV Reports

Currency Conversion using Variables in SAP BI -Reporting

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

BW Performance Monitoring

Introduction to COPA and COPA Realignment

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

Converting and Exporting Data in XML Format

How to Get Work Items from Workflow in your Outlook Inbox

Creating Content Using SO10 Objects and Text Symbols

Creating New Unit of Measure in SAP BW

Multi Provider Creation Based on Sales and Planning Info Cubes

SAP CRM Campaign Automation

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

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

Guidelines for Effective Data Migration

Creating Transaction and Screen Variants

Process Controlled Workflow SRM 7.0 (Using BRF)

ABAP Debugging Tips and Tricks

SAP BW Configuration Basic System Settings

How to Load Data from Flat Files into BW PSA

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

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

Deploying Crystal Reports on Top of a SAP BI Query

Different Types of Alerts for Process Chains. Table of Content

Middleware Configuration and Monitoring for Master Data Transfer from SRM to ECC

Sending an Image File Through XI in a File-to-Mail Scenario

SAP Workflow in Plain English

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

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

Solution Manager Service Desk an End-to-End Helpdesk Solution

SAP FI - Automatic Payment Program (Configuration and Run)

Release Strategy Enhancement in Purchase Order

How to Generate Stack Xml for Ehp4 and Above Upgrade

LSMW: Upload Master Data using Batch Input Recording

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

Configuration of Enterprise Services using SICF and SOA Manager

Workflow Troubleshooting and Monitoring in SAP ECC 6.0

Deleting the User Personalization done on Enterprise Portal

Direct Subcontracting Process (SAP SD & MM)

SAP CRM 7.0 E2C Setup: CRM via Toolset

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

SAP CRM Middleware Configurations

SDN Community Contribution

SAP MM: Purchase Requisition with Classification and Workflow Approval

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

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

First step to Understand a Payroll Schema

ABAP How To on SQL Trace Analysis

Order Split Usage in Production Orders

Organizational Management- Organizational Structure Creation

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

Salesforce.com Integration Using SAP PI: A Case Study

SAP NetWeaver Developer Studio 7.30 Installation Guide

Display Options in Transaction SE16

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

APD to Update Marketing Attributes from SAP BI to SAP CRM

Splitting the Custom Container & Display more than one ALV

Valuation of Materials using FIFO Method

Using PI to Exchange PGP Encrypted Files in a B2B Scenario

Data Aquisition Techniques in SAP Netweaver BW BI

Consuming Services in SOA Manager

Market Basket Price Calculation in Retail

Web Application Designer for Beginners

ABAP Proxy Interfacing

Configuring HTTPs Connection in SAP PI 7.10

Salesforce Integration Using PI: How to Perform Query and Other DML Operations Using the Enterprise WSDL

Web Dynpro ABAP: ALV and Table in Popup Window

Dynamic Authorization Concept and Role Assignment in BI

Merge PDF files in ABAP

Transcription:

SAP BW - Generic Datasource Function Module (Multiple Delta Fields) Applies to: SAP BW 3.5 / SAP 7.0 Consultants. For more information, visit the EDW HomePage. Summary Fetch the delta on multiple fields for Generic Datasource (Transaction Data) based on Function Module Extraction. Author: Suraj Tigga Company: Capgemini Consulting Created on: 20 April 2011 Author Bio Suraj Tigga is a Senior SAP BI / ABAP consultant at Capgemini Consulting, India. Suraj joined Capgemini Consulting in 2008 and has worked on multiple SAP BI implementation and support projects. 2011 SAP AG 1

Table of Contents Scenario... 3 Generic Datasource (Multiple Delta Fields)... 3 Generic Datasource... 4 Function Module... 4 Execution... 5 Understanding... 7 Related Content... 8 Disclaimer and Liability Notice... 9 2011 SAP AG 2

Scenario SAP BI provides Generic Delta option while creating Generic Datasource to fetch data based on a particular field (present in the extract structure) either with timestamp or date whose values increased monotonously over time. System determines the data volume transferred in the delta method by comparing the maximum value transferred with the last load with the amount of data that has since entered the system. Only the newly arrived data is transferred. Document describes method to create an extractor based on multiple delta fields using Function Module Extraction. Data for SD Document: Delivery (From tables LIKP and LIPS) would be fetched based on two delta fields (AEDAT: Changed On) and (ERDAT: Date on Which Record Was Created). Generic Datasource (Multiple Delta Fields) YBIDELIV BI ECC Generic Datasource (YBI_DELIVERY) Function Module: YBI_DELIVERY_DATA (Delta Fields: AEDAT and ERDAT) Generic Datasource would fetch the data from LIKP (SD Document: Delivery Header Data) and LIPS (SD document: Delivery: Item data) based on delta fields AEDAT (Changed On) and ERDAT (Date on Which Record Was Created). a) Generic Datasource: Define the Function Module based Generic Datasource with AEDAT as a Generic Delta Field. b) Function Module: Function Module to fetch the data from LIKP and LIPS tables based on delta fields AEDAT and ERDAT. c) Execution: Explains the delta based on two fields while debugging. 2011 SAP AG 3

Generic Datasource Step1: Create Generic Datasource YBI_DELIVERY based on Function Module YBI_DELIVERY_DATA and Generic Delta Field AEDAT. YBIS_DELOVERY is the extract structure similar to the Database View YV_DELIVERY. Function Module Step1: Make a range based on the Generic Delta Field AEDAT and use the range while selecting data from Database View YV_DELIVERY. Retrieve data from Database View (YV_DELIVERY) based on the range r_delta_date fed to the erdat and aedat in where clause: Above statement would pick the values from database view YV_DELIVERY based on the range for ERDAT and AEDAT. 2011 SAP AG 4

Execution After the Initialization is executed, check the entries in table ROOSGENDLM (Generic Delta Management for DataSources) Step1: Go to transaction RSA3 and execute the datasource YBI_DELIVERY with update mode D : Entries in internal table i_t_select: Check the entries in range r_delta_date 2011 SAP AG 5

Check the entries in the internal table e_t_data: Extraction Result: 2011 SAP AG 6

Understanding DATE(EXTRACTION) OPT SIGN LOW HIGH START DATE END DATE Init 20.04.2011 BT I 20.04.2011 20.04.2011 Delta 20.04.2011 BT I 16.04.2011 20.04.2011 20.04.2011 20.04.2011 a) During Initialization the lower limit value of selection would be blank. The higher limit would be filled with current date. b) During delta request, the lower limit value would be 5 days less than the current date and the higher limit would be the previous delta request. This is due to the fact we had given a safety lower interval as 5 days. As a result, the lower interval was taken as the previous higher interval limit minus 5 days. c) The enhanced code takes the limit range in the delta load and then prepares a range out of it. And then this range would be used while selecting data from the concerned Database View. Data loaded (DSO): Validation: Datasource Extract: DSO: 2011 SAP AG 7

Related Content For more information visit EDW HomePage. 2011 SAP AG 8

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 9