8/18/2019 Sap Basic Query Creation
1/26
SAP BASIC QUERY CREATION
8/18/2019 Sap Basic Query Creation
2/26
USER GROUP CREATION
• Navigate to the User Group Initial screen usingtransaction code SQ03.
• Type the user group name that you will ecreating and select the create button.
8/18/2019 Sap Basic Query Creation
3/26
USER GROUP CREATION
• Type the name o! the user group Q"T#ST andclic$ save utton.
8/18/2019 Sap Basic Query Creation
4/26
USER GROUP CREATION
• Select the %ssign Users and InfoSets utton.Type the S%& user I's o! any users
whom you want to include in your test group.
8/18/2019 Sap Basic Query Creation
5/26
INFOSET CREATION
• Navigate to the In!oset Initial screen usingtransaction code SQ0(. Type the In!oSet namethat you will e creating and select the Create
button.
8/18/2019 Sap Basic Query Creation
6/26
INFOSET CREATION
• Input the name o! the in!oset) choose the datasource and press o$ utton
8/18/2019 Sap Basic Query Creation
7/26
INFOSET CREATION
• The screen elow will e shown a!ter thecreation o! in!oset. Select insert tale icon in theapplication toolar* a pop+up will appear where you can enter the tale you want to e ,oined inthe tale you have speci!ied during the initial
selection.
8/18/2019 Sap Basic Query Creation
8/26
INFOSET CREATION
• %!ter selecting -/) the screen elow will eshown. 1eturn to in!oset !ield selection via-In!oset 2aintenance utton
8/18/2019 Sap Basic Query Creation
9/26
INFOSET CREATION
• % pop+up will appear* normally) when creating a4uery) we always choose -5reate empty !ieldgroups
8/18/2019 Sap Basic Query Creation
10/26
INFOSET CREATION
• Two empty !ield groups got created. In the le!tpane) we !ind the list o! !ields in oth the tales 67%/ and 67%&. 8ou can assign !ields to the!ield group y dragging9dropping !ields !rom thele!t pane.
8/18/2019 Sap Basic Query Creation
11/26
8/18/2019 Sap Basic Query Creation
12/26
INFOSET CREATION
• Go ac$ to the main screen o! SQ02 byclicking Back Button on standard tool
bar. Click on Role/User Grou !ssign"ent button to assign the infoset toa secific user grou.
8/18/2019 Sap Basic Query Creation
13/26
QUERY CREATION
• Navigate to the Queries Initial screen usingtransaction code SQ0;) input the desired 4ueryname) then clic$ on -5reate and select thein!oset to e lin$ed to the 4uery
8/18/2019 Sap Basic Query Creation
14/26
QUERY CREATION
• Type the title
8/18/2019 Sap Basic Query Creation
15/26
QUERY CREATION
• To navigate to the ne:t screen in the S%& 4uery+creation process) select the ne:t screen
8/18/2019 Sap Basic Query Creation
16/26
QUERY CREATION
• Select the !ield groups that are to e used in our4uery.
8/18/2019 Sap Basic Query Creation
17/26
QUERY CREATION
• 5lic$ on #e$t screen to select the list offields re%uired in the %uery. &'ields
include both Selection Screen and (ututfields).
8/18/2019 Sap Basic Query Creation
18/26
QUERY CREATION
• 5lic$ on #e$t screen to deter"ine *hich ofthese fields are to be used in the selection
screen and secify the se%uence in *hichselection to aear in selection screen.
8/18/2019 Sap Basic Query Creation
19/26
QUERY CREATION
• Select the 7asic >ist utton !rom the applicationtoolar. The 7asic >ist screen shows you a list o!
the selected !ields that you want to include !or your report. ?or each !ield) you can speci!y the>ine and Se4uence numer as you want them to
appear on your report.
8/18/2019 Sap Basic Query Creation
20/26
QUERY CREATION
• 5lic$ on #e$t Screen to check the se%uencesecifications.
8/18/2019 Sap Basic Query Creation
21/26
QUERY CREATION
• 5lic$ on #e$t screen to secify field oututotions.
• +ength, osition - color for"ats of thefields on outut screen can be changed.
8/18/2019 Sap Basic Query Creation
22/26
QUERY CREATION
• 5lic$ on #e$t screen to secify reortheader and footer
8/18/2019 Sap Basic Query Creation
23/26
QUERY CREATION
• 5lic$ on #e$t Screen to deter"ine thegrahics for (utut.
• S!
8/18/2019 Sap Basic Query Creation
24/26
QUERY CREATION
• To test the 4uery) press -5T1>@?A B % pop+up will appear as$ing !or a variant) ,ust press -o$
8/18/2019 Sap Basic Query Creation
25/26
SAMPLE SELECTION SCREEN
8/18/2019 Sap Basic Query Creation
26/26
SAMPLE OUTPUT