SlideShare a Scribd company logo
1 of 24
08/11/2019 1Jonathan Eemans JE Consulting
Queries in SAP
08/11/2019 2
Queries in SAP
Introduction
How does the InfoSet query functionality work?
How to create an InfoSet query?
Attention points
08/11/2019 3
Introduction
• In SAP R/3 and SAP ECC different reporting tools exist to create reports
directly in the ERP environment without coding.
• As from SAP S/4HANA the reporting framework changes and other reporting
tools are available.
Capabilities InfoSet Query
Drilldown
Reporting
Report Painter /
Writer
Available for all SAP modules +++ + ++
Easy to create +++ + +++
User-friendly ++ + +++
Interactive report output +++ +
Formatting possibilities ++ +++
Integration with MS products +++ +++ +++
08/11/2019 4
Introduction
• 6 reasons to use the query functionality in SAP R/3 or SAP:
It is delivered with SAP
It is available across all modules
It is easy to teach users to write their own reports
It requires minimal configuration
Security is built-in — no hard-coding
No ABAP programming skills required
08/11/2019 5
Introduction
• Useful transactions:
 SQ03: SAP Query - Maintain user groups
 SQ02: SAP Query - Maintain InfoSet
 SQ01: SAP Query - Maintain queries
 SE93: Transaction codes
 SE11: Dictionary - Tables
 SE16(N): General Table Display
08/11/2019 6
How does the infoset query functionality work?
08/11/2019 7
How to create an InfoSet query?
Proper configuration of these components consists of the following six steps:
1. Determine your administration strategy
2. Decide which application area to use for developing reports
3. Create user groups to organize reports
4. Create InfoSet
5. Create query
6. Create transaction code (if required)
08/11/2019 8
Step 1: Determine your administration strategy
• The first step in configuring the query functionality is to determine where
users can develop and create queries.
1. Configure and enable its use in the live production environment
2. Configure and enable its use only in a development client
3. A little bit of both
• Best practice: queries are always created in the development environment
and transported. All queries need to be tested in staging with special
attention to performance issues!
08/11/2019 9
Step 2: Decide which application area to use for
developing reports
• 2 application areas exist…
 Global application area: queries that are created in the global
application area appear in all clients that reside on a database server.
 Standard application area: in contrast, the standard application area
is client-specific.
 If you want to assign a transaction code to your query, create your
query in the standard application area.
08/11/2019 10
Step 3: Create user groups to organise reports
• The concept of a user group allows you to organise reports by segregating
a group of related business users from all other business users for
reporting purposes.
• In other words, everyone in a particular department creates reports in the
same area within SAP, which is called a user group.
• User Groups are maintained using the transaction code SQ03.
08/11/2019 11
Step 4: Create InfoSet
• InfoSets are data sources used in getting the data for SAP reports. Such
data sources are evaluated in queries.
• InfoSets are allocated to a user group; the members of a group can access
the InfoSet to which the group is allocated.
• InfoSets are maintained using the transaction code SQ02.
08/11/2019 12
Step 4: Create InfoSet (cont’d)
A table join includes several tables
that are read by SELECT statements.
Specify the name of the table that
you want to use to start the join
definition. You can choose more
tables later.
The data is read directly from a
single table.
A logical database is a method by
which ABAP programs read and
process data. The sequence in
which the data is supplied to the
programs is determined by a tree
structure.
08/11/2019 13
Step 4: Create InfoSet (cont’d)
• Join conditions
08/11/2019 14
Step 4: Create InfoSet (cont’d)
• Field groups
08/11/2019 15
Step 4: Create InfoSet (cont’d)
• Assign InfoSet to User Group
08/11/2019 16
Step 5: Create Query
• A query is a tool used to create lists using data available for analysis
purposes in InfoSet.
• Queries are assigned to InfoSet and user group(s).
• A query is created and maintained using the transaction code SQ01.
08/11/2019 17
Step 5: Create Query (cont’d)
• Assign InfoSet
• General parameters
08/11/2019 18
Step 5: Create Query (cont’d)
• Select user group
08/11/2019 19
Step 5: Create Query (cont’d)
• Define selection fields and fields in report
• Generate program
08/11/2019 20
Step 5: Create Query (cont’d)
• Transport
08/11/2019 21
Step 6: Create transaction code
• There are two options for executing queries…
1. Execute query from transaction SQ01
Not really user-friendly
2. Create custom transaction code to query
Authorisations need to be updated
08/11/2019 22
Step 6: Create transaction code
A new transaction code can be created using transaction SE93
08/11/2019 23
Query: Result
08/11/2019 24
Attention points
Performance of queries needs to be checked before transporting new reports
to production !
Simple lists with limited or no formatting !
Be careful with reports on transactional data !

