Report Development CMD Afsar
Transcript of Report Development CMD Afsar
-
7/29/2019 Report Development CMD Afsar
1/11
Functional Report Development in SAP - A Quick Glance
CreatedbyMdAfsar
ABAPQueryAQuickGlance
Appliesto:
ECC6.0
Summary
CreatedBy:MdAfsarAli
Company: GenpactIndia,Kolkata
Introduction
WiththehelpofABPQuerywecancreateacustomizingreportasperourbusinessrequirementinSAP.ThroughSQVI,SQ01,SQ02,SQ03willbeabletocreateareportbyjoiningrequiredtables.
Thewholeprocesscomprisesofthreesteps.
1) Creationofusergroup2) Creationofinfoset3) Creationofqueries
ThetransactioncodesassociatedwithABAPQueryare
SQ01 ABAPQuery SQ02 Infoset SQ03 Usergroup
CreationofUsergroup
TransactionassociatedwithcreationofusergroupisSQ03
ClickCreatebutton,givethedescriptionofthisUsergroupandSaveit.
CreationofInfoset
-
7/29/2019 Report Development CMD Afsar
2/11
Functional Report Development in SAP - A Quick Glance
CreatedbyMdAfsar
TransactionassociatedwithcreationofinfosetisSQ02
ByclickingonCreatebutton,apopupopens.Giveadescriptionatthenamefieldandspecifythebasistabletojoinas
VBRKandpressOk.
Innextscreen,anewtablecanalsobeinsertedbyclickingonInserttablebuttononapplicationtoolbar.GiveVBRPas
inputintheAddtablepopup.Bydefault,joinconditionsaredisplayedorelsetheycanbedeterminedbyclickingon
Joinconditionsbutton.
-
7/29/2019 Report Development CMD Afsar
3/11
Functional Report Development in SAP - A Quick Glance
CreatedbyMdAfsar
Formaintainingtheinfoset,clickonInfosetbutton.Apopupopensaskingwhatfieldsshouldbethereinfieldgroups.
SelectradiobuttonCreateemptyfieldgroupsandpressOk.
Twoemptyfieldgroupsgotcreated.Intheleftpane,wefindthelistoffieldsinboththetablesVBRKandVBRP.Drag
anddropthe fields fromthe leftpaneontothe fieldgroups.Asofnow,wemakeuseofonlyone fieldgroup(say
Billingdocument
Header
data).
DeletethesecondfieldgroupbyclickingontheDeleteFieldGroupbuttonasitisnotcontaininganyfieldsinit.Click
onGeneratebuttontogeneratetheinfoset.
GobacktothemainscreenofSQ02byclickingBackButtononstandardtoolbar.ClickonRole/UserGroup
Assignmenttoassigntheinfosettoaspecificusergroup.
Check
the
checkbox
beside
the
user
groups
and
Save
to
assign
infoset
to
them.
Here,
ZSDN_ISET
is
assigned
to
ZSDN_UGRP.
-
7/29/2019 Report Development CMD Afsar
4/11
Functional Report Development in SAP - A Quick Glance
CreatedbyMdAfsar
CreationofABAPQuery
TransactionassociatedwithcreationofqueryisSQ01.
Bydefault,thequeriesofusergroupwhichisopenedrecentlyinSQ03aredisplayed.
GiveZSDN_QUERYasQueryNameandClickonCreatebutton.Ahitlistopenswithallthelistofinfosetsassignedto
theusergroup(ZSDN_UGRP).SelectZSDN_ISETandclickOk.
Thismovestothefirstscreenofcreationofquery.
Titledisplayedinthisscreenisnothingbutthereporttitle.Numberoflinesperpagecanbespecified.ABAPListis
selectedasOutputformat.Thesearetheattributesofthereportthatisgoingtobedeveloped.
-
7/29/2019 Report Development CMD Afsar
5/11
Functional Report Development in SAP - A Quick Glance
CreatedbyMdAfsar
Clickon
Next
Screen
to
select
the
field
groups
that
are
to
be
used
in
our
query.
Check
the
checkbox
Billing
document:
HeaderDataandmovetonextscreen.
ClickonNextscreentoselectthelistoffieldsrequiredinthequery.
-
7/29/2019 Report Development CMD Afsar
6/11
Functional Report Development in SAP - A Quick Glance
CreatedbyMdAfsar
ClickonNextscreentodeterminewhichofthesefieldsaretobeselectoptionsandparameters.Check
thecheckboxbeforethefieldsandpressEntertomakeSVand1Zinputenabled.CheckcheckboxSV
Nointervalsforselectoption
Checkcheckbox1ZNoextensionsforselectoption
No.determinestheorderinwhichthefieldsaredisplayedonselectionscreen.
-
7/29/2019 Report Development CMD Afsar
7/11
Functional Report Development in SAP - A Quick Glance
CreatedbyMdAfsar
Settings>HideHelptextshidesthehelpprovidedoneveryscreen.
ClickontheBasiclistbuttononapplicationtoolbar.
Selectthecheckboxcolumnsseparatedby|tohaveadelimiterforthefieldsonthereportoutput.
Linedeterminesthelineonwhichthefieldsaredisplayed.Fieldscanbesplitintotwolinesaspertherequirement.
Sequencegivestheorderinwhichthefieldsaredisplayedonthereportoutput.Sort
helpstosorttherecordsbasedonthespecifiedfield.
Totalgivesthesumtotal.
Givetheinputasspecifiedinthebelowscreenshot.
-
7/29/2019 Report Development CMD Afsar
8/11
Functional Report Development in SAP - A Quick Glance
CreatedbyMdAfsar
ClickonNextScreentocheckthesequencespecifications
-
7/29/2019 Report Development CMD Afsar
9/11
Functional Report Development in SAP - A Quick Glance
CreatedbyMdAfsar
.
ClickonNextscreentospecifyfieldoutputoptions.
Length,position&colorformatsofthefieldsonoutputscreencanbechanged.
Unitscanbedisplayedbeforethevalue(firstradiobutton)orafterthevalue(thirdradiobutton)ortheunitneednot
bedisplayedatall(middleradiobutton).
ClickonNextscreentospecifyreportheaderandfooter
-
7/29/2019 Report Development CMD Afsar
10/11
Functional Report Development in SAP - A Quick Glance
CreatedbyMdAfsar
GivesometextSampleReportForABAPQueryasheaderand&%DATEgivesthecurrentdateinthefooter.
ClickonNextScreentodeterminethegraphics.DonotchangeoftheoptionsandclickTestbutton.
Apopupgetsdisplayedgivingtheoptiontosetthenumberofdatabaserecordstoberead.
ClickOktogettheselectionscreendisplayed.
Giveinputtoitasperourrequirement(sayOrderreason105&Netvalueisgreaterthanorequalto1000).
-
7/29/2019 Report Development CMD Afsar
11/11
Functional Report Development in SAP - A Quick Glance
CreatedbyMdAfsar
Outputofthereportgivesthelistofrecordswhichbelongtoorderreason105andamountisgreaterthanorequalto
1000.
ClickingonALVbuttononapplicationtoolbar,outputofthereportchangestoALVGridformatwithoutanyextra
effort.