SlideShare uma empresa Scribd logo
1 de 12
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 1
DB Connect with Delta Mechanism
Applies to:
SAP BI/BW. For more information, visit the EDW homepage
Summary
This Article demonstrates the steps for handling Delta mechanism with Relational Database Management
System (RDBMS) like SQL, ORACLE, etc.
Author: Obaidullah Shaikh
Company: AG Technologies
Created on: 02 September 2011
Author Bio
Obaidullah shaikh is a SAP BI Consultant with AG Technologies. He has good skill in technical areas
(ABAP) and he has experience of multiple custome reports development and has experience of
Migration/upgradation/Audit projects as wel.
DB Connect with Delta Mechanism
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 2
Table of Contents
Delta Mechanism in DB Connect........................................................................................................................3
SQL Table .......................................................................................................................................................3
SQL Delta Table..............................................................................................................................................4
Trigger.............................................................................................................................................................5
Database Connection with SAP BI .................................................................................................................6
Data source.....................................................................................................................................................6
Info Package ...................................................................................................................................................6
Data Transfer Process (DTP) .........................................................................................................................7
Records in BI...................................................................................................................................................7
Update Records in SQL ..................................................................................................................................8
Extract Delta to BW.........................................................................................................................................8
Clear Delta from SQL....................................................................................................................................10
Related Content................................................................................................................................................11
Disclaimer and Liability Notice..........................................................................................................................12
DB Connect with Delta Mechanism
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 3
Delta Mechanism in DB Connect
SQL Table
Create Table Named (MAT_DESC) as a Base Table
Inserted some Records in that.
DB Connect with Delta Mechanism
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 4
SQL Delta Table
Create another Table (Like Delta Queue in SAP R/3) that will be filled with only delta Records,
This table has same columns except the ‘DDate’, which will be used to provide Delta functionality
Initially, MAT_DESC_DELTA will be blank
DB Connect with Delta Mechanism
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 5
Trigger
Create Trigger on MAT_DESC table (whenever any new record will be inserted, this trigger will execute and
will fill the Delta table (MAT_DESC_DELTA))
Example: one record is inserted in MAT_DESC
That Record is updated in MAT_DESC_DELTA by Trigger
Similarly create another trigger for Update/Delete Command
DB Connect with Delta Mechanism
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 6
Database Connection with SAP BI
Refer the following Link
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/503c4394-cfb6-2e10-349e-85052e8e957d
Data source
In BI, Create Data source that will be based on base table (MAT_DESC)
Info Package
Create Info Package and load it to PSA
DB Connect with Delta Mechanism
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 7
Data Transfer Process (DTP)
Create Transformation / DTP and Trigger it
Records in BI
Finally Records in Targets
DB Connect with Delta Mechanism
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 8
Update Records in SQL
Enter some New records in MAT_DESC
It will be reflected in MAT_DESC_DELTA
Extract Delta to BW
Go to BW, Change the table of Data source, ( MAT_DESC changed with MAT_DESC_DELTA)
DB Connect with Delta Mechanism
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 9
Create other Info Package of that Data source
Will extract only Three new records
Then move it to target via DTP
DB Connect with Delta Mechanism
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 10
Clear Delta from SQL
Create another trigger that will clear the previous day records from MAT_DESC_DELTA at every Log on that
already has been fetched in BI
Here we can create user specific trigger
The Remaining part of Duplication of records can be handled easily in BI, either by ABAP code or passing
records through DSO in overwrite mode.
DB Connect with Delta Mechanism
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 11
Related Content
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/503c4394-cfb6-2e10-349e-85052e8e957d
http://help.sap.com/saphelp_nw04/helpdata/en/58/54f9c1562d104c9465dabd816f3f24/content.htm
http://www.saptechnical.com/Tutorials/BI/DBConnect/Index.htm
For more information, visit the EDW homepage
DB Connect with Delta Mechanism
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG 12
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.

Mais conteúdo relacionado

Mais procurados

