SlideShare a Scribd company logo
1 of 11
Download to read offline
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 1
SQVI – Data Validation Tool -
Quickviewer on BI
Applies to:
SAP BW 3.X and BI NetWeaver 2004s
Summary
The objective of this article is to explain the importance and usage of Quick Viewer in BI to compare large
amount of data between ODS‟s, Master data tables and other RDBMS tables. We often do comparison
between database tables to find the difference in each to trouble shoot the errors also we compare various
custom tables which are maintained for look up and if data is not available for lookup we can use this tool to
compare how many records is having a problem. For Example we generally join two ODS‟s to compare the
matching and not matching records to see any mismatches. This paper describes on how to compare the
database tables within SAP BI and also R/3 systems using QuickViewer without using other external tools
like excel to compare. We have a ready made tool within BW and R/3 to perform this activity.
Author: Harishraju Govindaraju
Company: Accenture Services Private Ltd
Created on: 20 February 2009
Author Bio
Harishraju Govindaraju is working as SAP BI Consultant in Accenture Services Private Ltd and
having extensive expertise in SAP BI and ABAP.
SQVI – Data Validation Tool - Quickviewer on BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 2
Table of Contents
Scenario..............................................................................................................................................................3
Creating a QuickView......................................................................................................................................3
LEFT OUTER JOIN.........................................................................................................................................6
In a Nutshell:................................................................................................................................................................6
Executing QuickView ......................................................................................................................................8
Output: .........................................................................................................................................................................8
Restrictions/Limitations: ..................................................................................................................................9
Relate Contents ................................................................................................................................................10
Disclaimer and Liability Notice..........................................................................................................................11
SQVI – Data Validation Tool - Quickviewer on BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 3
Scenario
For an example, we need to validate whether we have captured all sales order header and item records
correctly, we would need to validate both the Header ODS and Item ODS which we generally do by
downloading the data to excel or other tools and compare each other to find the discrepancies. With this tool,
you can easily compare both the ODS‟s and come to a conclusion which all documents are missing either in
header or item level ODS.
This tool can be used to compare only when you have a common key or column between tables.
Creating a QuickView
Call the Quickviewer using transaction SQVI.
Enter the name of the QuickView. QuickView names can contain a maximum of 14 characters.
Choose Create.
Enter a title and comment for the QuickView, if you think they are relevant.
SQVI – Data Validation Tool - Quickviewer on BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 4
The first step in creating a QuickView is selecting its data source. You can choose one of the following:
 Table
 Table join
Multiple tables can be linked together to form a join. The result set is a table, each of the lines of
which contains all the fields of all the tables used in the join.
 Logical database
Logical databases are pre-defined paths for accessing database tables. These paths can be made
available to various reports in code form. Logical databases are especially useful if the structure of
the data you want to read corresponds to a hierarchical view.
 InfoSet
