03 Queries
description
Transcript of 03 Queries
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 110
983209 SAP AG 2003
Query Wizard
Query Generator
Content
Queries and Reporting
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 210
983209 SAP AG 2003
Create queries using the Query Wizard or the
Query Generator
At the conclusion of this topic you will be able to
Queries Topic Objectives
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 310
983209 SAP AG 2003
The managing director wants to use the arious
options aailable with A usiness $ne to create a
comprehensie information system for himself and
his company The information system should also be
able to create adamphoc reports
Queries Business Scenario
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 410
983209 SAP AG 2003
uery
Generator
Tools for Creating Queries
uery Wizard
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 510
983209 SAP AG 2003
leents of a Query
elect tables and their relations
elect fields Table fields ad(ust headings if necessary)
Calculation fields select heading and formula) optional)
efine sorting optional)
irection ascending order descending order) equence first sort field second sort field and so on)
efine grouping optional) +ields according to which rows are grouped
Grouping type total records total distinct records
amount aerage minimum maimum)
efine conditions optional) +ied conditions
-ariables
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 610
983209 SAP AG 2003
nforation about ields and Tables
$C CardCode0
Table name +ield name
System Information
usiness artner 1aster ata
Code
tatus ar
View
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 710983209 SAP AG 2003
Query Wizard Query Wizard Query Wizard
Query Wizard
22
elect
tables
elect +ields 3
ort $rders
44
5ntroduction
Query Wizard Query Wizard
66
Conditions andelationsQuery WizardCompleted
7788
Query9ecution
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 810983209 SAP AG 2003
Query Generator
9ecute Close Conditions
Query Generator
ame escriptionelect
+rom
Where
ort by
Group by
Conditions -ariables
Document Number
Document Type
Canceled
Manual Numbering
Printed
Document Status
W StatusTranser ear
b$ect Type
Posting Date
alue Date
Customerampendor Code
Customerampendor Name
ill To
Customerampendor (e) No)
Ta Percentage
Ta Total
Ta sum +C-
DocNum
Doctype
Canceled
andritten
Printed
DocStatus
nnt)StatusTransered
b$Type
DocDate
DocDueDate
CardCode
CardName
Address
NumAtCard
atPercent
atSum
atSumC
1ual
Greater Tan
Smaller tan
Greater or 1ual
Smaller or 1ual
Not eual
Contains
Does not containStarts it
1nds it
S N455
S NT N455
elect tables and
their relations
efine
sorting+ields to be used
for grouping
efine conditions using the
display frame to the right
Type of grouping
enter manually)
elect fields Table fields by rag3rop 1anual computation fields
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 910983209 SAP AG 2003
$ecuting and anaging Queries
9ecute Cancel eerse Table ae $pen
Cardame GroupCode TotalCardCode
Neumann Matrat6en Gmb
ein6 Mayer
Tomas Maurer
M7bel 8 Mer
C00009
C00002
C00003
C0000
Queries
9ecute query
againisplay query as
a graph
ae in
categories$pen other query
howhide
Qlt
statement
Change
Qlt
statement
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 1010983209 SAP AG 2003
=ou are now able to
Queries Topic Suary
Create queries using the Query Wizard or the
Query 5nterface
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 210
983209 SAP AG 2003
Create queries using the Query Wizard or the
Query Generator
At the conclusion of this topic you will be able to
Queries Topic Objectives
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 310
983209 SAP AG 2003
The managing director wants to use the arious
options aailable with A usiness $ne to create a
comprehensie information system for himself and
his company The information system should also be
able to create adamphoc reports
Queries Business Scenario
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 410
983209 SAP AG 2003
uery
Generator
Tools for Creating Queries
uery Wizard
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 510
983209 SAP AG 2003
leents of a Query
elect tables and their relations
elect fields Table fields ad(ust headings if necessary)
Calculation fields select heading and formula) optional)
efine sorting optional)
irection ascending order descending order) equence first sort field second sort field and so on)
efine grouping optional) +ields according to which rows are grouped
Grouping type total records total distinct records
amount aerage minimum maimum)
efine conditions optional) +ied conditions
-ariables
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 610
983209 SAP AG 2003
nforation about ields and Tables
$C CardCode0
Table name +ield name
System Information
usiness artner 1aster ata
Code
tatus ar
View
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 710983209 SAP AG 2003
Query Wizard Query Wizard Query Wizard
Query Wizard
22
elect
tables
elect +ields 3
ort $rders
44
5ntroduction
Query Wizard Query Wizard
66
Conditions andelationsQuery WizardCompleted
7788
Query9ecution
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 810983209 SAP AG 2003
Query Generator
9ecute Close Conditions
Query Generator
ame escriptionelect
+rom
Where
ort by
Group by
Conditions -ariables
Document Number
Document Type
Canceled
Manual Numbering
Printed
Document Status
W StatusTranser ear
b$ect Type
Posting Date
alue Date
Customerampendor Code
Customerampendor Name
ill To
Customerampendor (e) No)
Ta Percentage
Ta Total
Ta sum +C-
DocNum
Doctype
Canceled
andritten
Printed
DocStatus
nnt)StatusTransered
b$Type
DocDate
DocDueDate
CardCode
CardName
Address
NumAtCard
atPercent
atSum
atSumC
1ual
Greater Tan
Smaller tan
Greater or 1ual
Smaller or 1ual
Not eual
Contains
Does not containStarts it
1nds it
S N455
S NT N455
elect tables and
their relations
efine
sorting+ields to be used
for grouping
efine conditions using the
display frame to the right
Type of grouping
enter manually)
elect fields Table fields by rag3rop 1anual computation fields
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 910983209 SAP AG 2003
$ecuting and anaging Queries
9ecute Cancel eerse Table ae $pen
Cardame GroupCode TotalCardCode
Neumann Matrat6en Gmb
ein6 Mayer
Tomas Maurer
M7bel 8 Mer
C00009
C00002
C00003
C0000
Queries
9ecute query
againisplay query as
a graph
ae in
categories$pen other query
howhide
Qlt
statement
Change
Qlt
statement
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 1010983209 SAP AG 2003
=ou are now able to
Queries Topic Suary
Create queries using the Query Wizard or the
Query 5nterface
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 310
983209 SAP AG 2003
The managing director wants to use the arious
options aailable with A usiness $ne to create a
comprehensie information system for himself and
his company The information system should also be
able to create adamphoc reports
Queries Business Scenario
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 410
983209 SAP AG 2003
uery
Generator
Tools for Creating Queries
uery Wizard
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 510
983209 SAP AG 2003
leents of a Query
elect tables and their relations
elect fields Table fields ad(ust headings if necessary)
Calculation fields select heading and formula) optional)
efine sorting optional)
irection ascending order descending order) equence first sort field second sort field and so on)
efine grouping optional) +ields according to which rows are grouped
Grouping type total records total distinct records
amount aerage minimum maimum)
efine conditions optional) +ied conditions
-ariables
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 610
983209 SAP AG 2003
nforation about ields and Tables
$C CardCode0
Table name +ield name
System Information
usiness artner 1aster ata
Code
tatus ar
View
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 710983209 SAP AG 2003
Query Wizard Query Wizard Query Wizard
Query Wizard
22
elect
tables
elect +ields 3
ort $rders
44
5ntroduction
Query Wizard Query Wizard
66
Conditions andelationsQuery WizardCompleted
7788
Query9ecution
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 810983209 SAP AG 2003
Query Generator
9ecute Close Conditions
Query Generator
ame escriptionelect
+rom
Where
ort by
Group by
Conditions -ariables
Document Number
Document Type
Canceled
Manual Numbering
Printed
Document Status
W StatusTranser ear
b$ect Type
Posting Date
alue Date
Customerampendor Code
Customerampendor Name
ill To
Customerampendor (e) No)
Ta Percentage
Ta Total
Ta sum +C-
DocNum
Doctype
Canceled
andritten
Printed
DocStatus
nnt)StatusTransered
b$Type
DocDate
DocDueDate
CardCode
CardName
Address
NumAtCard
atPercent
atSum
atSumC
1ual
Greater Tan
Smaller tan
Greater or 1ual
Smaller or 1ual
Not eual
Contains
Does not containStarts it
1nds it
S N455
S NT N455
elect tables and
their relations
efine
sorting+ields to be used
for grouping
efine conditions using the
display frame to the right
Type of grouping
enter manually)
elect fields Table fields by rag3rop 1anual computation fields
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 910983209 SAP AG 2003
$ecuting and anaging Queries
9ecute Cancel eerse Table ae $pen
Cardame GroupCode TotalCardCode
Neumann Matrat6en Gmb
ein6 Mayer
Tomas Maurer
M7bel 8 Mer
C00009
C00002
C00003
C0000
Queries
9ecute query
againisplay query as
a graph
ae in
categories$pen other query
howhide
Qlt
statement
Change
Qlt
statement
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 1010983209 SAP AG 2003
=ou are now able to
Queries Topic Suary
Create queries using the Query Wizard or the
Query 5nterface
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 410
983209 SAP AG 2003
uery
Generator
Tools for Creating Queries
uery Wizard
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 510
983209 SAP AG 2003
leents of a Query
elect tables and their relations
elect fields Table fields ad(ust headings if necessary)
Calculation fields select heading and formula) optional)
efine sorting optional)
irection ascending order descending order) equence first sort field second sort field and so on)
efine grouping optional) +ields according to which rows are grouped
Grouping type total records total distinct records
amount aerage minimum maimum)
efine conditions optional) +ied conditions
-ariables
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 610
983209 SAP AG 2003
nforation about ields and Tables
$C CardCode0
Table name +ield name
System Information
usiness artner 1aster ata
Code
tatus ar
View
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 710983209 SAP AG 2003
Query Wizard Query Wizard Query Wizard
Query Wizard
22
elect
tables
elect +ields 3
ort $rders
44
5ntroduction
Query Wizard Query Wizard
66
Conditions andelationsQuery WizardCompleted
7788
Query9ecution
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 810983209 SAP AG 2003
Query Generator
9ecute Close Conditions
Query Generator
ame escriptionelect
+rom
Where
ort by
Group by
Conditions -ariables
Document Number
Document Type
Canceled
Manual Numbering
Printed
Document Status
W StatusTranser ear
b$ect Type
Posting Date
alue Date
Customerampendor Code
Customerampendor Name
ill To
Customerampendor (e) No)
Ta Percentage
Ta Total
Ta sum +C-
DocNum
Doctype
Canceled
andritten
Printed
DocStatus
nnt)StatusTransered
b$Type
DocDate
DocDueDate
CardCode
CardName
Address
NumAtCard
atPercent
atSum
atSumC
1ual
Greater Tan
Smaller tan
Greater or 1ual
Smaller or 1ual
Not eual
Contains
Does not containStarts it
1nds it
S N455
S NT N455
elect tables and
their relations
efine
sorting+ields to be used
for grouping
efine conditions using the
display frame to the right
Type of grouping
enter manually)
elect fields Table fields by rag3rop 1anual computation fields
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 910983209 SAP AG 2003
$ecuting and anaging Queries
9ecute Cancel eerse Table ae $pen
Cardame GroupCode TotalCardCode
Neumann Matrat6en Gmb
ein6 Mayer
Tomas Maurer
M7bel 8 Mer
C00009
C00002
C00003
C0000
Queries
9ecute query
againisplay query as
a graph
ae in
categories$pen other query
howhide
Qlt
statement
Change
Qlt
statement
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 1010983209 SAP AG 2003
=ou are now able to
Queries Topic Suary
Create queries using the Query Wizard or the
Query 5nterface
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 510
983209 SAP AG 2003
leents of a Query
elect tables and their relations
elect fields Table fields ad(ust headings if necessary)
Calculation fields select heading and formula) optional)
efine sorting optional)
irection ascending order descending order) equence first sort field second sort field and so on)
efine grouping optional) +ields according to which rows are grouped
Grouping type total records total distinct records
amount aerage minimum maimum)
efine conditions optional) +ied conditions
-ariables
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 610
983209 SAP AG 2003
nforation about ields and Tables
$C CardCode0
Table name +ield name
System Information
usiness artner 1aster ata
Code
tatus ar
View
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 710983209 SAP AG 2003
Query Wizard Query Wizard Query Wizard
Query Wizard
22
elect
tables
elect +ields 3
ort $rders
44
5ntroduction
Query Wizard Query Wizard
66
Conditions andelationsQuery WizardCompleted
7788
Query9ecution
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 810983209 SAP AG 2003
Query Generator
9ecute Close Conditions
Query Generator
ame escriptionelect
+rom
Where
ort by
Group by
Conditions -ariables
Document Number
Document Type
Canceled
Manual Numbering
Printed
Document Status
W StatusTranser ear
b$ect Type
Posting Date
alue Date
Customerampendor Code
Customerampendor Name
ill To
Customerampendor (e) No)
Ta Percentage
Ta Total
Ta sum +C-
DocNum
Doctype
Canceled
andritten
Printed
DocStatus
nnt)StatusTransered
b$Type
DocDate
DocDueDate
CardCode
CardName
Address
NumAtCard
atPercent
atSum
atSumC
1ual
Greater Tan
Smaller tan
Greater or 1ual
Smaller or 1ual
Not eual
Contains
Does not containStarts it
1nds it
S N455
S NT N455
elect tables and
their relations
efine
sorting+ields to be used
for grouping
efine conditions using the
display frame to the right
Type of grouping
enter manually)
elect fields Table fields by rag3rop 1anual computation fields
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 910983209 SAP AG 2003
$ecuting and anaging Queries
9ecute Cancel eerse Table ae $pen
Cardame GroupCode TotalCardCode
Neumann Matrat6en Gmb
ein6 Mayer
Tomas Maurer
M7bel 8 Mer
C00009
C00002
C00003
C0000
Queries
9ecute query
againisplay query as
a graph
ae in
categories$pen other query
howhide
Qlt
statement
Change
Qlt
statement
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 1010983209 SAP AG 2003
=ou are now able to
Queries Topic Suary
Create queries using the Query Wizard or the
Query 5nterface
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 610
983209 SAP AG 2003
nforation about ields and Tables
$C CardCode0
Table name +ield name
System Information
usiness artner 1aster ata
Code
tatus ar
View
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 710983209 SAP AG 2003
Query Wizard Query Wizard Query Wizard
Query Wizard
22
elect
tables
elect +ields 3
ort $rders
44
5ntroduction
Query Wizard Query Wizard
66
Conditions andelationsQuery WizardCompleted
7788
Query9ecution
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 810983209 SAP AG 2003
Query Generator
9ecute Close Conditions
Query Generator
ame escriptionelect
+rom
Where
ort by
Group by
Conditions -ariables
Document Number
Document Type
Canceled
Manual Numbering
Printed
Document Status
W StatusTranser ear
b$ect Type
Posting Date
alue Date
Customerampendor Code
Customerampendor Name
ill To
Customerampendor (e) No)
Ta Percentage
Ta Total
Ta sum +C-
DocNum
Doctype
Canceled
andritten
Printed
DocStatus
nnt)StatusTransered
b$Type
DocDate
DocDueDate
CardCode
CardName
Address
NumAtCard
atPercent
atSum
atSumC
1ual
Greater Tan
Smaller tan
Greater or 1ual
Smaller or 1ual
Not eual
Contains
Does not containStarts it
1nds it
S N455
S NT N455
elect tables and
their relations
efine
sorting+ields to be used
for grouping
efine conditions using the
display frame to the right
Type of grouping
enter manually)
elect fields Table fields by rag3rop 1anual computation fields
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 910983209 SAP AG 2003
$ecuting and anaging Queries
9ecute Cancel eerse Table ae $pen
Cardame GroupCode TotalCardCode
Neumann Matrat6en Gmb
ein6 Mayer
Tomas Maurer
M7bel 8 Mer
C00009
C00002
C00003
C0000
Queries
9ecute query
againisplay query as
a graph
ae in
categories$pen other query
howhide
Qlt
statement
Change
Qlt
statement
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 1010983209 SAP AG 2003
=ou are now able to
Queries Topic Suary
Create queries using the Query Wizard or the
Query 5nterface
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 710983209 SAP AG 2003
Query Wizard Query Wizard Query Wizard
Query Wizard
22
elect
tables
elect +ields 3
ort $rders
44
5ntroduction
Query Wizard Query Wizard
66
Conditions andelationsQuery WizardCompleted
7788
Query9ecution
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 810983209 SAP AG 2003
Query Generator
9ecute Close Conditions
Query Generator
ame escriptionelect
+rom
Where
ort by
Group by
Conditions -ariables
Document Number
Document Type
Canceled
Manual Numbering
Printed
Document Status
W StatusTranser ear
b$ect Type
Posting Date
alue Date
Customerampendor Code
Customerampendor Name
ill To
Customerampendor (e) No)
Ta Percentage
Ta Total
Ta sum +C-
DocNum
Doctype
Canceled
andritten
Printed
DocStatus
nnt)StatusTransered
b$Type
DocDate
DocDueDate
CardCode
CardName
Address
NumAtCard
atPercent
atSum
atSumC
1ual
Greater Tan
Smaller tan
Greater or 1ual
Smaller or 1ual
Not eual
Contains
Does not containStarts it
1nds it
S N455
S NT N455
elect tables and
their relations
efine
sorting+ields to be used
for grouping
efine conditions using the
display frame to the right
Type of grouping
enter manually)
elect fields Table fields by rag3rop 1anual computation fields
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 910983209 SAP AG 2003
$ecuting and anaging Queries
9ecute Cancel eerse Table ae $pen
Cardame GroupCode TotalCardCode
Neumann Matrat6en Gmb
ein6 Mayer
Tomas Maurer
M7bel 8 Mer
C00009
C00002
C00003
C0000
Queries
9ecute query
againisplay query as
a graph
ae in
categories$pen other query
howhide
Qlt
statement
Change
Qlt
statement
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 1010983209 SAP AG 2003
=ou are now able to
Queries Topic Suary
Create queries using the Query Wizard or the
Query 5nterface
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 810983209 SAP AG 2003
Query Generator
9ecute Close Conditions
Query Generator
ame escriptionelect
+rom
Where
ort by
Group by
Conditions -ariables
Document Number
Document Type
Canceled
Manual Numbering
Printed
Document Status
W StatusTranser ear
b$ect Type
Posting Date
alue Date
Customerampendor Code
Customerampendor Name
ill To
Customerampendor (e) No)
Ta Percentage
Ta Total
Ta sum +C-
DocNum
Doctype
Canceled
andritten
Printed
DocStatus
nnt)StatusTransered
b$Type
DocDate
DocDueDate
CardCode
CardName
Address
NumAtCard
atPercent
atSum
atSumC
1ual
Greater Tan
Smaller tan
Greater or 1ual
Smaller or 1ual
Not eual
Contains
Does not containStarts it
1nds it
S N455
S NT N455
elect tables and
their relations
efine
sorting+ields to be used
for grouping
efine conditions using the
display frame to the right
Type of grouping
enter manually)
elect fields Table fields by rag3rop 1anual computation fields
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 910983209 SAP AG 2003
$ecuting and anaging Queries
9ecute Cancel eerse Table ae $pen
Cardame GroupCode TotalCardCode
Neumann Matrat6en Gmb
ein6 Mayer
Tomas Maurer
M7bel 8 Mer
C00009
C00002
C00003
C0000
Queries
9ecute query
againisplay query as
a graph
ae in
categories$pen other query
howhide
Qlt
statement
Change
Qlt
statement
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 1010983209 SAP AG 2003
=ou are now able to
Queries Topic Suary
Create queries using the Query Wizard or the
Query 5nterface
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 910983209 SAP AG 2003
$ecuting and anaging Queries
9ecute Cancel eerse Table ae $pen
Cardame GroupCode TotalCardCode
Neumann Matrat6en Gmb
ein6 Mayer
Tomas Maurer
M7bel 8 Mer
C00009
C00002
C00003
C0000
Queries
9ecute query
againisplay query as
a graph
ae in
categories$pen other query
howhide
Qlt
statement
Change
Qlt
statement
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 1010983209 SAP AG 2003
=ou are now able to
Queries Topic Suary
Create queries using the Query Wizard or the
Query 5nterface
7172019 03 Queries
httpslidepdfcomreaderfull03-queries 1010983209 SAP AG 2003
=ou are now able to
Queries Topic Suary
Create queries using the Query Wizard or the
Query 5nterface