More Related Content

What's hot

Chapter 01 user exits
Chapter 01 user exitsChapter 01 user exits
Chapter 01 user exits
Kranthi Kumar
 
1000 solved questions
1000 solved questions1000 solved questions
1000 solved questions
Kranthi Kumar
 
SAP Adding fields to dynamic selection for fbln transactions (2)
SAP Adding fields to dynamic selection for fbln transactions (2)SAP Adding fields to dynamic selection for fbln transactions (2)
SAP Adding fields to dynamic selection for fbln transactions (2)
Imran M Arab
 

What's hot (20)

Functional spcification doc for vendor debit memo report
Functional spcification doc for vendor debit memo reportFunctional spcification doc for vendor debit memo report
Functional spcification doc for vendor debit memo report
 
Functional specification doc Gst purcahse register
Functional specification doc Gst purcahse registerFunctional specification doc Gst purcahse register
Functional specification doc Gst purcahse register
 
SAP ABAP - Needed Notes
SAP   ABAP - Needed NotesSAP   ABAP - Needed Notes
SAP ABAP - Needed Notes
 
New Asset Accounting in S4 HANA
New Asset Accounting in S4 HANANew Asset Accounting in S4 HANA
New Asset Accounting in S4 HANA
 
Chapter 01 user exits
Chapter 01 user exitsChapter 01 user exits
Chapter 01 user exits
 
1000 solved questions
1000 solved questions1000 solved questions
1000 solved questions
 
Bank reconciliation ff67
Bank reconciliation ff67Bank reconciliation ff67
Bank reconciliation ff67
 
Fi enhancement technique how-to-guide on the usage of business transaction ...
Fi enhancement technique   how-to-guide on the usage of business transaction ...Fi enhancement technique   how-to-guide on the usage of business transaction ...
Fi enhancement technique how-to-guide on the usage of business transaction ...
 
Fi vendor ageing functional spec.
Fi vendor ageing functional spec.Fi vendor ageing functional spec.
Fi vendor ageing functional spec.
 
Sap User Exit for Functional Consultant
Sap User Exit for Functional ConsultantSap User Exit for Functional Consultant
Sap User Exit for Functional Consultant
 
SAP Flexible workflows.pptx
SAP Flexible workflows.pptxSAP Flexible workflows.pptx
SAP Flexible workflows.pptx
 
SAP Adding fields to dynamic selection for fbln transactions (2)
SAP Adding fields to dynamic selection for fbln transactions (2)SAP Adding fields to dynamic selection for fbln transactions (2)
SAP Adding fields to dynamic selection for fbln transactions (2)
 
Cif monitoring-guideline-v3
Cif monitoring-guideline-v3Cif monitoring-guideline-v3
Cif monitoring-guideline-v3
 
Version management of abap programs
Version management of abap programsVersion management of abap programs
Version management of abap programs
 
Abap Questions
Abap QuestionsAbap Questions
Abap Questions
 
HR ABAP Technical Overview | http://sapdocs.info/
HR ABAP Technical Overview | http://sapdocs.info/HR ABAP Technical Overview | http://sapdocs.info/
HR ABAP Technical Overview | http://sapdocs.info/
 
