Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

10/10/2016

SAPBusinessWorkflowABAPDevelopmentSCNWiki
GettingStarted

CommunityWIKI

SAPCommunity

Welcome,Guest

Login

Store

Register

ABAPDevelopment / ABAPDevelopment

SAPBusinessWorkflow
CreatedbyGuest,lastmodifiedbyR.J.vanLooyonMay25,2009

#WhatareadvantagesofSAPBusinessWorkflows?
#WhatarethelayersinWorkflowArchitecture?
#HowProcess,BusinessLogicandPeoplearelinkedinWorkflows?
#WhatisaBusinessObject?
#WhatisanAgentandwhataredifferenttypesofAgent?
#WhatarethecapabilitiesofWorkflowBuilder?
#WhatareEvents?
#WhatarethevariousmethosofcreatingEvents?
#HowcananEventbelinkedwithaWorkflow?
#Whatarecontainers,BindingandBindingEditor?
#WhatareimportantTransactionsandReports?
#WherecanIfindmoredetailsaboutworkflows?
#ExceptioninbindingofTaskandtheMethod?
#BasicFunctionModulesinWorkflows?

WhatareadvantagesofSAPBusinessWorkflows?
Abusinessprocesscanconsistofseveralsteps.Historically,the
taskshavebeencoordinatedmanuallyorbysomeinformalmeans
ofcommunication(stickynote,email,shouting,andsoon).
Thecommonproblemintheseapproachesis:
Inefficiency
Eachlacksawaytotracewhereataskis
Whoexecuted(orisexecutingit),
Howmuchtimeitrequires.
Incontrast,theworkflowensuresthattherightworkissenttotherightpersonattherighttimeintherightsequencewiththerightinformation.
Workflowisatoolforautomizationofbusinessprocesses
Nottieduptoanyparticularapplication
Operatesuniformlyacrossapplications
Coordinateallparticipatingtasks
Provideuserswithactivesupport
DeadlineManagementispossible
Workflowsareveryusefulforbusinessprocessesthat:
Containasequenceofactivities.
Reoccurinthesameorsimilarforms.
Involveseveralpeopleorgroupsofpeople.
Requireconsiderablecoordination.
backtotop

WhatarethelayersinWorkflowArchitecture?
Thereare3layersintheWorkflowArchitecture:
BusinessObject
BusinessProcess
OrganizationModel
backtotop

HowProcess,BusinessLogicandPeoplearelinkedinWorkflows?
ThebusinessprocessesaredefinedinWorkflowbuilder.Eachandeverysmallworkprocessiscalledasanactivityintheworkflowbuilder.Eachactivityconsistsofasinglesteptask,whichcanbea
standardtaskoraworkflowtemplate.
AssociatedBusinessLogicisbuiltinBusinessObjects.i.e.ABAPcodewillbeinBusinessObject.BusinessObjectsconsistofattributes,methodsandevents.MethodsconsistofABAPcode.Eachand
everystandardtaskisassociatedwithaBusinessObjectandamethod.
People/Groupofpeopleresponsiblefortakingactionsaredefinedinorganizationstructure.Personresponsiblefortakinganactioniscalledactualagent.Itisdefinedintheworkflowactivity.
backtotop

WhatisaBusinessObject?
Businessobject(BO)isbasicallycollectionofAttributes,MethodsandEventsforaparticularbusinessentity.ExampleofBO:SaleOrder,Vendor,Customer,Materialetc.
BOswraparoundbackendtables,applicationcode,changedocumentandothertechnicalinformationandexposethemasAttributes,MethodsandEvents.UsuallymethodsofBOsrefertoBAPIs.

https://wiki.scn.sap.com/wiki/display/ABAP/SAP+Business+Workflow

1/6

10/10/2016

SAPBusinessWorkflowABAPDevelopmentSCNWiki

ThefollowingdiagramexplainsBOmuchbetter:

backtotop

WhatisanAgentandwhataredifferenttypesofAgent?
Anagentisapersonoragroupofpersonswhocantakeanactionduringworkflowruntime.Actioncanbeapprovalofsomebusinessdocument,creationofsomedocumentorsendingemail.
TherearebasicallythreetypesofAgents:
ActualAgent:Onewhoactuallytakestheaction.ThisisprovidedintheworkflowActivity.
PossibleAgent:Allpossiblepersons/entitiesthatcanexecuteataskduringruntime.DefineseitherinOrgStructureortask.
ExcludedAgents:Personswhoareexcludedfromtakingactiononatask.Theseareassignedintheworkflowdefinitionattheworkflowactivity.
SystemchecksActualAgentdefinedinworkflowruntimewiththePossibleAgentsdefinedinthetaskandtheExcludedAgents.ActualAgentshouldbeasubsetofPossibleAgentsminustheExcluded
Agents,elseAgentresolutionfails.
backtotop