InfoSets are used in SAP Query. InfoSets can be based, among others, on logical databases. Since
the number of fields in a logical database can be extremely large, you can also hide fields. In
addition, you can define help fields that users can edit like database fields.
If you choose an InfoSet as your data source, the InfoSet must come from the standard query
area. InfoSets from the global query area may not be used when creating a QuickView.
I will be using Table Join option to compare data between ODS‟s.
Choose Basis mode if you want to create the list directly with no list design.
To insert the tables for comparison, go to Menu EDIT – Insert Table
SQVI – Data Validation Tool - Quickviewer on BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 5
Give the technical name of the table. In this case I am giving the technical name of the ODS active data
table.
Similarly add other table for comparison. The system will automatically join the relevant fields whose
technical names and characteristics are same. You can also customize the join as required.
In this case I am joining Sales document and Source system as my join criteria.
The above is a simple join which displays all the data that are common in both. But I need to search all those
matching records and unmatched records. For which I will be using a „LEFT OUTER JOIN‟.
SQVI – Data Validation Tool - Quickviewer on BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 6
LEFT OUTER JOIN
A LEFT OUTER JOIN is one of the JOIN operations that allow you to specify a join clause. It preserves the
unmatched rows from the first (left) table, joining them with a NULL row in the shape of the second (right)
table.
In a Nutshell:
The result of a left outer join for table A and B always contains all records of the "left" table (A), even if the
join-condition does not find any matching record in the "right" table (B). All the unmatched records of table „A‟
will be matched to a „Null‟ in table „B‟.
In the above example DEPTNO column is the common key between the two tables. Now we could see
DEPTNO „E01‟ is not part of the second table, which is displayed in the result table with a null, here indicated
by „-„.
So by filtering on D.DEPTNO to null in result table we could get all the records that are not present in second
table.
To use Left outer join, Right click the join and you will get the below option to select the Left Outer Join.
SQVI – Data Validation Tool - Quickviewer on BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 7
In the left panel, we could see the two tables being displayed with the following options.
 List Fields – Checking the fields in list fields enables us to display those fields in the final output.
 Selection Fields – Checking the fields in selection fields helps us to customize our selection screens
before your report is executed.
Once the list fields and selection fields are defined for the tables, SAVE and Check the query.
After Saving, Hit the Back button.
We now see our query “ZCOMPARE_ODS” created.
SQVI – Data Validation Tool - Quickviewer on BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 8
Note: All quick views are user specific and can be seen only by the same user who has created the quick view.
Executing QuickView
To execute a QuickView , select Execute or Execute with variant. If you select Execute with variant, you see
a dialog box where you can enter the variant name.
Once we execute the query, we get the selection screen based on our formatting. Also you can execute this
report in both foreground and background.
Output:
The left out join output will display both the matched and unmatched records. But as of now I am interested
in only seeing the unmatched records. Unmatched records are those records that are present in table „A‟ and
not present in table „B‟. In order to display only the unmatched records I restrict the sales documents of the
second ODS to Null in the selection screen as shown below.
SQVI – Data Validation Tool - Quickviewer on BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 9
The Output explains that the below document numbers are present in left table but not in the right table.
Restrictions/Limitations:
This tool can be used to compare only when you have a common key or column between tables. And it is
recommended to run this report with some selections which fetches considerable amount of data.
SQVI – Data Validation Tool - Quickviewer on BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 10
Relate Contents
For more information, visit the Business Intelligence homepage.
SQVI – Data Validation Tool - Quickviewer on BI
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 11
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.

More Related Content

What's hot

SAP BW - Info object (characteristics)
SAP BW - Info object (characteristics)SAP BW - Info object (characteristics)
SAP BW - Info object (characteristics)Yasmin Ashraf
 
TOMAS.BP-Business plan
TOMAS.BP-Business planTOMAS.BP-Business plan
TOMAS.BP-Business plantomasdse
 
Reading Fixed And Varying Data
Reading Fixed And Varying DataReading Fixed And Varying Data
Reading Fixed And Varying Dataguest2160992
 
X rec extened reconciliation using excel vba
X rec   extened reconciliation using excel vbaX rec   extened reconciliation using excel vba
X rec extened reconciliation using excel vbasenthilsundaresan
 
Sas Macro Examples
Sas Macro ExamplesSas Macro Examples
Sas Macro ExamplesSASTechies
 
0104 abap dictionary
0104 abap dictionary0104 abap dictionary
0104 abap dictionaryvkyecc1
 
Understanding SAS Data Step Processing
Understanding SAS Data Step ProcessingUnderstanding SAS Data Step Processing
Understanding SAS Data Step Processingguest2160992
 

What's hot (10)

SAP BW - Info object (characteristics)
SAP BW - Info object (characteristics)SAP BW - Info object (characteristics)
SAP BW - Info object (characteristics)
 
TOMAS.BP-Business plan
TOMAS.BP-Business planTOMAS.BP-Business plan
TOMAS.BP-Business plan
 