Sap hana on technical level By Yogesh Gupte
Sap hana on technical level By Yogesh Gupte Sap hana on technical level By Yogesh Gupte
Sap hana on technical level By Yogesh Gupte yogeshgupte1977
 
Rama prasad owk etl hadoop_developer
Rama prasad owk etl hadoop_developerRama prasad owk etl hadoop_developer
Rama prasad owk etl hadoop_developerramaprasad owk
 
Beginner's Guide: Programming with ABAP on HANA
Beginner's Guide: Programming with ABAP on HANABeginner's Guide: Programming with ABAP on HANA
Beginner's Guide: Programming with ABAP on HANAAshish Saxena
 
Whats New on SAP HANA SPS 11 Core Database Capabilities
Whats New on SAP HANA SPS 11 Core Database CapabilitiesWhats New on SAP HANA SPS 11 Core Database Capabilities
Whats New on SAP HANA SPS 11 Core Database CapabilitiesSAP Technology
 
jerry_wen_resume
jerry_wen_resumejerry_wen_resume
jerry_wen_resumejerry wen
 
How is sap data services unique for sap hana integration
How is sap data services unique for sap hana integrationHow is sap data services unique for sap hana integration
How is sap data services unique for sap hana integrationFlavio Alejandro Corradini
 
New dimensions for_reporting
New dimensions for_reportingNew dimensions for_reporting
New dimensions for_reportingRahul Mahajan
 
Core Data Service
Core Data ServiceCore Data Service
Core Data ServiceSujoy Saha
 
Technical Overview of CDS View – SAP HANA Part I
Technical Overview of CDS View – SAP HANA Part ITechnical Overview of CDS View – SAP HANA Part I
Technical Overview of CDS View – SAP HANA Part IAshish Saxena
 
SAP HANA SPS09 - SAP HANA Core & SQL
SAP HANA SPS09 - SAP HANA Core & SQLSAP HANA SPS09 - SAP HANA Core & SQL
SAP HANA SPS09 - SAP HANA Core & SQLSAP Technology
 
Sand dna nearline for sap net weaver bw 7.0
Sand dna nearline for sap net weaver bw 7.0Sand dna nearline for sap net weaver bw 7.0
Sand dna nearline for sap net weaver bw 7.0Ram Tomar
 

Mais procurados (19)

Sap hana on technical level By Yogesh Gupte
Sap hana on technical level By Yogesh Gupte Sap hana on technical level By Yogesh Gupte
Sap hana on technical level By Yogesh Gupte
 
Rama prasad owk etl hadoop_developer
Rama prasad owk etl hadoop_developerRama prasad owk etl hadoop_developer
Rama prasad owk etl hadoop_developer
 
Bw_Hana
Bw_HanaBw_Hana
Bw_Hana
 
Beginner's Guide: Programming with ABAP on HANA
Beginner's Guide: Programming with ABAP on HANABeginner's Guide: Programming with ABAP on HANA
Beginner's Guide: Programming with ABAP on HANA
 
Whats New on SAP HANA SPS 11 Core Database Capabilities
Whats New on SAP HANA SPS 11 Core Database CapabilitiesWhats New on SAP HANA SPS 11 Core Database Capabilities
Whats New on SAP HANA SPS 11 Core Database Capabilities
 
jerry_wen_resume
jerry_wen_resumejerry_wen_resume
jerry_wen_resume
 
GCP- HANA add on
GCP- HANA add onGCP- HANA add on
GCP- HANA add on
 
Pol03262 usen
Pol03262 usenPol03262 usen
Pol03262 usen
 
How is sap data services unique for sap hana integration
How is sap data services unique for sap hana integrationHow is sap data services unique for sap hana integration
How is sap data services unique for sap hana integration
 
New dimensions for_reporting
New dimensions for_reportingNew dimensions for_reporting
New dimensions for_reporting
 
Core Data Service
Core Data ServiceCore Data Service
Core Data Service
 
Introduction To Pentaho
Introduction To PentahoIntroduction To Pentaho
Introduction To Pentaho
 
Easy dms basic process guide
Easy dms basic process guideEasy dms basic process guide
Easy dms basic process guide
 
