Está en la página 1de 11

Safty Interval In Generic Delta

Applies to:
This article talks about safety limits that we can use in Generic Data Source in SAP BI. For more information, visit the EDW homepage.

Summary
Safety Intervals are used in Generic Data Source to make sure that no data records are missed, even if those are not stored in the DB table when the extraction took place. Author: Gaurav Namdeo and Debjit Singha Company: L & T Infotech. Created on: 13 December 2010

Author Bio
Gaurav Namdeo working in L&T Infotech has an experience 4 years in SAP BI/BO. He has been a part of Development and Implementation Projects.

Debjit Kumar Singha is working in L & T Infotech has an experience of more than 1 year in SAP BI/BO. He has been a part of Development and Implementation Projects.

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 1

Safty Interval In Generic Delta

Table of Contents
Step By Step Explanation: .................................................................................................................................. 3 Scenario: ............................................................................................................................................................. 6 Example 1: ...................................................................................................................................................... 6 Example 2: ...................................................................................................................................................... 7 Example 3: ...................................................................................................................................................... 7 Example 4: ...................................................................................................................................................... 8 Example 5: ...................................................................................................................................................... 8 Example 6: ...................................................................................................................................................... 9 Related Content ................................................................................................................................................ 10 Disclaimer and Liability Notice .......................................................................................................................... 11

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 2

Safty Interval In Generic Delta

Step By Step Explanation:


Here we are considering a Z table as the source of data for the data source. The delta specific field is AEDAT Changed On. 1. Create a Data Source and go to the Generic Delta tab.

2. Specify the delta specific field (in our case we considered AEDAT) and select Calendar Day.

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 3

Safty Interval In Generic Delta

3. Specify the safety limit.

4. The delta records can be monitored from RSA7

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 4

Safty Interval In Generic Delta

To find the time stamp, click on the respective icon on the Stat tab.

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 5

Safty Interval In Generic Delta

Scenario:
Safety Intervals are used in Generic Data Source to make sure that no data records are missed, even if those are not stored in the DB table when the extraction took place. Time stamps got created during extraction and which is in turn used for delta extraction. Time stamp holds the time (day) of the last data extraction. If in our case, where no safety limits is defined. Suppose Time Stamp holds 11.02.2010 (in mm.dd.yyyy) and the next delta extraction begins on 11.03.2010. In this case after extraction, the pointer is set to 11.03.2010. A document is created on 11:59 PM, 11.02.2010 and not saved until 01:05 AM, 11.03.2010. It is not considered during Initialization (or delta) because it is not saved and it wont be extracted the next time ether (delta).So the safety limit is always picked in such a way that is greater than the maximum time that it takes to create a record (document).
Note: Convention followed

Last Extraction
(Today-3) (Today-2) (Today-1)

Current day
(Today)

Data loaded from last day extraction Data yet to load as of current extraction. Data that is going to be loaded again.

Example 1:

When Upper and lower limit are blank. Upper limit = 0 & Lower Limit = 0.

Last Extraction
Data Loaded in BI (Init) Yet to load

Today

In case of blank there is always a risk of missing out records. Below image shows the Time Stamp (marker) after delta load.

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 6

Safty Interval In Generic Delta

Example 2:

When Upper and lower limit are blank. Upper limit = 0 & Lower Limit = 1.

Last Extraction
Data Loaded in BI (Init) Overlap Yet to load

Today

Delta will load data from previous day as well (data will overlap). Below image shows the Time Stamp (marker) after delta load.

Example 3:

When Upper and lower limit are blank. Upper limit = 1 & Lower Limit = 0.

Last Extraction
Data Loaded in BI (Init) Yet to load
For Init as well as Delta both extract one day before data.

Today

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 7

Safty Interval In Generic Delta

Example 4: When Upper and lower limit are blank. Upper limit = 1 & Lower Limit = 1.

Last Extraction
Data Loaded in BI (Init) (Overlap) Yet to load

Today

Example 5:

When Upper and lower limit are blank. Upper limit = 1 & Lower Limit = 2.

Last Extraction
Data Loaded in BI (Init) (Overlap) Yet to load

Today

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 8

Safty Interval In Generic Delta

Example 6:

When Upper and lower limit are blank. Upper limit = 2 & Lower Limit = 1.

Last Extraction
Data Loaded in BI (Init) (Overlap) Yet to load

Today

Note: It is always preferred to use upper limit and lower limit together (for system running 24/7), where upper limit describes, how old the data is. Otherwise it is suggested to use upper limit of calendar day. When we are using lower limit, some records may get processed twice, so we have to make sure that those data records are feed in DSO (overwrites the repeated records.

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 9

Safty Interval In Generic Delta

Related Content
Delta Load Management Framework Overview Generic Extraction Maintaining Generic DataSources

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 10

Safty Interval In Generic Delta

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.

SAP COMMUNITY NETWORK 2010 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com 11

También podría gustarte