SlideShare a Scribd company logo
1 of 32
Download to read offline
Using Infoset Query, SAP Query
and Quick Viewer
Applies to:
SAP BI NetWeaver 7.0. For more information, visit the Business Intelligence homepage.
Summary
This tutorial will give you a brief understanding of how to deal with SAP Query; info set query and quick
viewer while using ABAP for BI.
Author: Abhinav Saxena
Company: Deloitte
Created on: 9th
July 2009
Author Bio
Abhinav Saxena is a NetWeaver 7.0 Certified Consultant with 2.5 years of experience in SAP
BW/BI.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 1
Using Infoset Query, SAP Query and Quick Viewer
Table of Contents
SAP Query..........................................................................................................................................................3
Purpose:..........................................................................................................................................................3
Creating User Group.......................................................................................................................................3
Steps to create new user group: ..................................................................................................................................3
Creation of SAP queries: ................................................................................................................................5
Creating an InfoSet...........................................................................................................................................14
Steps: ............................................................................................................................................................15
Infoset Query: ...................................................................................................................................................20
Now we will discuss about steps to create InfoSet Query: ...........................................................................20
Steps:.........................................................................................................................................................................20
Creating a Quick View ......................................................................................................................................25
Related Content................................................................................................................................................31
Disclaimer and Liability Notice..........................................................................................................................32
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 2
Using Infoset Query, SAP Query and Quick Viewer
SAP Query
SAP Query is SAP’s tool to define and execute once own reports without knowing ABAP programming
language.
Purpose:
The SAP query application is used to create reports not already contained in the default. It has been
designed for users with little or no knowledge of the SAP programming language ABAP.
SAP Query offer users a broad range of ways to define reports and create different types of reports
such as basic list, statistics and ranked lists.
These outputs can include lists on screens in table format, ALV grids, downloadable spreadsheets,
and downloadable flat files.
The whole process comprises of three steps.
1. Creation of user group
2. Creation of infoset
3. Creation of queries
The transaction codes associated with ABAP Query are
SQ01 - ABAP Query
SQ02 - Infoset
SQ03 - User group
Creating User Group
The technical definition of “User Groups” is a collection of SAP users who are grouped together.
A user’s assignment to a user group determines which queries he or she can execute or maintain.
Additionally, it designates which InfoSets the user can access.
Basically, Query Groups permit users to create, modify, and execute reports in a certain area within
R/3.
Steps to create new user group:
Navigate to the User Group Initial screen using transaction code SQ03.
Type the user group name that you will be creating, ZUSER, and select the create button.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 3
Using Infoset Query, SAP Query and Quick Viewer
3. Type the name of the user group zuser, Test for user group and click save button.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 4
Using Infoset Query, SAP Query and Quick Viewer
4. Select the Assign Users and InfoSets button. Type the SAP user IDs of any users
whom you want to include in your test group.
Creation of SAP queries:
1. Navigate to the Queries Initial screen using transaction code SQ01.
Give ZTEST_QUERY as Query Name and Click on Create button.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 5
Using Infoset Query, SAP Query and Quick Viewer
2. A hit list opens assigned to the user group (ZUSER). Select ZMYINFOSET and click Ok.
3. This moves to the first screen of creation of query. Type the title (mandatory), notes and specify the
number of lines to be displayed in a page.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 6
Using Infoset Query, SAP Query and Quick Viewer
4. After entering a title, select the Save button on the standard toolbar. To navigate to the next screen
in the SAP query-creation process, select the next screen (white navigational arrow) button from the
application toolbar. Select the field groups that are to be used in our query.
Next Screen button
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 7
Using Infoset Query, SAP Query and Quick Viewer
5. Click on Next screen to select the list of fields required in the query. (Fields include both Selection
Screen and Output fields).
6. Click on Next screen to determine which of these fields are to be used in the selection screen and
specify the sequence in which selection to appear in selection screen.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 8
Using Infoset Query, SAP Query and Quick Viewer
7. Select the Basic List button from the application toolbar. The Basic List screen shows you a list of the
selected fields that you want to include for your report. For each field, you can specify the Line and
Sequence number as you want them to appear on your report.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 9
Using Infoset Query, SAP Query and Quick Viewer
8. Click on Next Screen to check the sequence specifications.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 10
Using Infoset Query, SAP Query and Quick Viewer
9. Click on Next screen to specify field output options.
Length, position & color formats of the fields on output screen can be changed.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 11
Using Infoset Query, SAP Query and Quick Viewer
10. Click on Next screen to specify report header and footer
11. Click on Next Screen to determine the graphics for Output.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 12
Using Infoset Query, SAP Query and Quick Viewer
12. A pop-up is displayed giving the option to set the number of database records to be read.
13. Click Ok to get the selection-screen displayed.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 13
Using Infoset Query, SAP Query and Quick Viewer
14. Give input to it as per the requirement to get the list of records.
Creating an InfoSet
An InfoSet describes which fields of a data source can be reported on in queries.
InfoSets are assigned to user groups.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 14
Using Infoset Query, SAP Query and Quick Viewer
Steps:
1. Navigate to the Infoset Initial screen using transaction code SQ02. Type the InfoSet name that you
will be creating, ZMYINFOTEST, and select the Create button.
2. Type the name of the infoset, TEST FOR INFOSET. Choose the data source and press ok button.
3. You will be provided with a screen as shown below. Select insert table icon in application tool bar. A pop-
up will appear, give the table name to be inserted and select OK button.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 15
Using Infoset Query, SAP Query and Quick Viewer
Insert Table Button
4. Select the OK button in the POP-UP and you will be provided with the screen as shown below.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 16
Using Infoset Query, SAP Query and Quick Viewer
5. For maintaining the infoset, click on Infoset button. A popup opens asking what fields should be there in
field groups. Select radio button Create empty field groups and press Ok.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 17
Using Infoset Query, SAP Query and Quick Viewer
6. Two empty field groups got created. In the left pane, we find the list of fields in both the tables LFA1 and
LFB1.
7. Drag and drop the fields from the left pane on to the field groups.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 18
Using Infoset Query, SAP Query and Quick Viewer
8. Next, you need to generate the InfoSet by selecting the Generate button (the red beach ball) from the
application toolbar. A message appears in the status bar saying that the InfoSet ZMYINFOSET generated.
Generate Button
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 19
Using Infoset Query, SAP Query and Quick Viewer
9. Go back to the main screen of SQ02 by clicking Back Button on standard tool bar. Click on Role/User
Group Assignment button to assign the infoset to a specific user group.
Infoset Query:
The InfoSet Query is designed for basic users to retrieve simple single-use lists of data from your
R/3 database.
Unlike the SAP Query all query information—including the selection criteria for Info Set Query
reporting—is available on a single screen.
Now we will discuss about steps to create InfoSet Query:
Steps:
1. Navigate to the Queries Initial screen using transaction code SQ01
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 20
Using Infoset Query, SAP Query and Quick Viewer
2. Give ZINFO_QUERY as Query Name and Click on InfoSet Query button. You are prompted to
select your InfoSet (data source) from a dialog box.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 21
Using Infoset Query, SAP Query and Quick Viewer
3. The main screen of the InfoSet Query appears.
The main screen contains three areas:
The actual InfoSet from which you select and choose your fields, the sample report display, and the
Selection screen values.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 22
Using Infoset Query, SAP Query and Quick Viewer
4. For creating your report, check the Output box next to each field.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 23
Using Infoset Query, SAP Query and Quick Viewer
5. Choose fields for the Selection screen by marking Selection check box, and click the output button to
execute the report.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 24
Using Infoset Query, SAP Query and Quick Viewer
6. The output will be displayed as shown below.
Creating a Quick View
1. Navigate to the Queries Initial screen using transaction code SQ01 and click Quick Viewer button.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 25
Using Infoset Query, SAP Query and Quick Viewer
2. A Quick Viewer initial screen appears. Type ZQUICK_VIEW and press create button.
3. A pop-up appears, give title and select a data source.
4. Enter the required table in the pop-up as shown below and select the OK button.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 26
Using Infoset Query, SAP Query and Quick Viewer
5. You will be provided with a screen as shown below. Select insert table icon in application tool bar. A
pop-up will appear, give the table name to be inserted and select OK button.
6. Come back to initial screen. There are three main tabs that allow us to specify QuickView.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 27
Using Infoset Query, SAP Query and Quick Viewer
7. The first tab is to list the output fields. Select fields listed in the Available Fields column and select
the arrow keys to move them to the output column. The second tab enables to dictate the sort
sequence for selected fields. The third tab enables to indicate selection fields for specifying final
output.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 28
Using Infoset Query, SAP Query and Quick Viewer
8. In the middle of the screen different Export options for Quick View is available. Select one from the
drop-down box and then select the Execute button to see the Reports Selection screen.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 29
Using Infoset Query, SAP Query and Quick Viewer
9. Specify the selections and select the Execute button to see completed Quick View.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 30
Using Infoset Query, SAP Query and Quick Viewer
Related Content
Creating a SAP Query & Ad-Hoc Query
Quick Viewer
Creating User Groups
For more information, visit the Business Intelligence homepage
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 31
Using Infoset Query, SAP Query and Quick Viewer
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG 32
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