Query
QueryQuery
Query
 
Sap dms document management system
Sap dms   document management systemSap dms   document management system
Sap dms document management system
 
Technical Overview of CDS View – SAP HANA Part I
Technical Overview of CDS View – SAP HANA Part ITechnical Overview of CDS View – SAP HANA Part I
Technical Overview of CDS View – SAP HANA Part I
 
SAP HANA Overview
SAP HANA OverviewSAP HANA Overview
SAP HANA Overview
 
SAP HANA SPS09 - SAP HANA Core & SQL
SAP HANA SPS09 - SAP HANA Core & SQLSAP HANA SPS09 - SAP HANA Core & SQL
SAP HANA SPS09 - SAP HANA Core & SQL
 
Sand dna nearline for sap net weaver bw 7.0
Sand dna nearline for sap net weaver bw 7.0Sand dna nearline for sap net weaver bw 7.0
Sand dna nearline for sap net weaver bw 7.0
 

Semelhante a Delta machenism with db connect

Db connect with sap bw
Db connect with sap bwDb connect with sap bw
Db connect with sap bwObaid shaikh
 
Sap bw lo extraction
Sap bw lo extractionSap bw lo extraction
Sap bw lo extractionObaid shaikh
 
Working with SAP Business Warehouse Elements in SAP Datasphere_.pdf
Working with SAP Business Warehouse Elements in SAP Datasphere_.pdfWorking with SAP Business Warehouse Elements in SAP Datasphere_.pdf
Working with SAP Business Warehouse Elements in SAP Datasphere_.pdfPanduM7
 
SAP HANA SPS10- Enterprise Information Management
SAP HANA SPS10- Enterprise Information ManagementSAP HANA SPS10- Enterprise Information Management
SAP HANA SPS10- Enterprise Information ManagementSAP Technology
 
Interfacing sap - BDC
Interfacing sap - BDC Interfacing sap - BDC
Interfacing sap - BDC Syam Sasi
 
What's New in SAP HANA SPS 11 DB Control Center (Operations)
What's New in SAP HANA SPS 11 DB Control Center (Operations)What's New in SAP HANA SPS 11 DB Control Center (Operations)
What's New in SAP HANA SPS 11 DB Control Center (Operations)SAP Technology
 
SAP_SLT_Guide_21122015.pdf
SAP_SLT_Guide_21122015.pdfSAP_SLT_Guide_21122015.pdf
SAP_SLT_Guide_21122015.pdfssuser17886a
 
SAP HANA Developer Access Beta program - 7 steps towards your first HANA report
SAP HANA Developer Access Beta program - 7 steps towards your first HANA reportSAP HANA Developer Access Beta program - 7 steps towards your first HANA report
SAP HANA Developer Access Beta program - 7 steps towards your first HANA reportRonald Konijnenburg
 
SAP BOBJ Rapid Mart Overview & Implementation
SAP BOBJ Rapid Mart Overview & ImplementationSAP BOBJ Rapid Mart Overview & Implementation
SAP BOBJ Rapid Mart Overview & ImplementationRamakrishna Kamurthy
 
Trigger bi process chain from ecc
Trigger bi process chain from eccTrigger bi process chain from ecc
Trigger bi process chain from eccObaid shaikh
 
Performance tuning in sap bi 7.0
Performance tuning in sap bi 7.0Performance tuning in sap bi 7.0
Performance tuning in sap bi 7.0gireesho
 
SQL Data Warehousing in SAP HANA (Sefan Linders)
SQL Data Warehousing in SAP HANA (Sefan Linders)SQL Data Warehousing in SAP HANA (Sefan Linders)
SQL Data Warehousing in SAP HANA (Sefan Linders)Twan van den Broek
 
Maintaining aggregates
Maintaining aggregatesMaintaining aggregates
Maintaining aggregatesSirisha Kumari
 
Sap Interview Questions - Part 1
Sap Interview Questions - Part 1Sap Interview Questions - Part 1
Sap Interview Questions - Part 1ReKruiTIn.com
 