Reading Fixed And Varying Data
Reading Fixed And Varying DataReading Fixed And Varying Data
Reading Fixed And Varying Data
 
X rec extened reconciliation using excel vba
X rec   extened reconciliation using excel vbaX rec   extened reconciliation using excel vba
X rec extened reconciliation using excel vba
 
Database
DatabaseDatabase
Database
 
BAPI - Criação de Ordem de Manutenção
BAPI - Criação de Ordem de ManutençãoBAPI - Criação de Ordem de Manutenção
BAPI - Criação de Ordem de Manutenção
 
Sas Macro Examples
Sas Macro ExamplesSas Macro Examples
Sas Macro Examples
 
0104 abap dictionary
0104 abap dictionary0104 abap dictionary
0104 abap dictionary
 
Pivot tables c01
Pivot tables c01Pivot tables c01
Pivot tables c01
 
Understanding SAS Data Step Processing
Understanding SAS Data Step ProcessingUnderstanding SAS Data Step Processing
Understanding SAS Data Step Processing
 

Similar to Query

SAP Quickviewer
SAP QuickviewerSAP Quickviewer
SAP Quickviewerotchmarz
 
New dimensions for_reporting
New dimensions for_reportingNew dimensions for_reporting
New dimensions for_reportingRahul Mahajan
 
Maintaining aggregates
Maintaining aggregatesMaintaining aggregates
Maintaining aggregatesSirisha Kumari
 
MD04 Report in BW
MD04 Report in BWMD04 Report in BW
MD04 Report in BWtasmc
 
Using error stack and error dt ps in sap bi 7.0
Using error stack and error dt ps in sap bi 7.0Using error stack and error dt ps in sap bi 7.0
Using error stack and error dt ps in sap bi 7.0gireesho
 
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
 
Creating new unit of measure in sap bw
Creating new unit of measure in sap bwCreating new unit of measure in sap bw
Creating new unit of measure in sap bwRajat Agrawal
 
Abap interview questions and answers
Abap interview questions and answersAbap interview questions and answers
Abap interview questions and answersKaustav Pyne
 
Delta machenism with db connect
Delta machenism with db connectDelta machenism with db connect
Delta machenism with db connectObaid shaikh
 
A treatise on SAP logistics information reporting
A treatise on SAP logistics information reportingA treatise on SAP logistics information reporting
A treatise on SAP logistics information reportingVijay Raj
 
Lo extraction part 3 extractor logic
Lo extraction   part 3 extractor logicLo extraction   part 3 extractor logic
Lo extraction part 3 extractor logicJNTU University
 
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
 
Using infoset query %2c sap query and quick viewer
Using infoset query %2c sap query and quick viewerUsing infoset query %2c sap query and quick viewer
Using infoset query %2c sap query and quick viewerShailendra Surana
 
Using infoset query ,sap query and quick viewer
Using infoset query ,sap query and quick viewerUsing infoset query ,sap query and quick viewer
Using infoset query ,sap query and quick viewerbsm fico
 

Similar to Query (20)

SAP Quickviewer
SAP QuickviewerSAP Quickviewer
SAP Quickviewer
 
New dimensions for_reporting
New dimensions for_reportingNew dimensions for_reporting
New dimensions for_reporting
 
Maintaining aggregates
Maintaining aggregatesMaintaining aggregates
Maintaining aggregates
 
MD04 Report in BW
MD04 Report in BWMD04 Report in BW
MD04 Report in BW
 
Using error stack and error dt ps in sap bi 7.0
Using error stack and error dt ps in sap bi 7.0Using error stack and error dt ps in sap bi 7.0
Using error stack and error dt ps in sap bi 7.0
 
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
 
Creating new unit of measure in sap bw
Creating new unit of measure in sap bwCreating new unit of measure in sap bw
Creating new unit of measure in sap bw
 