Lo extraction – part 5 sales and distribution (sd) datasource overview
Lo extraction – part 5  sales and distribution (sd) datasource overviewLo extraction – part 5  sales and distribution (sd) datasource overview
Lo extraction – part 5 sales and distribution (sd) datasource overview
JNTU University
 
T codes sap-basis-training
T codes sap-basis-trainingT codes sap-basis-training
T codes sap-basis-training
munnasap007
 
Lo extraction part 6 implementation methodology
Lo extraction   part 6 implementation methodologyLo extraction   part 6 implementation methodology
Lo extraction part 6 implementation methodology
JNTU University
 
Lo extraction part 4 update methods
Lo extraction   part 4 update methodsLo extraction   part 4 update methods
Lo extraction part 4 update methods
JNTU University
 
Lo extraction part 7 enhancements
Lo extraction   part 7 enhancementsLo extraction   part 7 enhancements
Lo extraction part 7 enhancements
JNTU University
 
Variables in sap bi
Variables in sap biVariables in sap bi
Variables in sap bi
shabari76
 
Sap basis certification_and_interview_questions_answers_and11237206714
Sap basis certification_and_interview_questions_answers_and11237206714Sap basis certification_and_interview_questions_answers_and11237206714
Sap basis certification_and_interview_questions_answers_and11237206714
ramesh469
 
