WorkFlow例子.docx
- 文档编号:15554906
- 上传时间:2023-07-05
- 格式:DOCX
- 页数:10
- 大小:553.44KB
WorkFlow例子.docx
《WorkFlow例子.docx》由会员分享,可在线阅读,更多相关《WorkFlow例子.docx(10页珍藏版)》请在冰点文库上搜索。
WorkFlow例子
Createbasicworkflowtodisplaymaterial
Step1�ExecutetransactionSWDD
ExecutetransactionSWDDandpressthecreatebutton.Ifthisisyourfirsttimeinthisshouldalreadybeatthispoint.
Step2�Addactivitysteptype
Eitherrightclickontheundefinedstep->create->activityordragtheactivitytypestepontoitfromtheleftmenu.
Step3�Createtask
Clickonoptionarrowatsideofdisplayicontocreatenewtask
Step4�Assignobjectmethod
EnterAbbr.,Nameanddesiredobjectcategory,objecttypeandmethod.InthisexampleIamusingmethoddisplaywithinobjecttypeBUS1001006whichdisplaysthematerialtransaction.ClickyesontheTransfercontainerelementspopupdialog.
Step5�PossibleAgentassignment
GotomenuoptionAdditionaldata->Agentassignment->Maintain.FromhereyoucaneitherclickonattributesandassigntoGeneralTaskorclickonthecreateagentassignmenticontoassignaspecificagent(user,role,jobetc).Wearegoingtodothesecondoption
Step6�Createpossibleagentassignment
Clickonthecreateagentassignmenticonandchoosetheuseroptionfromthepopupwindow,thenenteryourownSAPusername.Thatagentassignmentdonbesoclickthebackbuttontoreturntotaskdetailsscreen
Step7�savetask
Withinthetaskpresssavefollowedbythebackbuttontoreturntothestepscreen.Youshouldseethefollowingpopupscreentodefinecontainerelementsandbinding.Simplypressthegreenticktoacceptthedefaults.
Step8�Assignactualagentandsave
WithintheAgentssection,clickontheexpressiondropdownandselectworkflowinitiator(expression).Thismeanswhoeverinitiatestheworkflowwillbecometheagent.Nowpressthegreentickatthetopofthestepdetailsscreentosavethisstep
Pleasenoteyoucanalsogettoagentassignmentviathisscreenbyclickingontheyelloweggshapedagentassignmenticononthestepscreen(above).
Step9 Accesscontainer
WithintheleftmenuchooseworkflowContainertoseeavailablecontainers
Step10 updatecontainersettings
DoubleclickontheBUS1001006container,gotothepropertiestabandticktheImportcheckbox
Step11�Timetotest Firstcheckyourworkflowmodellooksimilartothis
Theclickonthetestbuttontotestyourworkflow,firsttimeyoudothisyouwillbeaskedforanAbbr.andName.Justenterwhatyouwanthereandpressok.Nextitwillaskforpackageandtransportdetails,simplyfillinasusual.
Step12�Executingtheworkflow (SBWP测试)
DoubleClickontheBUS1001006entryandyouwillbepresentedwithaninputfieldatbelow.Thisistheimportparameteryouturnedoninthecontainerproperties.Simplyusetheinputhelpforthefieldandenteramaterialnumber.
NowwhenyoupresstheexecutebuttontheSAPdisplaymaterialtransactionshouldbedisplayedforselectedmaterial.
Onceyouhavecreatedabasicworkflowitistimetoaddaneventtriggertoit.Thismeansthatwhenyourspecificeventistriggereditwillcallyourworkflow.
Step1�Assigneventreceivertoabasicworkflow
WithinSWDDgotobasicdetails(haticon)ofyourworkflowandselectthestartEventstab.Withinhereinsertthecategoryandtypeofyourbusinessobjectalongwiththeevent.IntheexampleIamgoingtouseeventCREATEDofbusinessobjectBUS1001006
Step2�Setupbindings
Nowpressthebindingbutton
OnthefollowingscreenpresstheGenerateAutomaticbindingbutton
Step3�Activatestartevent
Nowpresstheactivateicon.Thethirdbuttonisforstartconditionssoyoucanaddfurtherrestrictionsonwhentheworkflowstarts.
Step4�Activateworkflow
Nowreturntomainworkflowscreenandactivateit.Thisshouldbebesetupandifworkflowisrunningcorrectlywhenevertheeventyouhaveassignedyouworkflowtooistriggereditshouldinturnexecuteyourworkflow.
Step5�Testworkflow
UsetransactionSWUEtosimulateaneventtriggeringtocheckifyourwfisexecuted.
http:
//www.sapdev.co.uk/sap-workflow/workflow-example1.htm
http:
//www.sapdev.co.uk/sap-workflow/workflow-event-reciever.htm
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- WorkFlow 例子