WhatarethecapabilitiesofWorkflowBuilder?
backtotop

WhatareEvents?
Eventsareactionsthatoccurinthesystemandthatactsastriggerpointforanyworkflow.Eg.Salesordercreation.isanevent.
EgConsiderascenariowhereanysalesorderaftercreationsubjecttoapprovalfromsuperior.Sohereaworkflowcomesintoplay.TheworkflowneedstostartwheneveraSalesorderiscreated.The
businessobjectBUS2032isassociatedtosalesordercreation.IthaseventCREATED.Sothetriggerpointor"STARTEVENTS"intheworkflowistheBUS2032'seventCREATED.
ThenbindtheeventtotheworkflowsothedataflowsfromeventtotheWorkflow.e.g.:Salesorderiscreated.Sofortheworkflowtoproceedit'llneedsalesorderdetails.Withbindingtherespectivevalues
ismappeditotheworkflowcontainer.
Thenactivatethelinkageonceyouarethroughtheworkflowcreation.Thisisimportantasafterthisonlytheworkflowwilllistenfortheevent,inthesensethatafterthisonlytheworkflowistriggeredonthe
event.Thisiscriticalalsoaseachactivelinkaddstosystemloadconsiderablyandtoomanyworkflowsinthetestenvironmentcanbringthesystemdown.Socareful.Deactivateoncetestisoverand
workflowisnolongerused.
backtotop

WhatarethevariousmethosofcreatingEvents?
ThevariousmetodsofcreatingEventsare:
Functionmoduleeventcreationbycallingfunctionmodule
SWE_EVENT_CREATEorSAP_WAPI_CREATE_EVENT.
Changedocuments
Eventcreationwhenchangedocumentsarewritten.
Generalstatusmanagement
LogisticsInformationSystem(LIS)
Eventcreationuponstatuschanges.
BusinessTransactionEvents
MessageControl
backtotop

HowcananEventbelinkedwithaWorkflow?
Considerthestartofanyworkflow.TheSTARTEVENTStabistakenthroughtheheader.TheBusinessObjectisspecifiedandbindingisgeneratedtotheworkflowtoreceivethevaluesandthenthelinkis
activated.SeethepicbelowfortheSalesOrdercreationasstarteventforaworkflow.

https://wiki.scn.sap.com/wiki/display/ABAP/SAP+Business+Workflow

2/6

10/10/2016

SAPBusinessWorkflowABAPDevelopmentSCNWiki

backtotop

Whatarecontainers,BindingandBindingEditor?
ContainersarenothingbuttheVariablesintheWorkflowthatholdthevaluesintheworkflow.Theycanbesimplevariablesorstructuresorevenobjectsofanyclass.Sotheyarebesttreatedasthe
variables.Bindingasexplainedaboveispassingthevaluesfromevents,methodsandotherexternalssourcestothecontainer.Whenaneventisbindedtotheworkflowthenthedataautomaticallyflows
fromtheEventtotheContainerintheworkflow.Bindingeditoristhereasautomaticbindingmaynotalwayspickuptherightordesiredbindingorpreciselythemappinggeneratedmaynotbeappropriateor
asrequiredduetotechnicalreasonswhichanytechiecanguess.Soeditorgivesanoptiontothedevelopertoeditorgeneratemanually.
backtotop

WhatareimportantTransactionsandReports?
Theareamenu'SWLD'listsallthetransactionsassociatedwithBusinessworkflows.
SWDDMainWorkflowBuilder.
PFTCGeneraltaskmaintenance.
SWO1BusinessObjectBuilder.
SBWPTheBusinessWorkplaceSWDMBusinessWorkflowExplorer
SWELSSwitchEventTraceOn/Off
SWETYPVDisplay/Maint.EventTypeLinkages
SWUSTestWorkflow
SWUIStartWorkflow
SWI6WorkflowforObjects
SW14WorkflowsforObjectsTypes
SWDBWorkflowBuilderCreateWorkflow
SWLVMaintainViews
TASK/TASKGROUPS
PFTC_INSCreate
PFTC_CHGChange
PFTC_DISDisplay
PFTC_COPCopy
PFTC_DELDelete
TcodesRelatedToEvents
EventsCreation
BSVWStatusmanagement

https://wiki.scn.sap.com/wiki/display/ABAP/SAP+Business+Workflow

3/6

10/10/2016

SAPBusinessWorkflowABAPDevelopmentSCNWiki

NACEMessageControl
AWUWLogisticsInformationSystem(LIS)
EventLinkages
SWB_CONDWorkflowStartConditions
Workitemanalysis
SWI2_FREQWorkItemsPerTask
SWI2_DEADWorkItemsWithMonitoredDeadlines
SWI2_DURAWorkItemsByProcessingDuration
Taskanalysis
SWI11TasksinWorkflows
SWI13Taskprofile
ListofImportantTransactionCodes
FormoreSAPBusinessWorkflowTransactions,checkthelink:http://help.sap.com/saphelp_40b/helpdata/en/9b/572614f6ca11d1952e0000e82dec10/content.htm
backtotop