Lo extraction part 3 extractor logic
Lo extraction   part 3 extractor logicLo extraction   part 3 extractor logic
Lo extraction part 3 extractor logic
JNTU University
 
Rda step by step
Rda   step by stepRda   step by step
Rda step by step
Phani Kumar
 
Lo extraction part 1 sd overview
Lo extraction   part 1 sd overviewLo extraction   part 1 sd overview
Lo extraction part 1 sd overview
JNTU University
 
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)

Lo extraction – part 5 sales and distribution (sd) datasource overview
Lo extraction – part 5  sales and distribution (sd) datasource overviewLo extraction – part 5  sales and distribution (sd) datasource overview
Lo extraction – part 5 sales and distribution (sd) datasource overview
 
T codes sap-basis-training
T codes sap-basis-trainingT codes sap-basis-training
T codes sap-basis-training
 
Sap basis made easy
Sap basis made easySap basis made easy
Sap basis made easy
 
Lo extraction part 6 implementation methodology
Lo extraction   part 6 implementation methodologyLo extraction   part 6 implementation methodology
Lo extraction part 6 implementation methodology
 
Lo extraction part 4 update methods
Lo extraction   part 4 update methodsLo extraction   part 4 update methods
Lo extraction part 4 update methods
 
Lo extraction part 7 enhancements
Lo extraction   part 7 enhancementsLo extraction   part 7 enhancements
Lo extraction part 7 enhancements
 