SAP Fiori ppt
SAP Fiori pptSAP Fiori ppt
SAP Fiori ppt
 
Sap query creation & transcation code creation for sap query
Sap query creation & transcation code creation for sap querySap query creation & transcation code creation for sap query
Sap query creation & transcation code creation for sap query
 
Sap Purchase Order Workflow
Sap Purchase Order WorkflowSap Purchase Order Workflow
Sap Purchase Order Workflow
 
FS for FICO
FS for FICOFS for FICO
FS for FICO
 

Similar to Queries in SAP: Introduction

How to broadcast a b ex report through e
How to broadcast a b ex report through eHow to broadcast a b ex report through e
How to broadcast a b ex report through e
Zaynab Fadlallah
 
51191092 sap-r3-extraction
51191092 sap-r3-extraction51191092 sap-r3-extraction
51191092 sap-r3-extraction
hnt_dv
 
Day 6.3 extraction_business_content_and_generic
Day 6.3 extraction_business_content_and_genericDay 6.3 extraction_business_content_and_generic
Day 6.3 extraction_business_content_and_generic
tovetrivel
 

Similar to Queries in SAP: Introduction (20)

IRJET- Transaction Purchase Order using Sap Tool
IRJET- Transaction Purchase Order using Sap ToolIRJET- Transaction Purchase Order using Sap Tool
IRJET- Transaction Purchase Order using Sap Tool
 
Abap interview questions and answers
Abap interview questions and answersAbap interview questions and answers
Abap interview questions and answers
 
Importance of ‘Centralized Event collection’ and BigData platform for Analysis !
Importance of ‘Centralized Event collection’ and BigData platform for Analysis !Importance of ‘Centralized Event collection’ and BigData platform for Analysis !
Importance of ‘Centralized Event collection’ and BigData platform for Analysis !
 
SAP Basis Overview
SAP Basis OverviewSAP Basis Overview
SAP Basis Overview
 
Sap fico fa qs(1)
Sap fico fa qs(1)Sap fico fa qs(1)
Sap fico fa qs(1)
 
Sap fico fa qs
Sap fico fa qsSap fico fa qs
Sap fico fa qs
 
Job portal
Job portalJob portal
Job portal
 
Exclusive SAP Basis Training Book | www.sapdocs.info
Exclusive SAP Basis Training Book | www.sapdocs.infoExclusive SAP Basis Training Book | www.sapdocs.info
Exclusive SAP Basis Training Book | www.sapdocs.info
 
Raman O
Raman ORaman O
Raman O
 
IRJET- Restful Backend to Serve any Frontend System
IRJET- Restful Backend to Serve any Frontend SystemIRJET- Restful Backend to Serve any Frontend System
IRJET- Restful Backend to Serve any Frontend System
 
DataBench Toolbox Demo, Ivan Martinez, Tomas Pariente Lobo, BDV Meet-Up Riga,...
DataBench Toolbox Demo, Ivan Martinez, Tomas Pariente Lobo, BDV Meet-Up Riga,...DataBench Toolbox Demo, Ivan Martinez, Tomas Pariente Lobo, BDV Meet-Up Riga,...
DataBench Toolbox Demo, Ivan Martinez, Tomas Pariente Lobo, BDV Meet-Up Riga,...
 
Project report
Project report Project report
Project report
 
What is Enterprise Resource Planning, SAP and SAP FIORI?
What is Enterprise Resource Planning, SAP and SAP FIORI? What is Enterprise Resource Planning, SAP and SAP FIORI?
What is Enterprise Resource Planning, SAP and SAP FIORI?
 
How to broadcast a b ex report through e
How to broadcast a b ex report through eHow to broadcast a b ex report through e
How to broadcast a b ex report through e
 
51191092 sap-r3-extraction
51191092 sap-r3-extraction51191092 sap-r3-extraction
51191092 sap-r3-extraction
 
Abap sample
Abap sampleAbap sample
Abap sample
 
