SAP Workflow Monitoring

Download SAP Workflow Monitoring

Post on 12-Apr-2015

448 views

Category:

Documents

11 download

Embed Size (px)

DESCRIPTION

SAP Workflow Monitoring

TRANSCRIPT

<p>BestPractice:SAPWorkflowMonitoring</p> <p>SAP Workflow MonitoringBest Practice for Solution ManagementVersionDate:July2007 ThenewestversionofthisBestPracticecanbe obtainedthroughtheSAPSolutionManagerContents 1 Introduction .............................................................................................................................3 Applicability,GoalsandRequirement.................................................................................3 PreliminaryInformation......................................................................................................5 2 SAPWorkflowFunctionality.....................................................................................................7 3 SAPWorkflowMonitoringandAnalysis .................................................................................10 3.1 SAPWorkflowlog............................................................................................................10 3.2 MonitoringandAnalysisTools..........................................................................................16 3.2.1 BacklogMonitoringandAnalysis..............................................................................19 3.2.1.1 TransactionSWI1SelectionreportforSAPWorkflows ...................................19 3.2.1.2 TransactionSWI2_FREQ WorkItemsperTask ..............................................23 3.2.1.3 TransactionSWI2_ADM1 WorkItemsWithoutAgents....................................26 3.2.1.4 TransactionSWI6SAPWorkflowsforObject .................................................29 3.2.2 ErrorMonitoringandAnalysis...................................................................................32 3.2.2.1 TransactionSWI2_DIAGDiagnosisofSAPWorkflowswitherrors..................33 3.2.2.2 TransactionSWUDSAPWorkflowDiagnosis.................................................34 3.2.2.3 TransactionSM58tRFCMonitor....................................................................42 3.2.2.4 TransactionSWPRRestartSAPWorkflow.....................................................44 3.2.2.5 TransactionSWPCContinueSAPWorkflow ..................................................44 3.2.2.6 TransactionPFTC GeneralTaskMaintenance ..............................................45 3.2.2.7 TransactionSWDD SAPWorkflowBuilder ....................................................47 3.2.2.8 TransactionSWO1BusinessObjectBuilder..................................................47 3.2.2.9 TransactionSWEQADMEventQueueAdministration ....................................49 3.2.2.10 TransactionSM37SAPWorkflowrelatedJobMonitoring .............................50 3.2.2.11 Errorhandlingroadmap ..................................................................................50 3.2.3 PerformanceMonitoringandAnalysis ......................................................................52 3.2.3.1 TransactionSWI5 Workloadanalysis ............................................................52 3.2.3.2 TransactionST03(ST03N) WorkloadMonitor ................................................56 3.2.3.3 TransactionSTADStatisticalRecords ............................................................57 3.2.3.4 TransactionST12SingleTransactionAnalysis ...............................................58 3.2.4 ResourceMonitoring................................................................................................59 3.2.4.1 TransactionSMQSQoutScheduler ...............................................................59 3.2.5 FurtherInformation ..................................................................................................60 3.2.5.1 Troubleshooting...............................................................................................60 3.2.5.2 Literature.........................................................................................................60 1.1 1.2</p> <p>BestPractice:SAPWorkflowMonitoring</p> <p>2</p> <p>3.2.5.3 BackgroundInformationandReferences .........................................................60 3.2.5.4 FeedbackandQuestions .................................................................................60 3.2.6 APPENDIX:WorkItemArchiving..............................................................................61 3.2.6.1 TransactionSWW_SARA ................................................................................61</p> <p>2007SAPAG</p> <p>BestPractice:SAPWorkflowMonitoring</p> <p>1 Introduction1.1 Applicability, Goals and RequirementThisBestPracticegivesanoverviewonSAPWorkflow monitoring,themaintoolsandtheirfunctions. ThisenableseachresponsibleteamtomonitorSAPWorkflowsoptimally,accordingtotheir responsibilities. ThisBestPracticedescribestheSAPWorkflow monitoringactivities,whichshouldbecarriedoutina particularproductiveenvironmentandonacontinuous/permanentbasis.Therefore,thisBestPractice willnottakeintoaccountcustomizingactivitiesthatareconsideredalreadycomplete. InordertoensuregoodperformanceoftheentireSAPsystem,youshouldtakeintoconsiderationthat creatingmanySAPWorkflowlogscancausetheSAPWorkflowrelatedtablestogrowsignificantlyin thedatabase.Intheappendixyouwillfindrecommendationsonhowtoarchiveworkitems. ThisBestPracticedocumentconsistsofthefollowingsections:Section1Introduction Thissectionexplainsthepurposeofthisdocument.</p> <p>Section2SAPWorkflowFunctionality ThissectiongivesyouashortintroductiontoSAPWorkflow.</p> <p>Section3SAPWorkflowMonitoringandAnalysis Thisisthemainsection,whichintroducestoyouvarioustoolstomonitorSAPWorkflowand analyzeerrorseffectively: o SAPWorkflow log SAPWorkflow logcontainsalltheimportantdataforadministrationandmonitoringof anSAPWorkflow.TheSAPWorkflowlogisthebesttoolavailableforgettingan overviewofanSAPWorkflow instanceandanalyzingit. Differenttransactionsareexplainedindetailinthesection3.2MonitoringandAnalysisTools. BacklogMonitoringandAnalysis WorkItemMonitoringenablesyoutodisplayWorkItems.Youcanseehowmany WorkItemsareexecutedpertypeortask. o ErrorMonitoringandAnalysis Inthissection,youwillfindvarioustoolstoanalyzeerrorsandalsotorestart erroneousItems. o PerformanceMonitoringandAnalysis ThetransactionsexplainedherewillhelpyoutoevaluateSAPWorkflowperformance andinvestigateaperformancebottleneck. o ResourceMonitoring Withresourcemonitoring,youcanensureifenoughresourcesareavailableto executeSAPWorkflow.</p> <p>Section4FurtherInformation Additionalinformationisprovided.</p> <p>Appendix: WorkItemArchiving WorkItemArchivingismentionedhere.Manyperformanceissuescanbecausedbythefact thatSAPWorkflowitemsarenotarchived.</p> <p>GoalofUsingthisServiceTheSAPWorkflowanditsfunctionsoftenplayacentralroleintheSAPsystems.Torunanoperation withouterrorsanddelays,itisimportantthatallprocessstepsintheSAPWorkflowaremonitored. SAPWorkflow monitoringensuresthatthebusinessprocessesruninasmoothandreliableway.This</p> <p>BestPractice:SAPWorkflowMonitoring BestPracticedocumentationsupportstheimplementationofSAPWorkflowmonitoringandthe developmentoftheSAPWorkflow monitoringconcept.</p> <p>4</p> <p>AlternativePractices YoucanhaveSAPexpertsdeliverthisBestPracticeonsitebyorderingaSolutionManagement Optimization(SMO)serviceforSAPInterfaceManagement.Thisserviceisexclusivelyavailablewithin anSAPSupportEngagement(thatis,SAPMaxAttention,SAPSafeguardingorSAPPremium Support).</p> <p>StaffandSkillsRequirements SystemandSAPWorkflowadministratorsandotherpersonsresponsibleforSAPWorkflow managementmakeupthetargetgroupforthisdocument.ItisnecessarytospecifyanSAPWorkflow administrator.ThisadministratormonitorsthebusinessSAPWorkflowsandensuresundisturbed operation.TheresponsibilitiesanddifferenttasksmustbedefinedinanSAPWorkflowmonitoring concept. ToimplementthisBestPractice,yourequirethefollowingteams: ApplicationManagementTeam Thisteamprovidestheinformationonthebusinessbackgroundoftheinterfacesusedandknowsthe businessrequirementsfortheinterfaces: Businessdepartment Solutionsupportorganization(forexampletheBasisSupportortheApplicationSupport) Implementationprojectteam</p> <p>BusinessProcessOperationsTeam TheBusinessProcessOperationsteamwillberesponsibleforapplyingtheresultingprocedures derivedfromimplementingthisbestpractice.Theyincludethefollowinggroups: Personsdesignatedtoperformbusinessprocessorientedmonitoringandensurethatthe processrunssmoothly(forexample,theBusinessProcessChampionforeachbusiness process) AllpartiesinyourSolutionSupportOrganizationandITdepartmentinvolvedinmonitoring focusedontheapplicationaspects(ApplicationSupport,DevelopmentSupport,Program SchedulingManagement)</p> <p>SAPTechnologyOperationsTeam AllpartiesinyourSolutionSupportOrganizationandITdepartmentinvolvedinmonitoring focusedonthesystemadministrationside(ProgramSchedulingManagement,Software MonitoringTeam,SystemAdministrationTeamincludingtheSystemAdministrator)</p> <p>BusinessProcessChampion TheBusinessProcessChampionisthepersoninthebusinessdepartmentthatisresponsible forthesuccessfulexecutionofthebusinessprocess.He/shecoordinatesallactivities necessaryforthebusinessprocess.Therefore,he/sheisusuallyresponsibleforthe escalationpathsincaseofproblems. Thebusinessprocesschampionisoftenasecondlevel intheescalationprocedure,iftheapplicationmonitoringteamneedstoescalateanissue.</p> <p>NecessaryorUsefulTrainingsq q q q q</p> <p>BIT600SAPBusinessSAPWorkflow BIT601SAPBusinessSAPWorkflowBuildandUse BIT603SAPBusinessSAPWorkflowandWebScenarios BIT610SAPBusinessSAPWorkflowProgramming ADM105 AdvancedR/3SystemAdministration</p> <p>2007SAPAG</p> <p>BestPractice:SAPWorkflowMonitoringq</p> <p>5</p> <p>ADM315WorkloadAnalysis</p> <p>SystemRequirements TheinformationinthisdocumentreferstoreleasesSAPR/3Enterprise4.70andhigher.Forsystem access,usetheSAPGUI.</p> <p>DurationandTiming SAPWorkflow monitoringshouldbecarriedoutinallpartsofthebusinessprocesswhichuseSAP Workflow.Monitoringshouldbecarriedoutatleastonceperday,dependingonusageofSAP Workflows.</p> <p>1.2 Preliminary InformationThereareseveralwaysofdefiningSAPWorkflows: AnSAPWorkflowistheautomationofabusinessprocess,duringwhichdocuments,informationor tasksarepassedfromoneparticipanttoanotherforactions,accordingtoasetofproceduralrules. SAPWorkflowslinkseparatebusinesstaskstogetherintoabusinessprocess.TheSAPWorkflow suppliestherightinformation,attherighttime,totherightpeople,distributingtheworkaccordingto businessrules. Thefollowingsuppliesanothermorecommondefinition: AnSAPWorkflowisthecomputersupportedmodelingandexecutionofabusinessprocess.AnSAP WorkflowManagementSystemisacomputersystem,whichcandefine,performandmonitorSAP Workflows.ThesedescriptionsarebasedontheSAPWorkflowManagementCoalition(WFMC) definition.TheWFMCisanoncommercialorganization,whichstandardizesandencouragestheuse ofSAPWorkflowsystems.SAPparticipatesintheWFMC. TheuseofSAPWorkflowwithinbusinessprocessesreturnsdifferentbenefits.TheSAPWorkflow ManagementSystemsimprovethecommunicationbetweenprocessorsthroughintegrationina mailingsystem.ThesystemdeterminestheprocessorofanSAP Workflowactivitybyspecifiedrules (competences)andassignseachactivitytotheappropriateprocessor.SAPWorkflowsallow monitoringdeadlinestoensurethateachactivityisperformedwithinitsdeadlineandusestatistical functionstoanalyzeprocessorandgroupworkloadandefficiency. Asasimpleexample,wecoulduseanapprovalprocedureusinganSAP WorkflowManagement Systemforamaterialrequirementrequest.Thefollowingfigureshowsthegraphicalpresentationof thisprocess.ThefollowingexplainstheprocessstepsinvolvedandthepersonsbelongingtothisSAP Workflow.</p> <p>2007SAPAG</p> <p>BestPractice:SAPWorkflowMonitoring</p> <p>6</p> <p>Figur e1Approvalprocedureforamaterialrequirementrequest Anemployeecreatesamaterialrequirementrequest,thusstartinganSAP Workflow.Thematerial requirementrequestispresentedelectronicallytotheemployeessuperiorforapproval.Themanager canapproveorrejecttherequest.Shouldapprovalbegiven,theemployeeisinformed.Theremaybe subsequentsteps(forexample,createapurchaseorderandsendittoasupplier). Ifthemanagerrejectedtherequest,theemployeeisinformedandcandecidewhethertoreviseor abandontherequest.Theemployeecanabandontherequest,atwhichpointthematerialrequirement requestisdeletedinthesystemandtheSAPWorkflowends.Iftheemployeedecidestorevisethe request,therequestchangefunctionisofferedinthenextstep,andthechangedmaterialrequirement requestisresubmittedtohisorhermanagerforapproval.</p> <p>2007SAPAG</p> <p>BestPractice:SAPWorkflowMonitoring</p> <p>7</p> <p>2 SAP Workflow FunctionalityAnSAP Workflowisasequenceofsteps,whichareprocessedeitherbypeopleorbythesystem. SAPWorkflowlinkstogetherseparatebusinesstasksintoabusinessprocess.Itprovidesanactive flowofinformation: Supplytherightinformation,attherighttime,totherightpeople Distributionofworkaccordingtobusinessrules Exceptionhandlinganddeadlinemonitoring</p> <p>FivequestionsforeverypartofanSAPBusinessSAPWorkflowprocessare: What? When? Inwhatorder? How? Who?</p> <p>SAPWorkflowsarewidelyusedtoautomatedifferentbusinessprocesses.Forexample,SAP Workflowwasusedtoautomatetheroutineadministrativeprocedureofnewusercreation.Itincludes thecreationofanewuserrequestandchanginguserslogondata. SAPBusinessSAPWorkflowliesonanintegrationlevelabovethetransaction/applicationlevel.It usesexistingapplicationfunctions(forexample,transactions,reportsandfunctionmodules).These functionsarenotchanged,buttheyarelinkedtoeachotheraccordingtotherequirementsofthe businessprocess. SAPWorkflowterminology: ThefollowingtabledescribesSAPWorkflowterminology.Itgivesanoverviewofthetechnicalobjects, theirdefinitionsandgivesanexample. Theexampleusedistheprocessofpurchaserequisitionfororderingaprinterforanoffice.Thisfigure showsagraphicaloverviewoftheSAPWorkflowterminologyandalltechnicalobjectsinvolvedinSAP Workflowprocess.</p> <p>Figur e2 OverviewofSAPWorkflow terminologyandtechnicalobjects</p> <p>2007SAPAG</p> <p>BestPractice:SAPWorkflowMonitoring Terminology SAPWorkflow definition Definition Thesetofruleswhichdefinethe SAPWorkflowpaths(routes).The routesmaybelinear,parallelor circular(loop). UsuallyonlyreferredtoastheSAP Workflow.IsasingleSAPWorkflow execution. Theseactionsareguidedbythe SAPWorkflow.Tasksarecarried outbyusers(dialogtasks)witha definedroleintheSAPWorkflowor byprograms(backgroundtasks). Ataskinstanceprocessedasa singleSAPWorkflowstep. Personprocessesataskviaawork item. Example</p> <p>8</p> <p>SAPWorkflow instance Task</p> <p>Themethodofprocessingapurchase requisition.Itincludesthewholeprocess, startingwiththequeryandendingwith creationofthepurchaseorder. Theprocessingofapurchaserequisition foranofficeprinter. Doesaprinteralreadyexistintheoffice?</p> <p>Workitem Processor</p> <p>Checktheofficeforexistingprinters. Thepersonwiththerequest,themanager approvestherequest,thememberofthe ITdepartmentandmemberofthe purchasingdepartmentorganisethe delivery Requester,Approver</p> <p>Roles</p> <p>Thesedefinethefunctionsofthe personsinvolvedintheSAP Workflow. Thisisthedatacollectionusedin theSAPWorkflow. Thesetofrulesdescribeswhich datawillbesenttowhichprocess steps.</p> <p>Container Dataflow</p> <p>Aspecifiedoffice,theorderedprinter Inthepurchaserequisitionprocess,the requireddatais:officeroomnumberand informationabouttheofficeequipment. Dataregardingtherequestorscostcenter isnotnecessary.</p> <p>Object</p> <p>Created at runtime...</p>