Professional Documents
Culture Documents
Learn SAP Qury
Learn SAP Qury
reports without getting any ABAP coding done time taken to complete the coding in
development, transport and test it in QA system and then transport to production is
sometimes too long. In such cases, SAP query is a tool provided by SAP for generating
these kinds of reports.
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 offers users a broad range of ways to define reports and create different
types of reports such as basic lists, statistics, and ranked lists.
These outputs can include lists on screens in table format, ALV grids, downloadable
spreadsheets, and downloadable flat files. The internal report generator creates an
ABAP program corresponding to the definition of the list.
SAP Query
QUERY MODES?
SAP Query
Quick Viewer is a simplified version of SAP Query and is intended for beginning users. A
main difference between the QuickViewer and the SAP Query is that QuickViewer
reports are user-dependent, which means only the person who creates them can use
them. SAP Queries, on the other hand, are assigned to one or more user groups.
QUERY AREAS
Query Areas
A query area contains a set of query objects (queries, InfoSets, and user groups) that are discrete and consistent.
There are the following query areas:
Standard area
Global area
Global Area
1.Cross client
2.Query objects are attached to workbench organizer
Advantage:-The global query area is well suited for centrally developing queries meant for use and distribution
throughout the system.
Standard Area
1.Client specific
2.Query objects are not attached to the Workbench Organizer
Advantage :-End users can develop queries (ad-hoc reports) in their own client that are not meant for use in the rest of
the system.
Global Area
Standard Area
USER GROUP
The User Groups component is used to maintain user groups. The system
administrator uses it to set up the work environment for end-users.
Every user assigned to the user group is able to execute the query.
Users are not allowed to modify queries from other user groups, although they
may, under certain circumstances, copy and execute
Group Description
User Group
User
Assig Infoset
User Group
INFOSET
Infoset
INFOSET
InfoSets are special views of data sources.
An InfoSet describes which fields of a data source can be reported on in queries.
InfoSets are assigned to user groups.
End-users are able to work only with those InfoSets that are relevant to their
particular area, as designated by the role or user group that they are assigned to.
Infoset Components
SDTABELS
KONV
KONP
LIKP
LIPS
VBAK
VBAP
VBBE
VBEH
VBEP
VBFA
VBLB
VBLK
VBPA
VBRK
VBRP
VBUK
VBUP
VEKP
VEPO
VEPVG
Infoset Components
Infoset Components
Open Required
Document and Press
F1 to get information
of the Required Field
Press Technical
Information Button to
get the technical
information
Press Technical
Information Button to
get the technical
information
Name of Infoset
Name of Infoset
Click on
Creation of Infoset
Selection of Recrods
Selection of Recrods
User Group
CREATE QUERY
Name of Query
Press Create
Button to create the
query report
Saving Query
Name of Infoset Query
Press OK Button
Description of infoset
OUTPUT
Totals
List Viewers
QUICKVIEWER QUERY
Tools
ABAP Workbench
Utilities
SQVI QuickViewer
Title: For Report Title, we should put in a meaningful name that will show on our final report.
Comments: Comments to explain the purpose of the report are (optional).
Data Source: we need to define where the information we want to process is coming from.
There are four options
Table: This is the simplest form and provides you with all fields of a table (for example, VBAK for
Sales Document Header data).
Table join: With the table join, we can link multiple SAP tables together.
Note: We cane use transparent tables in the join like VBAK, VBAP but not pool or cluster
tables (such as KONV).
Logical database: SAP provides a hierarchical structure of tables in the form of logical databases
(for example, VAV for sales document data), which can be used as a data source for a
QuickViewer.
SAP Query InfoSet: we can save our own definition of tables and their respective fields in
InfoSets, which can then repeatedly be used as a data source for the Quick Viewer.
Tools
ABAP Workbench
Utilities
SQVI QuickViewer
From this
screen we
can create,
change, or
display as
well as
execute the
QuickViewer
report.
All
QuickViewer
reports will
be showen
under the
user name.
LAYOUT MODES
Basis Mode
LAYOUT MODES
LAYOUT MODE
This is a much modern and easy approach to
creating a report. Here you can select the
fields for selection and listing as a check /
uncheck and put them in a layout which is
more like a WYSWYG.1
Layout Mode
SAP Query
TILE OF REPORT
QUICKVIEWER QUERY
WITH SELECTION
Output
Output of Report
GENERATING PROGRAM
Generation of Program