Co pa extraction
Co pa extractionCo pa extraction
Co pa extraction
 
Abap interview questions and answers
Abap interview questions and answersAbap interview questions and answers
Abap interview questions and answers
 
Cool features 7.4
Cool features 7.4Cool features 7.4
Cool features 7.4
 
Sap business warehouse_v1
Sap business warehouse_v1Sap business warehouse_v1
Sap business warehouse_v1
 
Delta machenism with db connect
Delta machenism with db connectDelta machenism with db connect
Delta machenism with db connect
 
A treatise on SAP logistics information reporting
A treatise on SAP logistics information reportingA treatise on SAP logistics information reporting
A treatise on SAP logistics information reporting
 
Power Bi Basics
Power Bi BasicsPower Bi Basics
Power Bi Basics
 
Query
QueryQuery
Query
 
Lo extraction part 3 extractor logic
Lo extraction   part 3 extractor logicLo extraction   part 3 extractor logic
Lo extraction part 3 extractor logic
 
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...
 
Using infoset query %2c sap query and quick viewer
Using infoset query %2c sap query and quick viewerUsing infoset query %2c sap query and quick viewer
Using infoset query %2c sap query and quick viewer
 
Using infoset query ,sap query and quick viewer
Using infoset query ,sap query and quick viewerUsing infoset query ,sap query and quick viewer
Using infoset query ,sap query and quick viewer
 
Power BI Interview Questions
Power BI Interview QuestionsPower BI Interview Questions
Power BI Interview Questions
 

Recently uploaded

Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 

Recently uploaded (20)

Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 

