Sei sulla pagina 1di 11

Functional Report Development in SAP - A Quick Glance

ABAPQueryAQuickGlance
Appliesto: ECC6.0 Summary

CreatedBy:MdAfsarAli Company:GenpactIndia,Kolkata Introduction WiththehelpofABPQuerywecancreateacustomizingreportasperourbusinessrequirementinSAP.ThroughSQVI, SQ01,SQ02,SQ03willbeabletocreateareportbyjoiningrequiredtables. Thewholeprocesscomprisesofthreesteps. 1) 2) 3) Creationofusergroup Creationofinfoset Creationofqueries

ThetransactioncodesassociatedwithABAPQueryare SQ01 ABAPQuery SQ02 Infoset SQ03 Usergroup CreationofUsergroup

TransactionassociatedwithcreationofusergroupisSQ03

CreationofInfoset

ClickCreatebutton,givethedescriptionofthisUsergroupandSaveit.

CreatedbyMdAfsar

Functional Report Development in SAP - A Quick Glance

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

Functional Report Development in SAP - A Quick Glance

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

Functional Report Development in SAP - A Quick Glance

CreationofABAPQuery TransactionassociatedwithcreationofqueryisSQ01.
Thismovestothefirstscreenofcreationofquery.

Bydefault,thequeriesofusergroupwhichisopenedrecentlyinSQ03aredisplayed.

GiveZSDN_QUERYasQueryNameandClickonCreatebutton.Ahitlistopenswithallthelistofinfosetsassignedto theusergroup(ZSDN_UGRP).SelectZSDN_ISETandclickOk.

Titledisplayedinthisscreenisnothingbutthereporttitle.Numberoflinesperpagecanbespecified.ABAPListis selectedasOutputformat.Thesearetheattributesofthereportthatisgoingtobedeveloped.


CreatedbyMdAfsar

Functional Report Development in SAP - A Quick Glance


ClickonNextscreentoselectthelistoffieldsrequiredinthequery.

ClickonNextScreentoselectthefieldgroupsthataretobeusedinourquery.CheckthecheckboxBillingdocument: HeaderDataandmovetonextscreen.

CreatedbyMdAfsar

Functional Report Development in SAP - A Quick Glance


thecheckboxbeforethefieldsandpressEntertomakeSVand1Zinputenabled.CheckcheckboxSV Nointervalsforselectoption Checkcheckbox1ZNoextensionsforselectoption

ClickonNextscreentodeterminewhichofthesefieldsaretobeselectoptionsandparameters.Check

No.determinestheorderinwhichthefieldsaredisplayedonselectionscreen.


CreatedbyMdAfsar

Functional Report Development in SAP - A Quick Glance

Settings>HideHelptextshidesthehelpprovidedoneveryscreen.


ClickontheBasiclistbuttononapplicationtoolbar.

Selectthecheckboxcolumnsseparatedby|tohaveadelimiterforthefieldsonthereportoutput. Linedeterminesthelineonwhichthefieldsaredisplayed.Fieldscanbesplitintotwolinesaspertherequirement. Sequencegivestheorderinwhichthefieldsaredisplayedonthereportoutput.Sort

helpstosorttherecordsbasedonthespecifiedfield.

Totalgivesthesumtotal. Givetheinputasspecifiedinthebelowscreenshot.


CreatedbyMdAfsar

Functional Report Development in SAP - A Quick Glance


ClickonNextScreentocheckthesequencespecifications

CreatedbyMdAfsar

Functional Report Development in SAP - A Quick Glance

. ClickonNextscreentospecifyfieldoutputoptions.

Length,position&colorformatsofthefieldsonoutputscreencanbechanged.

Unitscanbedisplayedbeforethevalue(firstradiobutton)orafterthevalue(thirdradiobutton)ortheunitneednot bedisplayedatall(middleradiobutton).

ClickonNextscreentospecifyreportheaderandfooter

CreatedbyMdAfsar

Functional Report Development in SAP - A Quick Glance


ClickonNextScreentodeterminethegraphics.DonotchangeoftheoptionsandclickTestbutton.

GivesometextSampleReportForABAPQueryasheaderand&%DATEgivesthecurrentdateinthefooter.

Apopupgetsdisplayedgivingtheoptiontosetthenumberofdatabaserecordstoberead.

ClickOktogettheselectionscreendisplayed. Giveinputtoitasperourrequirement(sayOrderreason105&Netvalueisgreaterthanorequalto1000).

CreatedbyMdAfsar

Functional Report Development in SAP - A Quick Glance


Outputofthereportgivesthelistofrecordswhichbelongtoorderreason105andamountisgreaterthanorequalto 1000.


ClickingonALVbuttononapplicationtoolbar,outputofthereportchangestoALVGridformatwithoutanyextra effort.


CreatedbyMdAfsar

Potrebbero piacerti anche