Vous êtes sur la page 1sur 6

8/17/2016

Basicstepsofreportgenerationbyquerywith...|SCN

GettingStarted Newsletters

Hi,Guest

LogOn

JoinUs

Products

Services&Support

AboutSCN

Downloads

Industries

Training&Education

Partnership

DeveloperCenter

Activity

LinesofBusiness

UniversityAlliances

Events&Webinars

Innovation

Browse

Basicstepsofreportgenerationbyquery
withexampleandscenario

Store

SearchtheCommunity

Communications

Actions

Version1

createdbySharatSuguronJun16,20125:11AM,lastmodifiedbySharatSuguronJun16,20125:12AM

Share

Tweet

Like

Basicstepsofreportgenerationbyquerywithexampleandscenario:

QMReporttogettheVendorname,andDCnumberforinspectionlotsbyQuery:

Introduction:

CurrentQMreportsinSAPwillprovideinformationwithvendorcodeforinspectionlotsinQA32/QA33transaction.
ButthefieldsavailableinthesetransactionswillnotsufficeasthemissingfieldsofvendornameandDCnumber.And
manytimesweneedtodevelopthesereportsinQMbasedondifferentrequirements,andmostofthemcanbe
achievedbythismethod.

Agendaofsharingthisisto,helpfunctionalconsultanttocreateQueryandtransactiononhisownandavoid
dependencyonABAP.Thisisanattempttohelppeoplewhoarenotawareofthisorneedsclarityinthesteps.Ifyou
feelthisishelpfulyoucanratethedocument.Thankyou.

Scenarioisassaidbelow.

Scenario:

FortheboughtoutpartsandpartscomingfromvendorareinwardedwithpurchasedocumentsalongwithDCnumber.
Andatthesametimetheinformationcardisprintedforthesepartsandthesheetisattachedtotherespectivestorage
bin.

QCcheckcantakesplacebasedonthepriorityandcantakeminimum3to4daystovisittheparticularlot.Andatthis
pointoftime,QCwantstoidentifyandcorrelatethepartswithinspectionlot.AndforthisQCneedsareportwhich
includesQualityinspectionlotnumber,lotquantity,materialdocument,vendorcode,vendorname,andDCnumber.

SuchkindofreportnotavailableinstandardSAPandthiscanbeeasilyachievedwithSAPABAPQueryanda
transactioncodecanbecreatedtoservethepurposebythefunctionalconsultant.

Requirements:

NeedreportofdisplayinginspectionlotdetailsalongwithvendordetailsandDCnumber.

Inputselections:
Inspectionlotnumberrange
Plant
Inspectionlotorigin

Outputrequirement:

Stepwisemethodtoachievethisthroughquery

Step1:CreateusergroupinSQ03

http://scn.sap.com/docs/DOC29233

1/6

8/17/2016

Basicstepsofreportgenerationbyquerywith...|SCN

AddQMpackageandsavetheusergroupwithtransportnumber.

Step2:CreateInfosetinSQ02

Addalltherequiredtableswithkeyfieldsasshownbelow

Generatetheinfosetasshownbelow

http://scn.sap.com/docs/DOC29233

2/6

8/17/2016

Basicstepsofreportgenerationbyquerywith...|SCN

Savewithtransportnumberandbelowmessageisreceived.

Step3:AssigntheinfosettotheusergroupinSQ02

Step4:CreateQueryinSQ01transaction

Sincethereisoneinfosetassigned,youcanselectthesameinthepopupmessage.

Selectthefieldgroups

Selectthefields

http://scn.sap.com/docs/DOC29233

3/6

8/17/2016

Basicstepsofreportgenerationbyquerywith...|SCN

Selecttheinputselectionfieldswithnumbering,lowernumberwillbearrangedfromthetopindisplay

ClickonBasiclisttoselecttheoutputfields

Selecttheoutputfieldsasshownbelow

Clickontesttocheck

Selectionscreen

Outputscreen

Savethequery

Step4:Generatetheprogramforthequery

Identifytheprogramnameinthequery

http://scn.sap.com/docs/DOC29233

4/6

8/17/2016

Basicstepsofreportgenerationbyquerywith...|SCN

Step5:CreatethetransactioninSE93forthequery

Savethetransaction.
Thiscompletestherequirement.

Disadvantage:
ItisnotrecommendedtocreateTcodeonthegeneratedprogramnameE.g.:
AQZZQM_VEN_RPT==ZQMVEND========).ThisisbecauseiftheInfosetQueryundergoesanychanges,thenat
leastoncetheInfosetqueryshouldbeexecutedthroughSQ01transactioninproduction(GenerateQuery),otherwise
thetransactioncodewillstillpointtotheoldgeneratedprogram.
Solution:Toavoidaboveproblemforchanginginfoset,wecanadoptbelowmethod.
TransactioncodewillbeautomaticallycreatedbysystemthroughAreaMenu(SE43).Thissystemgenerated
transactioncodepointstoInfosetquery(standardarea/globalarea)andnotthegeneratedprogram.

Hopethisdocumenthelps.

11505Views

Products:sap_erp_operations_quality_managementTopics:enterprise_resource_planning

AverageUserRating
(9ratings)

Share

Tweet

Like

9Comments
SAPQMPPNov5,20121:50PM

HISharat,
Veryusefuldocumentyouhavesharedandcouldpleasementionthetablenamesandsequence
ofthetables.
Like(1)

RaviPrakashMar20,20132:14PM(inresponsetoSAPQMPP)

VeryNicedocumentpleasekeeponpostedtosharetheknowledge.Iwouldtoloveitif
someofPMreportscanbealsoexplored.
Like(1)

MaheswaranKD.Aug10,20137:48AM

NicedocumenttocreatethereportsonFunctionalside.
Like(1)

ChennakeshavaRaoChinnamJan27,20144:55PM

Nicedocument....informative...
Like(1)

http://scn.sap.com/docs/DOC29233

5/6

8/17/2016

Basicstepsofreportgenerationbyquerywith...|SCN
NareshPatilMar11,20148:09AM

Wellexplainedandusefulforfunctionalpeople...
Like(1)

gopalpApr16,20148:17AM

Nicedocumentveryusefulforme
Like(1)

KrishnaMadduriOct6,20148:16AM

Averyusefuldocument.Thankyouforsharing.
Like(0)

vimlendukaushikDec29,201510:57AM

couldyoupleasetellmewhataretheothertables&fields,youhaveaddedintheaboveinfoset,in
thescreenshorts,itisnotclear.
Like(0)

DarshakKathiriyaJan14,20164:18PM

HiSharat,

Thanksfordocument.Ineedtoaddmorefieldstoexistingquery(fromsametables)butIamgetting
thiserror.Canyoupleaseadvise?

Thequerypaintercannotbeusedwiththisquery
Messageno.AQQV081
Diagnosis
ThequerycontainselementsthatarenolongersupportedintheQueryPainter.
Multilineheaders
Structuresinthefunctionalarea(enhancementinBasis4.6C).
LogicaldatabaseswithtypeCnodes(pooltype)cannotbeprocessed.

Procedure
Usetheusualmaintenanceinterfacetoeditthequery,andremoveanyelementsthatarenolonger
supported.

Thanks,
Darshak
Like(1)

SiteIndex
Privacy

ContactUs
TermsofUse

http://scn.sap.com/docs/DOC29233

SAPHelpPortal
LegalDisclosure

Copyright

FollowSCN

6/6

Vous aimerez peut-être aussi