How to run v3 job
How to run v3 jobHow to run v3 job
How to run v3 job
 
Variables in sap bi
Variables in sap biVariables in sap bi
Variables in sap bi
 
Sap basis certification_and_interview_questions_answers_and11237206714
Sap basis certification_and_interview_questions_answers_and11237206714Sap basis certification_and_interview_questions_answers_and11237206714
Sap basis certification_and_interview_questions_answers_and11237206714
 
How to write a routine for 0 calday in infopackage selection
How to write a routine for 0 calday in infopackage selectionHow to write a routine for 0 calday in infopackage selection
How to write a routine for 0 calday in infopackage selection
 
Lo extraction part 3 extractor logic
Lo extraction   part 3 extractor logicLo extraction   part 3 extractor logic
Lo extraction part 3 extractor logic
 
Slicense
SlicenseSlicense
Slicense
 
C taw12 70
C taw12 70C taw12 70
C taw12 70
 
SAP BASIS Practice Exam
SAP BASIS Practice ExamSAP BASIS Practice Exam
SAP BASIS Practice Exam
 
Rda step by step
Rda   step by stepRda   step by step
Rda step by step
 
Lo extraction part 1 sd overview
Lo extraction   part 1 sd overviewLo extraction   part 1 sd overview
Lo extraction part 1 sd overview
 
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
 
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)
 
Bn1033 demo sap basis
Bn1033 demo  sap basisBn1033 demo  sap basis
Bn1033 demo sap basis
 
Abap fundamentals-training-course-document
Abap fundamentals-training-course-documentAbap fundamentals-training-course-document
Abap fundamentals-training-course-document
 

Similar to Query

Creating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflowsCreating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflows
Hicham Khallouki
 
Management Cockpit (SEM-CPM-MC) Step by Step Creation
Management Cockpit (SEM-CPM-MC) Step by Step CreationManagement Cockpit (SEM-CPM-MC) Step by Step Creation
Management Cockpit (SEM-CPM-MC) Step by Step Creation
Rahul Desai
 
Backup%20 domain%20controller%20(bdc)%20step by-step(1)
Backup%20 domain%20controller%20(bdc)%20step by-step(1)Backup%20 domain%20controller%20(bdc)%20step by-step(1)
Backup%20 domain%20controller%20(bdc)%20step by-step(1)
Srinivas Dukka
 
Sap fi automatic payment program (configuration and run)
Sap fi   automatic payment program (configuration and run)Sap fi   automatic payment program (configuration and run)
Sap fi automatic payment program (configuration and run)
shaheda ghori
 
A step by-step guide on i doc-ale between two sap servers
A step by-step guide on i doc-ale between two sap serversA step by-step guide on i doc-ale between two sap servers
A step by-step guide on i doc-ale between two sap servers
krishna RK
 

Similar to Query (20)

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
 
SAP Quickviewer
SAP QuickviewerSAP Quickviewer
SAP Quickviewer
 
Dynamic variant creation
Dynamic variant creationDynamic variant creation
Dynamic variant creation
 
Creating transaction and screen variants
Creating transaction and screen variantsCreating transaction and screen variants
Creating transaction and screen variants
 
How to Create SAP MarketPlace user id
How to Create SAP MarketPlace user idHow to Create SAP MarketPlace user id
How to Create SAP MarketPlace user id
 
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
 
Creating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflowsCreating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflows
 
_Using Selective Deletion in Process Chains.pdf
_Using Selective Deletion in Process Chains.pdf_Using Selective Deletion in Process Chains.pdf
_Using Selective Deletion in Process Chains.pdf
 