Application Rationalization with LeanIX
Application Rationalization with LeanIXApplication Rationalization with LeanIX
Application Rationalization with LeanIX
 
Day 6.3 extraction_business_content_and_generic
Day 6.3 extraction_business_content_and_genericDay 6.3 extraction_business_content_and_generic
Day 6.3 extraction_business_content_and_generic
 
Cyber bidding gateway report on ASP .net
Cyber bidding gateway report on ASP .netCyber bidding gateway report on ASP .net
Cyber bidding gateway report on ASP .net
 
IRJET- Crime Management System
IRJET- Crime Management SystemIRJET- Crime Management System
IRJET- Crime Management System
 

Recently uploaded

Recently uploaded (20)

Artyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptxArtyushina_Guest lecture_YorkU CS May 2024.pptx
Artyushina_Guest lecture_YorkU CS May 2024.pptx
 
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
WSO2Con2024 - Facilitating Broadband Switching Services for UK Telecoms Provi...
 
WSO2Con2024 - Unleashing the Financial Potential of 13 Million People
WSO2Con2024 - Unleashing the Financial Potential of 13 Million PeopleWSO2Con2024 - Unleashing the Financial Potential of 13 Million People
WSO2Con2024 - Unleashing the Financial Potential of 13 Million People
 
WSO2CON 2024 - Building a Digital Government in Uganda
WSO2CON 2024 - Building a Digital Government in UgandaWSO2CON 2024 - Building a Digital Government in Uganda
WSO2CON 2024 - Building a Digital Government in Uganda
 
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
WSO2Con2024 - Simplified Integration: Unveiling the Latest Features in WSO2 L...
 
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdfAzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
AzureNativeQumulo_HPC_Cloud_Native_Benchmarks.pdf
 
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
WSO2Con2024 - From Blueprint to Brilliance: WSO2's Guide to API-First Enginee...
 
WSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - KanchanaWSO2Con2024 - Hello Choreo Presentation - Kanchana
WSO2Con2024 - Hello Choreo Presentation - Kanchana
 
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open SourceWSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
WSO2CON 2024 - Freedom First—Unleashing Developer Potential with Open Source
 
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
WSO2CON 2024 - Cloud Native Middleware: Domain-Driven Design, Cell-Based Arch...
 
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAMWSO2Con2024 - Organization Management: The Revolution in B2B CIAM
WSO2Con2024 - Organization Management: The Revolution in B2B CIAM
 
WSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - KeynoteWSO2Con204 - Hard Rock Presentation - Keynote
WSO2Con204 - Hard Rock Presentation - Keynote
 
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
WSO2CON 2024 - WSO2's Digital Transformation Journey with Choreo: A Platforml...
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of TransformationWSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
WSO2CON 2024 - Designing Event-Driven Enterprises: Stories of Transformation
 
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
 
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
 
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...
WSO2Con2024 - Navigating the Digital Landscape: Transforming Healthcare with ...
 
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public AdministrationWSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
WSO2CON 2024 - How CSI Piemonte Is Apifying the Public Administration
 