WherecanIfindmoredetailsaboutworkflows?
SAPHelpBusinessWorkflows
SDNForums
SDNBlogsforWorkflows
SAPBusinessWorkflowFAQ
backtotop

ExceptioninbindingofTaskandtheMethod?
ItisobservedthatwhenwebindaTaskwithanyBOMethodthenallthefieldsdefinedforbindingarewipedoutafterwesavethebindingi.e.ifwewanttoseethefieldstakingpartinbindingoftheTASK&
METHODorwhilebindingtheworkflowandtheTASKitisobservedthatthecontainerelementsandtaskcontainerelementsdisappeareventhoughbindingisestablished.Thishappensbecauseof
inconsistentbuffersynchronization.
ToovercomethisissuefollowthestepsinSWDD.
Menu>Extras>Transport>Synchronizeruntimebuffer,orgotoTCODESWU_OBUFofbuffersynchronization.

https://wiki.scn.sap.com/wiki/display/ABAP/SAP+Business+Workflow

4/6

10/10/2016

SAPBusinessWorkflowABAPDevelopmentSCNWiki

backtotop

BasicFunctionModulesinWorkflows?
SWW_WI_POPUP_FOR_COMPLETION"showsthecompeletedstatusofaworkflow
SWW_ADDR_KEY_CREATE_FROM_USER"displaytheaddressoftheuserorrecipient
SWW_WI_DELETE"deleteworkitem
SWW_WI_CREATE_VIA_EVENT"createworkitemasresultofevent
SWW_WI_DEADLINE_CHANGE"changeofdeadlineattributeofworkitem
SWW_WI_COMP_EVENT_RECEIVE"completeworkitemusingevents
SWW_WI_REJECT"rejectworkitem
SWW_WI_EVENT_RECEIVE"retriveeventforaworkflow
SWW_WI_DISABLE"lockworkitemagainstexecution
SWW_WI_ENABLE"removelockagainstexecutionofworkitem

sap

https://wiki.scn.sap.com/wiki/display/ABAP/SAP+Business+Workflow

workflow

business

object

agent

event

binding

other

container

5/6

10/10/2016

SAPBusinessWorkflowABAPDevelopmentSCNWiki

37ChildPages

AccessingSingleEntryfromMultilineElement
ApprovalDecisiononApproveorRejectwithReasonsorComments
ApprovingaWorkflowfromGMail
BindingDefinitioninWorkflow
BOMinworkflows!Whatandhow?
ConvertingSmartformtoPDFinWorkflows
DeadlineMonitoring
DelegationandRedefiningmethodsofbusinessobjectBUS1001
DifferencesbetweenaWorkitemandanemail
DisplayUsersdetailsinRules
DocumentTemplateinWorkflow
EventCreator&WaitStepUse
ExceptionhandlinginWorkflows
ExtendedWorkflowNotification
FunctionModuletoevaluatewhatarethefunctionmodulessuitableforagivengeneratedWorkItem.
HowtofindanEventforanytransactionfortriggeringofaworkflow
Howtofindwhichorganizationunityouarecurrentlybeingassignedto
HowtoHandleUserDecesioninWorkflow
HowtomakeFORMinworkflow?
Howtosendanexternalmailfromworkflow
MarkingthematerialfordeletionusingSAPBusinessWorkflowtriggeringtheredefinedmethodsofaBusinessObject
NeedtodeleteentriesfromtableSWFREVTLOG
OrganizationalPlaninWorkflows
ProgramExitsInWorkflow
RealEstateContractWorkflow
SAPWorkflowEVENTS
SDNBlogsforWorkflows
SecondaryMethods,BeforeandAfterMethods
SendanExternalmailthroughSAPBusinessWorkflowandRecieversaddressinCC
SimpleReporttodisplayTaskorWorkflowContainerDefinition
TasksinWorkflows
TriggeringtheworkflowbyreleasingapurchaserequisitionandautomaticallycreatingaPurchaseOrder
TroubleshootingWorkflowTerminatingEvents
VersionManagementInWorkflows
WorkflowforCustomerBlockingandUnBlocking
WorkflowScenarioforPOChange
WorkItemintimationintheEmail

2Comments
PrabhakarDharmala

niranorkkatterikariyadan
Excellent!!

ContactUs
Privacy

SAPHelpPortal
TermsofUse

LegalDisclosure

Copyright

https://wiki.scn.sap.com/wiki/display/ABAP/SAP+Business+Workflow

FollowSCN

6/6

You might also like