Let start with GUIXT
Let start with GUIXTLet start with GUIXT
Let start with GUIXT
 
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 SD QUERY REPORT_GANESH
SAP SD QUERY REPORT_GANESHSAP SD QUERY REPORT_GANESH
SAP SD QUERY REPORT_GANESH
 
Management Cockpit (SEM-CPM-MC) Step by Step Creation
Management Cockpit (SEM-CPM-MC) Step by Step CreationManagement Cockpit (SEM-CPM-MC) Step by Step Creation
Management Cockpit (SEM-CPM-MC) Step by Step Creation
 
Backup%20 domain%20controller%20(bdc)%20step by-step(1)
Backup%20 domain%20controller%20(bdc)%20step by-step(1)Backup%20 domain%20controller%20(bdc)%20step by-step(1)
Backup%20 domain%20controller%20(bdc)%20step by-step(1)
 
Sap fi automatic payment program (configuration and run)
Sap fi   automatic payment program (configuration and run)Sap fi   automatic payment program (configuration and run)
Sap fi automatic payment program (configuration and run)
 
SAP FI automatic payment program (configuration and run)
SAP FI automatic payment program (configuration and run)SAP FI automatic payment program (configuration and run)
SAP FI automatic payment program (configuration and run)
 
Sap fi automatic payment program (configuration and run)
Sap fi   automatic payment program (configuration and run)Sap fi   automatic payment program (configuration and run)
Sap fi automatic payment program (configuration and run)
 
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 basis administration handbook
Sap basis administration handbookSap basis administration handbook
Sap basis administration handbook
 
New dimensions for_reporting
New dimensions for_reportingNew dimensions for_reporting
New dimensions for_reporting
 
A step by-step guide on i doc-ale between two sap servers
A step by-step guide on i doc-ale between two sap serversA step by-step guide on i doc-ale between two sap servers
A step by-step guide on i doc-ale between two sap servers
 

Recently uploaded

TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptx
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...Stronger Together: Developing an Organizational Strategy for Accessible Desig...
Stronger Together: Developing an Organizational Strategy for Accessible Desig...
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
TEST BANK For Principles of Anatomy and Physiology, 16th Edition by Gerard J....
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
WSO2 Micro Integrator for Enterprise Integration in a Decentralized, Microser...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 

