Professional Documents
Culture Documents
With this tool, you can extract data from virtually any application or database
table in the R/3 System.
Ranked List
Functional Areas
A functional area defines the tables and the fields within those tables,
which can be queried. Functional areas use a logical database, a direct
read from a table, or a series of table joins to determine the available
tables.
User Groups
User groups link users to functional areas and queries and control the
functional areas and queries a user can access. Each functional area is
assigned to one or more user groups. For access to ABAP Query, a user
must be a member of at least one user group.
Queries
When you create different lists using ABAP Query, you can save the
layout for each list. The element created is called a query. A query is
specific to a user group and functional area. When creating a query, you
may only select one functional area.
Basic list
Basic lists allow you to output data sorted by various criteria and to
calculate totals. This is the most common kind of report.
Statistical list
Statistics usually present data in condensed form, that is, numeric values
usually are totals or averages.
Ranked list
Ranked List are special types of statistics. Here, numeric values are also
summed for key terms and displayed in a table. However, sorting is always
by a numeric value known as the ranked list criterion. Additionally, only a
certain number of items are output. This makes ranked lists suitable for
analyzing questions such as: "What are the 10 flight connections with the
highest sales?“
A single query may have multiple statistical and ranked lists but only one
basic list.
To access the components of ABAP Query
ABAP Query Component Menu Path
A query area contains a set of query objects (queries, InfoSets, and user
groups) that are discrete and consistent
Standard Area
Standard area queries are client-specific, which are designed for ‘ad-
hoc queries,’
Global Area
In the global query area, queries are developed that are used
throughout the entire system, I.e. Cross-Client.
All query objects delivered by SAP (from Release 4.0) are located in
the global area. They can be identified by prefixes of these queries.
How Does ABAP Query Differ from Other Reporting Tools?
ABAP Query can access data from most tables within the R/3 System. Most
other reporting tools are limited to which tables they can access.
ABAP Query reports are typically simple listing and totaling reports, unlike
a balance sheet or an income statement which requires complex groupings.
Other tools (such as Report Painter/ Report Writer which uses sets for these
groupings) may be better suited for reports with complex groupings.
Display as Table
The Display as table function allows you to display Basic Lists, statistics and
ranked lists in tabular form with the help of the table view control facility. This
type of display does not include totals lines, sub-totals line and lines with
control level texts.
The advantage of this display over the list is that it gives you access to a
range of interactive functions. These include functions, which are
automatically provided by the table view control facility (e.g. column
switching, storage of settings, etc.). With other functions, you can manipulate
the displayed dataset by selecting lines and columns. The functions are:
Convert
Sort
Summing
Find
Show/Hide columns
Fixing columns
Print
Display list in original form
ABAP Program Generated
A query definition generates an ABAP/4 report with the name AQxxmmyy
where
Using Transaction SE38, this report can be developed further in the ABAP/4 Editor.
1 Create
Create aa These are the main steps that
functional
functional area
area need to be followed for
preparation of an ABAP Query.
2 Assign
Assign required
required fields
fields to
to
functional
functional groups
groups
1 A functional area defines the
tables and the fields within those
tables, which can be queried on.
3 Generate
Generate the
the Functional areas use a logical
functional
functional area
area database or a direct read from a
table, or a series of table joins to
Create
Create aa
4Trained Employee determine the available tables.
userAvailable?
user group
group
2 Functional groups: It is
<
Part of a functional area. You
5 Assign
Assign thethe functional
functional area
area
to create functional groups within a
to the
the user
user group
group
functional area and then assign
the fields you want to query on to
6 Create
Create the
the query
query
the functional group.
Enter name of the Infoset/Functional Area to be
created.
Note that after the table is
inserted, the link or join
between them is displayed.
A message on the message line
will also confirm the insertion
of a table.
Every data source field is indicated with anClick Extras button to set
icon that tells you if it is a normal field or a additional information.
text field
You can choose additional table,
You can only use values for selection and additional fields, Additional
output with these fields Structure and code.
Enter here
The graphical Query Painter allows younotes,
to definewhichlists
describe what the
in WYSIWYG
Enter
query the
doesnumber of lines to be output on one
mode (what you see is what you Thisget).
field this tool may
determines the only
maximumbe used
numberto of
page. If you do not want page breaks, leave this
create basic lists. Statistics and ranked
Query
field can be
characters
empty. lists
which
Valid must
executed
can
range be
beonly
of defined
with a variant
displayed
numbers on
forone
thisline
according to the old procedure. Query
The is locked.
graphical This prevents other
Linesuses from
users
of the
field islist
10 to 99. byQuery
created Painter
the query.
several different controls. Themaking
exceeding
unser
The
anythis
menu
Standard
changes
length
option
title
to
appears
the query.
cause atline
the breaks.
settings use
top can
of every
choose Settings to change this This field
option.
page when determines the maximum number ofof2
List will notyou print the list.
be displayed This
in the consists
normal format
characters
lines. The first for the width of a the table view control.
on execution ofline
thecontains
query . The First date, the
sub-list query is
You and
title can theusepage tablenumber
view controlswhile to display
the 2 nd
line the
is
transferred
On
Enter execution to the
of the ABAP query listtheviewer directly.
listoutput
is displayed
data
an ofthe maximum
single-line
underscore length
line.basic of an
lists, statistics line in
and
The
on
this list
the is not
screen.
field. displayed
All the on
lists processing
for a query arethe
rankings
Thus when in aa basic
special listformat. Please note isthatto
query,
List is
displayed
this
but in
passed
not the first
oncase.
displayed
specification this to in and
sub-list
ABC
affects usual
only
statistics
is passed
Analysis.
form,
the The
thelist
visible
directly
list
format
width.
Standard
ABAP
created,
the list
graphic. title
while is
is either output
directly
processing only
passed SAP of
to you
the
List print
Executive
viewer the list
needs
of
Listfirst
Since
A table to
sub-list
line be
generated
viewbreaks depends
on
control doa basic,
execution
not
may on statistics
applytable
containof the
to view or
query
ranked
more control.
ranked
datais
lists
using
The thesub-list
Information
displays
first execute
only one isand
System(EIS).
of print(whichever
them
passed tofunction
the on
downloadis the
set
list.
passed
and
If you
columns for
statistics,
select
thanword
thistheprocessing.
are number
field,
visibletheat of
list columns
is query
once. not for
displayed the
selection
first)
The
interface
first screen
numeric
and storedor process
field as ina the
file. the
first line ofin the list
Parameter
entire
on thequery
screenis set
report
when on the
isyou selection
increased screen
executeautomatically.
the query, on but
background.
Parameter
is used asthis is
a set on
reference the selection
point for the screen
graphic on
Parameter
choosing
the is
first sub-list set on
field. the selection
is passed directly to EXCEL screen on
choosing
display. When
Parameter this
is setfield.
thisoncheckbox
the selection fieldscreen
is selected,
on a
choosing
(via the XXL this field.
interface).
parameterthis
choosing is predefined
field. on the selection
screen.
Parameter is set on the selection screen on
choosing this field.
Control level is the grouping
level of the list appearing.