Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
ABAPQueryAQuickGlance
Appliesto: ECC6.0 Summary
TransactionassociatedwithcreationofusergroupisSQ03
CreationofInfoset
ClickCreatebutton,givethedescriptionofthisUsergroupandSaveit.
CreatedbyMdAfsar
TransactionassociatedwithcreationofinfosetisSQ02
ByclickingonCreatebutton,apopupopens.Giveadescriptionatthenamefieldandspecifythebasistabletojoinas VBRKandpressOk.
Innextscreen,anewtablecanalsobeinsertedbyclickingonInserttablebuttononapplicationtoolbar.GiveVBRPas input in the Add table popup. By default, join conditions are displayed or else they can be determined by clicking on Joinconditionsbutton.
CreatedbyMdAfsar
Formaintainingtheinfoset,clickonInfosetbutton.Apopupopensaskingwhatfieldsshouldbethereinfieldgroups. SelectradiobuttonCreateemptyfieldgroupsandpressOk.
Two empty field groups gotcreated. In the left pane, we find the list of fields in boththe tables VBRKand VBRP.Drag and drop the fields from the left pane on to the field groups. As of now, we make use of only one field group (say BillingdocumentHeaderdata).
DeletethesecondfieldgroupbyclickingontheDeleteFieldGroupbuttonasitisnotcontaininganyfieldsinit.Click onGeneratebuttontogeneratetheinfoset.
GobacktothemainscreenofSQ02byclickingBackButtononstandardtoolbar.ClickonRole/UserGroup Assignmenttoassigntheinfosettoaspecificusergroup.
CheckthecheckboxbesidetheusergroupsandSavetoassigninfosettothem.Here,ZSDN_ISETisassignedto ZSDN_UGRP.
CreatedbyMdAfsar
CreationofABAPQuery TransactionassociatedwithcreationofqueryisSQ01.
Thismovestothefirstscreenofcreationofquery.
Bydefault,thequeriesofusergroupwhichisopenedrecentlyinSQ03aredisplayed.
GiveZSDN_QUERYasQueryNameandClickonCreatebutton.Ahitlistopenswithallthelistofinfosetsassignedto theusergroup(ZSDN_UGRP).SelectZSDN_ISETandclickOk.
Titledisplayedinthisscreenisnothingbutthereporttitle.Numberoflinesperpagecanbespecified.ABAPListis selectedasOutputformat.Thesearetheattributesofthereportthatisgoingtobedeveloped.
CreatedbyMdAfsar
ClickonNextscreentoselectthelistoffieldsrequiredinthequery.
ClickonNextScreentoselectthefieldgroupsthataretobeusedinourquery.CheckthecheckboxBillingdocument: HeaderDataandmovetonextscreen.
CreatedbyMdAfsar
thecheckboxbeforethefieldsandpressEntertomakeSVand1Zinputenabled.CheckcheckboxSV Nointervalsforselectoption Checkcheckbox1ZNoextensionsforselectoption
ClickonNextscreentodeterminewhichofthesefieldsaretobeselectoptionsandparameters.Check
No.determinestheorderinwhichthefieldsaredisplayedonselectionscreen.
CreatedbyMdAfsar
Settings>HideHelptextshidesthehelpprovidedoneveryscreen.
ClickontheBasiclistbuttononapplicationtoolbar.
helpstosorttherecordsbasedonthespecifiedfield.
Totalgivesthesumtotal. Givetheinputasspecifiedinthebelowscreenshot.
CreatedbyMdAfsar
ClickonNextScreentocheckthesequencespecifications
CreatedbyMdAfsar
. ClickonNextscreentospecifyfieldoutputoptions.
Length,position&colorformatsofthefieldsonoutputscreencanbechanged.
Unitscanbedisplayedbeforethevalue(firstradiobutton)orafterthevalue(thirdradiobutton)ortheunitneednot bedisplayedatall(middleradiobutton).
ClickonNextscreentospecifyreportheaderandfooter
CreatedbyMdAfsar
ClickonNextScreentodeterminethegraphics.DonotchangeoftheoptionsandclickTestbutton.
GivesometextSampleReportForABAPQueryasheaderand&%DATEgivesthecurrentdateinthefooter.
Apopupgetsdisplayedgivingtheoptiontosetthenumberofdatabaserecordstoberead.
ClickOktogettheselectionscreendisplayed. Giveinputtoitasperourrequirement(sayOrderreason105&Netvalueisgreaterthanorequalto1000).
CreatedbyMdAfsar
Outputofthereportgivesthelistofrecordswhichbelongtoorderreason105andamountisgreaterthanorequalto 1000.
ClickingonALVbuttononapplicationtoolbar,outputofthereportchangestoALVGridformatwithoutanyextra effort.
CreatedbyMdAfsar