Query

  • 1. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 1 SQVI – Data Validation Tool - Quickviewer on BI Applies to: SAP BW 3.X and BI NetWeaver 2004s Summary The objective of this article is to explain the importance and usage of Quick Viewer in BI to compare large amount of data between ODS‟s, Master data tables and other RDBMS tables. We often do comparison between database tables to find the difference in each to trouble shoot the errors also we compare various custom tables which are maintained for look up and if data is not available for lookup we can use this tool to compare how many records is having a problem. For Example we generally join two ODS‟s to compare the matching and not matching records to see any mismatches. This paper describes on how to compare the database tables within SAP BI and also R/3 systems using QuickViewer without using other external tools like excel to compare. We have a ready made tool within BW and R/3 to perform this activity. Author: Harishraju Govindaraju Company: Accenture Services Private Ltd Created on: 20 February 2009 Author Bio Harishraju Govindaraju is working as SAP BI Consultant in Accenture Services Private Ltd and having extensive expertise in SAP BI and ABAP.
  • 2. SQVI – Data Validation Tool - Quickviewer on BI SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 2 Table of Contents Scenario..............................................................................................................................................................3 Creating a QuickView......................................................................................................................................3 LEFT OUTER JOIN.........................................................................................................................................6 In a Nutshell:................................................................................................................................................................6 Executing QuickView ......................................................................................................................................8 Output: .........................................................................................................................................................................8 Restrictions/Limitations: ..................................................................................................................................9 Relate Contents ................................................................................................................................................10 Disclaimer and Liability Notice..........................................................................................................................11
  • 3. SQVI – Data Validation Tool - Quickviewer on BI SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 3 Scenario For an example, we need to validate whether we have captured all sales order header and item records correctly, we would need to validate both the Header ODS and Item ODS which we generally do by downloading the data to excel or other tools and compare each other to find the discrepancies. With this tool, you can easily compare both the ODS‟s and come to a conclusion which all documents are missing either in header or item level ODS. This tool can be used to compare only when you have a common key or column between tables. Creating a QuickView Call the Quickviewer using transaction SQVI. Enter the name of the QuickView. QuickView names can contain a maximum of 14 characters. Choose Create. Enter a title and comment for the QuickView, if you think they are relevant.
  • 4. SQVI – Data Validation Tool - Quickviewer on BI SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 4 The first step in creating a QuickView is selecting its data source. You can choose one of the following:  Table  Table join Multiple tables can be linked together to form a join. The result set is a table, each of the lines of which contains all the fields of all the tables used in the join.  Logical database Logical databases are pre-defined paths for accessing database tables. These paths can be made available to various reports in code form. Logical databases are especially useful if the structure of the data you want to read corresponds to a hierarchical view.  InfoSet InfoSets are used in SAP Query. InfoSets can be based, among others, on logical databases. Since the number of fields in a logical database can be extremely large, you can also hide fields. In addition, you can define help fields that users can edit like database fields. If you choose an InfoSet as your data source, the InfoSet must come from the standard query area. InfoSets from the global query area may not be used when creating a QuickView. I will be using Table Join option to compare data between ODS‟s. Choose Basis mode if you want to create the list directly with no list design. To insert the tables for comparison, go to Menu EDIT – Insert Table
  • 5. SQVI – Data Validation Tool - Quickviewer on BI SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 5 Give the technical name of the table. In this case I am giving the technical name of the ODS active data table. Similarly add other table for comparison. The system will automatically join the relevant fields whose technical names and characteristics are same. You can also customize the join as required. In this case I am joining Sales document and Source system as my join criteria. The above is a simple join which displays all the data that are common in both. But I need to search all those matching records and unmatched records. For which I will be using a „LEFT OUTER JOIN‟.
  • 6. SQVI – Data Validation Tool - Quickviewer on BI SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 6 LEFT OUTER JOIN A LEFT OUTER JOIN is one of the JOIN operations that allow you to specify a join clause. It preserves the unmatched rows from the first (left) table, joining them with a NULL row in the shape of the second (right) table. In a Nutshell: The result of a left outer join for table A and B always contains all records of the "left" table (A), even if the join-condition does not find any matching record in the "right" table (B). All the unmatched records of table „A‟ will be matched to a „Null‟ in table „B‟. In the above example DEPTNO column is the common key between the two tables. Now we could see DEPTNO „E01‟ is not part of the second table, which is displayed in the result table with a null, here indicated by „-„. So by filtering on D.DEPTNO to null in result table we could get all the records that are not present in second table. To use Left outer join, Right click the join and you will get the below option to select the Left Outer Join.
  • 7. SQVI – Data Validation Tool - Quickviewer on BI SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 7 In the left panel, we could see the two tables being displayed with the following options.  List Fields – Checking the fields in list fields enables us to display those fields in the final output.  Selection Fields – Checking the fields in selection fields helps us to customize our selection screens before your report is executed. Once the list fields and selection fields are defined for the tables, SAVE and Check the query. After Saving, Hit the Back button. We now see our query “ZCOMPARE_ODS” created.
  • 8. SQVI – Data Validation Tool - Quickviewer on BI SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 8 Note: All quick views are user specific and can be seen only by the same user who has created the quick view. Executing QuickView To execute a QuickView , select Execute or Execute with variant. If you select Execute with variant, you see a dialog box where you can enter the variant name. Once we execute the query, we get the selection screen based on our formatting. Also you can execute this report in both foreground and background. Output: The left out join output will display both the matched and unmatched records. But as of now I am interested in only seeing the unmatched records. Unmatched records are those records that are present in table „A‟ and not present in table „B‟. In order to display only the unmatched records I restrict the sales documents of the second ODS to Null in the selection screen as shown below.
  • 9. SQVI – Data Validation Tool - Quickviewer on BI SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 9 The Output explains that the below document numbers are present in left table but not in the right table. Restrictions/Limitations: This tool can be used to compare only when you have a common key or column between tables. And it is recommended to run this report with some selections which fetches considerable amount of data.
  • 10. SQVI – Data Validation Tool - Quickviewer on BI SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 10 Relate Contents For more information, visit the Business Intelligence homepage.
  • 11. SQVI – Data Validation Tool - Quickviewer on BI SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 11 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.