Errors while sending packages from oltp to bi (one of error at the time of da...
Errors while sending packages from oltp to bi (one of error at the time of da...Errors while sending packages from oltp to bi (one of error at the time of da...
Errors while sending packages from oltp to bi (one of error at the time of da...bhaskarbi
 
Dynamic variant creation
Dynamic variant creationDynamic variant creation
Dynamic variant creationyoung moon woo
 
TDWI Roundtable: The HANA EDW
TDWI Roundtable: The HANA EDWTDWI Roundtable: The HANA EDW
TDWI Roundtable: The HANA EDWukc4
 

Semelhante a Delta machenism with db connect (20)

Db connect with sap bw
Db connect with sap bwDb connect with sap bw
Db connect with sap bw
 
Sap bw lo extraction
Sap bw lo extractionSap bw lo extraction
Sap bw lo extraction
 
Working with SAP Business Warehouse Elements in SAP Datasphere_.pdf
Working with SAP Business Warehouse Elements in SAP Datasphere_.pdfWorking with SAP Business Warehouse Elements in SAP Datasphere_.pdf
Working with SAP Business Warehouse Elements in SAP Datasphere_.pdf
 
Lsmw
LsmwLsmw
Lsmw
 
SAP HANA SPS10- Enterprise Information Management
SAP HANA SPS10- Enterprise Information ManagementSAP HANA SPS10- Enterprise Information Management
SAP HANA SPS10- Enterprise Information Management
 
Interfacing sap - BDC
Interfacing sap - BDC Interfacing sap - BDC
Interfacing sap - BDC
 
What's New in SAP HANA SPS 11 DB Control Center (Operations)
What's New in SAP HANA SPS 11 DB Control Center (Operations)What's New in SAP HANA SPS 11 DB Control Center (Operations)
What's New in SAP HANA SPS 11 DB Control Center (Operations)
 
SAP_SLT_Guide_21122015.pdf
SAP_SLT_Guide_21122015.pdfSAP_SLT_Guide_21122015.pdf
SAP_SLT_Guide_21122015.pdf
 
Asset accounting
Asset accountingAsset accounting
Asset accounting
 
SAP HANA Developer Access Beta program - 7 steps towards your first HANA report
SAP HANA Developer Access Beta program - 7 steps towards your first HANA reportSAP HANA Developer Access Beta program - 7 steps towards your first HANA report
SAP HANA Developer Access Beta program - 7 steps towards your first HANA report
 
SAP BOBJ Rapid Mart Overview & Implementation
SAP BOBJ Rapid Mart Overview & ImplementationSAP BOBJ Rapid Mart Overview & Implementation
SAP BOBJ Rapid Mart Overview & Implementation
 
Trigger bi process chain from ecc
Trigger bi process chain from eccTrigger bi process chain from ecc
Trigger bi process chain from ecc
 
Performance tuning in sap bi 7.0
Performance tuning in sap bi 7.0Performance tuning in sap bi 7.0
Performance tuning in sap bi 7.0
 
SQL Data Warehousing in SAP HANA (Sefan Linders)
SQL Data Warehousing in SAP HANA (Sefan Linders)SQL Data Warehousing in SAP HANA (Sefan Linders)
SQL Data Warehousing in SAP HANA (Sefan Linders)
 
Maintaining aggregates
Maintaining aggregatesMaintaining aggregates
Maintaining aggregates
 
Sap Interview Questions - Part 1
Sap Interview Questions - Part 1Sap Interview Questions - Part 1
Sap Interview Questions - Part 1
 
SAS/Tableau integration
SAS/Tableau integrationSAS/Tableau integration
SAS/Tableau integration
 
Errors while sending packages from oltp to bi (one of error at the time of da...
Errors while sending packages from oltp to bi (one of error at the time of da...Errors while sending packages from oltp to bi (one of error at the time of da...
Errors while sending packages from oltp to bi (one of error at the time of da...
 
Dynamic variant creation
Dynamic variant creationDynamic variant creation
Dynamic variant creation
 
TDWI Roundtable: The HANA EDW
TDWI Roundtable: The HANA EDWTDWI Roundtable: The HANA EDW
TDWI Roundtable: The HANA EDW
 

Último

TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 

Último (20)

TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 

Delta machenism with db connect

  • 1. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 1 DB Connect with Delta Mechanism Applies to: SAP BI/BW. For more information, visit the EDW homepage Summary This Article demonstrates the steps for handling Delta mechanism with Relational Database Management System (RDBMS) like SQL, ORACLE, etc. Author: Obaidullah Shaikh Company: AG Technologies Created on: 02 September 2011 Author Bio Obaidullah shaikh is a SAP BI Consultant with AG Technologies. He has good skill in technical areas (ABAP) and he has experience of multiple custome reports development and has experience of Migration/upgradation/Audit projects as wel.
  • 2. DB Connect with Delta Mechanism SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 2 Table of Contents Delta Mechanism in DB Connect........................................................................................................................3 SQL Table .......................................................................................................................................................3 SQL Delta Table..............................................................................................................................................4 Trigger.............................................................................................................................................................5 Database Connection with SAP BI .................................................................................................................6 Data source.....................................................................................................................................................6 Info Package ...................................................................................................................................................6 Data Transfer Process (DTP) .........................................................................................................................7 Records in BI...................................................................................................................................................7 Update Records in SQL ..................................................................................................................................8 Extract Delta to BW.........................................................................................................................................8 Clear Delta from SQL....................................................................................................................................10 Related Content................................................................................................................................................11 Disclaimer and Liability Notice..........................................................................................................................12
  • 3. DB Connect with Delta Mechanism SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 3 Delta Mechanism in DB Connect SQL Table Create Table Named (MAT_DESC) as a Base Table Inserted some Records in that.
  • 4. DB Connect with Delta Mechanism SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 4 SQL Delta Table Create another Table (Like Delta Queue in SAP R/3) that will be filled with only delta Records, This table has same columns except the ‘DDate’, which will be used to provide Delta functionality Initially, MAT_DESC_DELTA will be blank
  • 5. DB Connect with Delta Mechanism SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 5 Trigger Create Trigger on MAT_DESC table (whenever any new record will be inserted, this trigger will execute and will fill the Delta table (MAT_DESC_DELTA)) Example: one record is inserted in MAT_DESC That Record is updated in MAT_DESC_DELTA by Trigger Similarly create another trigger for Update/Delete Command
  • 6. DB Connect with Delta Mechanism SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 6 Database Connection with SAP BI Refer the following Link http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/503c4394-cfb6-2e10-349e-85052e8e957d Data source In BI, Create Data source that will be based on base table (MAT_DESC) Info Package Create Info Package and load it to PSA
  • 7. DB Connect with Delta Mechanism SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 7 Data Transfer Process (DTP) Create Transformation / DTP and Trigger it Records in BI Finally Records in Targets
  • 8. DB Connect with Delta Mechanism SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 8 Update Records in SQL Enter some New records in MAT_DESC It will be reflected in MAT_DESC_DELTA Extract Delta to BW Go to BW, Change the table of Data source, ( MAT_DESC changed with MAT_DESC_DELTA)
  • 9. DB Connect with Delta Mechanism SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 9 Create other Info Package of that Data source Will extract only Three new records Then move it to target via DTP
  • 10. DB Connect with Delta Mechanism SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 10 Clear Delta from SQL Create another trigger that will clear the previous day records from MAT_DESC_DELTA at every Log on that already has been fetched in BI Here we can create user specific trigger The Remaining part of Duplication of records can be handled easily in BI, either by ABAP code or passing records through DSO in overwrite mode.
  • 11. DB Connect with Delta Mechanism SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 11 Related Content http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/503c4394-cfb6-2e10-349e-85052e8e957d http://help.sap.com/saphelp_nw04/helpdata/en/58/54f9c1562d104c9465dabd816f3f24/content.htm http://www.saptechnical.com/Tutorials/BI/DBConnect/Index.htm For more information, visit the EDW homepage
  • 12. DB Connect with Delta Mechanism SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 12 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.