Query

  • 1. Using Infoset Query, SAP Query and Quick Viewer Applies to: SAP BI NetWeaver 7.0. For more information, visit the Business Intelligence homepage. Summary This tutorial will give you a brief understanding of how to deal with SAP Query; info set query and quick viewer while using ABAP for BI. Author: Abhinav Saxena Company: Deloitte Created on: 9th July 2009 Author Bio Abhinav Saxena is a NetWeaver 7.0 Certified Consultant with 2.5 years of experience in SAP BW/BI. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 1
  • 2. Using Infoset Query, SAP Query and Quick Viewer Table of Contents SAP Query..........................................................................................................................................................3 Purpose:..........................................................................................................................................................3 Creating User Group.......................................................................................................................................3 Steps to create new user group: ..................................................................................................................................3 Creation of SAP queries: ................................................................................................................................5 Creating an InfoSet...........................................................................................................................................14 Steps: ............................................................................................................................................................15 Infoset Query: ...................................................................................................................................................20 Now we will discuss about steps to create InfoSet Query: ...........................................................................20 Steps:.........................................................................................................................................................................20 Creating a Quick View ......................................................................................................................................25 Related Content................................................................................................................................................31 Disclaimer and Liability Notice..........................................................................................................................32 SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 2
  • 3. Using Infoset Query, SAP Query and Quick Viewer SAP Query SAP Query is SAP’s tool to define and execute once own reports without knowing ABAP programming language. Purpose: The SAP query application is used to create reports not already contained in the default. It has been designed for users with little or no knowledge of the SAP programming language ABAP. SAP Query offer users a broad range of ways to define reports and create different types of reports such as basic list, statistics and ranked lists. These outputs can include lists on screens in table format, ALV grids, downloadable spreadsheets, and downloadable flat files. The whole process comprises of three steps. 1. Creation of user group 2. Creation of infoset 3. Creation of queries The transaction codes associated with ABAP Query are SQ01 - ABAP Query SQ02 - Infoset SQ03 - User group Creating User Group The technical definition of “User Groups” is a collection of SAP users who are grouped together. A user’s assignment to a user group determines which queries he or she can execute or maintain. Additionally, it designates which InfoSets the user can access. Basically, Query Groups permit users to create, modify, and execute reports in a certain area within R/3. Steps to create new user group: Navigate to the User Group Initial screen using transaction code SQ03. Type the user group name that you will be creating, ZUSER, and select the create button. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 3
  • 4. Using Infoset Query, SAP Query and Quick Viewer 3. Type the name of the user group zuser, Test for user group and click save button. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 4
  • 5. Using Infoset Query, SAP Query and Quick Viewer 4. Select the Assign Users and InfoSets button. Type the SAP user IDs of any users whom you want to include in your test group. Creation of SAP queries: 1. Navigate to the Queries Initial screen using transaction code SQ01. Give ZTEST_QUERY as Query Name and Click on Create button. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 5
  • 6. Using Infoset Query, SAP Query and Quick Viewer 2. A hit list opens assigned to the user group (ZUSER). Select ZMYINFOSET and click Ok. 3. This moves to the first screen of creation of query. Type the title (mandatory), notes and specify the number of lines to be displayed in a page. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 6
  • 7. Using Infoset Query, SAP Query and Quick Viewer 4. After entering a title, select the Save button on the standard toolbar. To navigate to the next screen in the SAP query-creation process, select the next screen (white navigational arrow) button from the application toolbar. Select the field groups that are to be used in our query. Next Screen button SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 7
  • 8. Using Infoset Query, SAP Query and Quick Viewer 5. Click on Next screen to select the list of fields required in the query. (Fields include both Selection Screen and Output fields). 6. Click on Next screen to determine which of these fields are to be used in the selection screen and specify the sequence in which selection to appear in selection screen. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 8
  • 9. Using Infoset Query, SAP Query and Quick Viewer 7. Select the Basic List button from the application toolbar. The Basic List screen shows you a list of the selected fields that you want to include for your report. For each field, you can specify the Line and Sequence number as you want them to appear on your report. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 9
  • 10. Using Infoset Query, SAP Query and Quick Viewer 8. Click on Next Screen to check the sequence specifications. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 10
  • 11. Using Infoset Query, SAP Query and Quick Viewer 9. Click on Next screen to specify field output options. Length, position & color formats of the fields on output screen can be changed. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 11
  • 12. Using Infoset Query, SAP Query and Quick Viewer 10. Click on Next screen to specify report header and footer 11. Click on Next Screen to determine the graphics for Output. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 12
  • 13. Using Infoset Query, SAP Query and Quick Viewer 12. A pop-up is displayed giving the option to set the number of database records to be read. 13. Click Ok to get the selection-screen displayed. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 13
  • 14. Using Infoset Query, SAP Query and Quick Viewer 14. Give input to it as per the requirement to get the list of records. Creating an InfoSet An InfoSet describes which fields of a data source can be reported on in queries. InfoSets are assigned to user groups. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 14
  • 15. Using Infoset Query, SAP Query and Quick Viewer Steps: 1. Navigate to the Infoset Initial screen using transaction code SQ02. Type the InfoSet name that you will be creating, ZMYINFOTEST, and select the Create button. 2. Type the name of the infoset, TEST FOR INFOSET. Choose the data source and press ok button. 3. You will be provided with a screen as shown below. Select insert table icon in application tool bar. A pop- up will appear, give the table name to be inserted and select OK button. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 15
  • 16. Using Infoset Query, SAP Query and Quick Viewer Insert Table Button 4. Select the OK button in the POP-UP and you will be provided with the screen as shown below. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 16
  • 17. Using Infoset Query, SAP Query and Quick Viewer 5. For maintaining the infoset, click on Infoset button. A popup opens asking what fields should be there in field groups. Select radio button Create empty field groups and press Ok. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 17
  • 18. Using Infoset Query, SAP Query and Quick Viewer 6. Two empty field groups got created. In the left pane, we find the list of fields in both the tables LFA1 and LFB1. 7. Drag and drop the fields from the left pane on to the field groups. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 18
  • 19. Using Infoset Query, SAP Query and Quick Viewer 8. Next, you need to generate the InfoSet by selecting the Generate button (the red beach ball) from the application toolbar. A message appears in the status bar saying that the InfoSet ZMYINFOSET generated. Generate Button SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 19
  • 20. Using Infoset Query, SAP Query and Quick Viewer 9. Go back to the main screen of SQ02 by clicking Back Button on standard tool bar. Click on Role/User Group Assignment button to assign the infoset to a specific user group. Infoset Query: The InfoSet Query is designed for basic users to retrieve simple single-use lists of data from your R/3 database. Unlike the SAP Query all query information—including the selection criteria for Info Set Query reporting—is available on a single screen. Now we will discuss about steps to create InfoSet Query: Steps: 1. Navigate to the Queries Initial screen using transaction code SQ01 SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 20
  • 21. Using Infoset Query, SAP Query and Quick Viewer 2. Give ZINFO_QUERY as Query Name and Click on InfoSet Query button. You are prompted to select your InfoSet (data source) from a dialog box. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 21
  • 22. Using Infoset Query, SAP Query and Quick Viewer 3. The main screen of the InfoSet Query appears. The main screen contains three areas: The actual InfoSet from which you select and choose your fields, the sample report display, and the Selection screen values. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 22
  • 23. Using Infoset Query, SAP Query and Quick Viewer 4. For creating your report, check the Output box next to each field. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 23
  • 24. Using Infoset Query, SAP Query and Quick Viewer 5. Choose fields for the Selection screen by marking Selection check box, and click the output button to execute the report. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 24
  • 25. Using Infoset Query, SAP Query and Quick Viewer 6. The output will be displayed as shown below. Creating a Quick View 1. Navigate to the Queries Initial screen using transaction code SQ01 and click Quick Viewer button. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 25
  • 26. Using Infoset Query, SAP Query and Quick Viewer 2. A Quick Viewer initial screen appears. Type ZQUICK_VIEW and press create button. 3. A pop-up appears, give title and select a data source. 4. Enter the required table in the pop-up as shown below and select the OK button. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 26
  • 27. Using Infoset Query, SAP Query and Quick Viewer 5. You will be provided with a screen as shown below. Select insert table icon in application tool bar. A pop-up will appear, give the table name to be inserted and select OK button. 6. Come back to initial screen. There are three main tabs that allow us to specify QuickView. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 27
  • 28. Using Infoset Query, SAP Query and Quick Viewer 7. The first tab is to list the output fields. Select fields listed in the Available Fields column and select the arrow keys to move them to the output column. The second tab enables to dictate the sort sequence for selected fields. The third tab enables to indicate selection fields for specifying final output. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 28
  • 29. Using Infoset Query, SAP Query and Quick Viewer 8. In the middle of the screen different Export options for Quick View is available. Select one from the drop-down box and then select the Execute button to see the Reports Selection screen. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 29
  • 30. Using Infoset Query, SAP Query and Quick Viewer 9. Specify the selections and select the Execute button to see completed Quick View. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 30
  • 31. Using Infoset Query, SAP Query and Quick Viewer Related Content Creating a SAP Query & Ad-Hoc Query Quick Viewer Creating User Groups For more information, visit the Business Intelligence homepage SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 31
  • 32. Using Infoset Query, SAP Query and Quick Viewer SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 32 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.