Queries in SAP: Introduction

  • 1. 08/11/2019 1Jonathan Eemans JE Consulting Queries in SAP
  • 2. 08/11/2019 2 Queries in SAP Introduction How does the InfoSet query functionality work? How to create an InfoSet query? Attention points
  • 3. 08/11/2019 3 Introduction • In SAP R/3 and SAP ECC different reporting tools exist to create reports directly in the ERP environment without coding. • As from SAP S/4HANA the reporting framework changes and other reporting tools are available. Capabilities InfoSet Query Drilldown Reporting Report Painter / Writer Available for all SAP modules +++ + ++ Easy to create +++ + +++ User-friendly ++ + +++ Interactive report output +++ + Formatting possibilities ++ +++ Integration with MS products +++ +++ +++
  • 4. 08/11/2019 4 Introduction • 6 reasons to use the query functionality in SAP R/3 or SAP: It is delivered with SAP It is available across all modules It is easy to teach users to write their own reports It requires minimal configuration Security is built-in — no hard-coding No ABAP programming skills required
  • 5. 08/11/2019 5 Introduction • Useful transactions:  SQ03: SAP Query - Maintain user groups  SQ02: SAP Query - Maintain InfoSet  SQ01: SAP Query - Maintain queries  SE93: Transaction codes  SE11: Dictionary - Tables  SE16(N): General Table Display
  • 6. 08/11/2019 6 How does the infoset query functionality work?
  • 7. 08/11/2019 7 How to create an InfoSet query? Proper configuration of these components consists of the following six steps: 1. Determine your administration strategy 2. Decide which application area to use for developing reports 3. Create user groups to organize reports 4. Create InfoSet 5. Create query 6. Create transaction code (if required)
  • 8. 08/11/2019 8 Step 1: Determine your administration strategy • The first step in configuring the query functionality is to determine where users can develop and create queries. 1. Configure and enable its use in the live production environment 2. Configure and enable its use only in a development client 3. A little bit of both • Best practice: queries are always created in the development environment and transported. All queries need to be tested in staging with special attention to performance issues!
  • 9. 08/11/2019 9 Step 2: Decide which application area to use for developing reports • 2 application areas exist…  Global application area: queries that are created in the global application area appear in all clients that reside on a database server.  Standard application area: in contrast, the standard application area is client-specific.  If you want to assign a transaction code to your query, create your query in the standard application area.
  • 10. 08/11/2019 10 Step 3: Create user groups to organise reports • The concept of a user group allows you to organise reports by segregating a group of related business users from all other business users for reporting purposes. • In other words, everyone in a particular department creates reports in the same area within SAP, which is called a user group. • User Groups are maintained using the transaction code SQ03.
  • 11. 08/11/2019 11 Step 4: Create InfoSet • InfoSets are data sources used in getting the data for SAP reports. Such data sources are evaluated in queries. • InfoSets are allocated to a user group; the members of a group can access the InfoSet to which the group is allocated. • InfoSets are maintained using the transaction code SQ02.
  • 12. 08/11/2019 12 Step 4: Create InfoSet (cont’d) A table join includes several tables that are read by SELECT statements. Specify the name of the table that you want to use to start the join definition. You can choose more tables later. The data is read directly from a single table. A logical database is a method by which ABAP programs read and process data. The sequence in which the data is supplied to the programs is determined by a tree structure.
  • 13. 08/11/2019 13 Step 4: Create InfoSet (cont’d) • Join conditions
  • 14. 08/11/2019 14 Step 4: Create InfoSet (cont’d) • Field groups
  • 15. 08/11/2019 15 Step 4: Create InfoSet (cont’d) • Assign InfoSet to User Group
  • 16. 08/11/2019 16 Step 5: Create Query • A query is a tool used to create lists using data available for analysis purposes in InfoSet. • Queries are assigned to InfoSet and user group(s). • A query is created and maintained using the transaction code SQ01.
  • 17. 08/11/2019 17 Step 5: Create Query (cont’d) • Assign InfoSet • General parameters
  • 18. 08/11/2019 18 Step 5: Create Query (cont’d) • Select user group
  • 19. 08/11/2019 19 Step 5: Create Query (cont’d) • Define selection fields and fields in report • Generate program
  • 20. 08/11/2019 20 Step 5: Create Query (cont’d) • Transport
  • 21. 08/11/2019 21 Step 6: Create transaction code • There are two options for executing queries… 1. Execute query from transaction SQ01 Not really user-friendly 2. Create custom transaction code to query Authorisations need to be updated
  • 22. 08/11/2019 22 Step 6: Create transaction code A new transaction code can be created using transaction SE93
  • 24. 08/11/2019 24 Attention points Performance of queries needs to be checked before transporting new reports to production ! Simple lists with limited or no formatting ! Be careful with reports on transactional data !